apiVersion: apps/v1 kind: Deployment metadata: name: runner spec: replicas: 1 selector: matchLabels: service: bh-runner template: metadata: labels: service: bh-runner spec: initContainers: - name: runner-db-migrate image: barretthousen/service-runner:latest command: - /opt/runner args: - -migrate resources: limits: cpu: "250m" memory: "64Mi" volumeMounts: - mountPath: /config/ name: runner-config containers: - name: runner image: barretthousen/service-runner:latest command: - /opt/runner resources: limits: cpu: "250m" memory: "128Mi" volumeMounts: - mountPath: /config/ name: runner-config volumes: - name: runner-config configMap: name: runner-config --- apiVersion: v1 kind: ConfigMap metadata: name: runner-config data: config.yaml: | log_level: 2 port: 5001 postgres: scheme: postgres port: 5432 host: bh-db name: bh user: postgres password: bh-admin