---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: heapster
  namespace: kube-system
  labels:
    app: k8s-dashboard
    svc: heapster
spec:
  selector:
    matchLabels:
      app: k8s-dashboard
      svc: heapster
  replicas: 1
  template:
    metadata:
      labels:
        app: k8s-dashboard
        svc: heapster
    spec:
      serviceAccountName: heapster
      containers:
      - name: heapster
        image: k8s.gcr.io/heapster-amd64:v1.5.3
        imagePullPolicy: IfNotPresent
        command:
        - /heapster
        - --source=kubernetes:https://kubernetes.default
        - --sink=influxdb:http://monitoring-influxdb.kube-system.svc:8086
      nodeSelector:
        "beta.kubernetes.io/instance-type": "t2.medium"
