0

在 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 版本 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
4

1 回答 1

0

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

于 2016-05-04T02:16:31.357 回答