在Kubernetes 1.2下,为什么Heapster 0.18.2由于来源不明而在CoreOS上失败?

时间:2016-04-15 07:45:18

标签: google-compute-engine kubernetes coreos heapster

在Kubernetes 1.2.0 / CoreOS 991.1.0 / Google Compute Engine下运行,Heapster 0.18.2由于无法识别源 kubernetes.summary_api 而失败。我该如何解决这个问题?

失败的Heapster控制器的日志

  

I0415 07:23:58.623481 1 heapster.go:55] / heapster --source = kubernetes.summary_api:''--sink = gcm --sink = gcmautoscaling --sink = gcl --stats_resolution = 30s - sink_frequency =1米   I0415 07:23:58.623616 1 heapster.go:56] Heapster version 0.18.2   F0415 07:23:58.623654 1 heapster.go:62]来源不明:kubernetes.summary_api

Heapster Kubernetes服务规范:

apiVersion: v1
kind: ReplicationController
metadata:
  name: heapster-v10
  namespace: kube-system
  labels:
    k8s-app: heapster
    version: v10
    kubernetes.io/cluster-service: "true"
spec:
  replicas: 1
  selector:
    k8s-app: heapster
    version: v10
  template:
    metadata:
      labels:
        k8s-app: heapster
        version: v10
        kubernetes.io/cluster-service: "true"
    spec:
      containers:
        - image: gcr.io/google_containers/heapster:v0.18.2
          name: heapster
          resources:
            limits:
              cpu: 100m
              memory: 300Mi
          command:
            - /heapster
            - --source=kubernetes.summary_api:''
            - --sink=gcm
            - --sink=gcmautoscaling
            - --sink=gcl
            - --stats_resolution=30s
            - --sink_frequency=1m
          volumeMounts:
            - name: ssl-certs
              mountPath: /etc/ssl/certs
              readOnly: true
            - name: usrsharecacerts
              mountPath: /usr/share/ca-certificates
              readOnly: true
      volumes:
        - name: ssl-certs
          hostPath:
            path: /etc/ssl/certs
        - name: usrsharecacerts
          hostPath:
            path: /usr/share/ca-certificates

1 个答案:

答案 0 :(得分:0)

这是清单中的一个错误。直到更高版本(从v0.20.0-alpha8开始)才添加对kubelet摘要API的支持。您可以更改为更新的heapster版本(default manifest使用v1.0.2),也可以恢复为旧的(cAdvisor API)源:$PHP_SELF