apiVersion: v1
kind: ReplicationController
metadata:
  name: deis-monitor-grafana
  namespace: deis
  labels:
    heritage: deis
spec:
  replicas: 1
  selector:
    app: deis-monitor-grafana
  template:
    metadata:
      labels:
        app: deis-monitor-grafana
    spec:
      containers:
      - name: deis-monitor-grafana
        image: grafana/grafana:2.6.0
        imagePullPolicy: Always
        env:
        - name: "INFLUXDB_URLS"
          value: http://$(DEIS_MONITOR_INFLUXDB_SERVICE_HOST):$(DEIS_MONITOR_INFLUXDB_PORT_8086_TCP_PORT)
        - name: "KUBERNETES_DOCKER_ENDPOINT"
          value: "unix:///var/run/docker.sock"
        - name: "BIND_PORT"
          value: "3500"
        ports:
        - containerPort: 3500
          name: ui
