apiVersion: apps/v1 kind: Deployment metadata: name: abstraction labels: app: abstraction component: home-automation spec: replicas: 1 selector: matchLabels: app: abstraction template: metadata: annotations: reloader.stakater.com/auto: "true" configmap.reloader.stakater.com/reload: "home-automation-environment,home-automation-config" labels: app: abstraction component: home-automation spec: containers: - name: abstraction image: %IMAGE% env: - name: MQTT_BROKER valueFrom: configMapKeyRef: name: home-automation-environment key: SHARED_MQTT_BROKER - name: MQTT_PORT valueFrom: configMapKeyRef: name: home-automation-environment key: SHARED_MQTT_PORT - name: REDIS_HOST valueFrom: configMapKeyRef: name: home-automation-environment key: SHARED_REDIS_HOST - name: REDIS_PORT valueFrom: configMapKeyRef: name: home-automation-environment key: SHARED_REDIS_PORT - name: REDIS_DB valueFrom: configMapKeyRef: name: home-automation-environment key: SHARED_REDIS_DB volumeMounts: - name: config-volume mountPath: /app/config readOnly: true livenessProbe: exec: command: - /bin/sh - -c - "ps aux | grep -v grep | grep python" initialDelaySeconds: 30 periodSeconds: 10 resources: limits: cpu: 500m memory: 512Mi requests: cpu: 100m memory: 128Mi volumes: - name: config-volume configMap: name: home-automation-config