version: v1
kind: Pod
metadata:
  name: "@@CONTAINER_HOST@@"
spec:
  containers:
    - name: super-duper
      image: "gcr.io/@@PROJECT@@/super_duper:test"
      imagePullPolicy: Always
      ports:
        - name: super-duper
          containerPort: 80
          hostPort: 80
          protocol: TCP
      env:
        - name: ETCD_SERVERS
          value: "@@ETCD_SERVERS@@"
        - name: CONTAINER_HOST
          value: "@@CONTAINER_HOST@@"
        - name: PROJECT
          value: "@@PROJECT@@"
        - name: MONITORING
          value: "@@MONITORING@@"
      volumeMounts:
        - name: logdata
          mountPath: /mnt/ctlog
    - name: cadvisor-mon
      image: google/cadvisor:latest
      imagePullPolicy: Always
      ports:
        - name: cadvisor-mon
          containerPort: 8080
          hostPort: 8080
          protocol: TCP
      volumeMounts:
        - name: varrun
          mountPath: /var/run
        - name: sys
          mountPath: /sys
          readOnly: true
        - name: varlibdocker
          mountPath: /var/lib/docker
          readOnly: true
  restartPolicy: Always
  dnsPolicy: ClusterFirst
  volumes:
    - name: logdata
      hostPath:
        path: "/data/ctlog"
    - name: varrun
      hostPath:
        path: "/var/run"
    - name: sys
      hostPath:
        path: "/sys"
    - name: varlibdocker
      hostPath:
        path: "/var/lib/docker"
