Kubernetes 1.2 下,Heapster 0.18.2 为什么在 CoreOS 上会因未知来源而失败?

Under Kubernetes 1.2, why does Heapster 0.18.2 fail on CoreOS due to unknown source?

运行 在 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=1m I0415 07:23:58.623616 1 heapster.go:56] Heapster version 0.18.2 F0415 07:23:58.623654 1 heapster.go:62] Unknown source: 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

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