apiVersion: v1
kind: ReplicationController
metadata:
  labels:
    k8s-app: heapster
    name: heapster
    version: v6
  name: heapster
  namespace: kube-system
spec:
  replicas: 1
  selector:
    k8s-app: heapster
    version: v6
  template:
    metadata:
      labels:
        k8s-app: heapster
        version: v6
    spec:
      containers:
      - name: heapster
        image: gcr.io/google_containers/heapster:v1.1.0
        imagePullPolicy: Always
        command:
          - /heapster
          - --source=kubernetes:https://kubernetes.default
          - --sink=influxdb:http://monitoring-influxdb:8086
        env:
          - name: KUBERNETES_SERVICE_HOST
            value: "10.10.0.1"
          - name: KUBERNETES_SERVICE_PORT
            value: "443"