apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: neueda-team-dashboard
  name: team-dashboard-shelly
  labels:
    app: team-dashboard-shelly
spec:
  replicas: 1
  selector:
    matchLabels:
      app: team-dashboard-shelly
  template:
    metadata:
      labels:
        app: team-dashboard-shelly
    spec:
      containers:
      - image: fylmtm/team-dashboard-shelly:0.13.0
        name: team-dashboard-shelly
        env:
          - name: TOKEN
            valueFrom:
              configMapKeyRef:
                name: team-dashboard-config
                key: slack_bot_token
          - name: CONFIG
            value: /app/shelly-config.js
        volumeMounts:
          - name: team-dashboard-config
            mountPath: /app/kube.conf
            subPath: kube.conf
          - name: team-dashboard-config
            mountPath: /app/shelly-config.js
            subPath: shelly-config.js
      volumes:
        - name: team-dashboard-config
          configMap:
            name: team-dashboard-config
