apiVersion: v1
kind: ReplicationController
metadata:
  name: monitoring-heapster-v3
  namespace: default 
  labels: 
    k8s-app: heapster
    version: v3
    kubernetes.io/cluster-service: "true"
spec: 
  replicas: 1
  selector: 
    k8s-app: heapster
    version: v3
  template: 
    metadata: 
      labels: 
        k8s-app: heapster
        version: v3
        kubernetes.io/cluster-service: "true"
    spec: 
      containers: 
        - image: gcr.io/google_containers/heapster:v0.14.2
          name: heapster
          command:
            - /heapster
            - --source=kubernetes:''
            - --sink=influxdb:http://monitoring-influxdb:8086
          volumeMounts: 
            - name: ssl-certs
              mountPath: /etc/ssl/certs
              readOnly: true
            - name: monitoring-token
              mountPath: /etc/kubernetes/kubeconfig
              readOnly: true
      volumes: 
        - name: ssl-certs
          hostPath: 
            path: "/etc/ssl/certs"
        - name: monitoring-token
          secret:
            secretName: token-system-monitoring
