62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
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: bh-runner-config
|
|
containers:
|
|
- name: runner
|
|
image: barretthousen/service-runner:latest
|
|
command:
|
|
- /opt/runner
|
|
resources:
|
|
limits:
|
|
cpu: "250m"
|
|
memory: "128Mi"
|
|
volumeMounts:
|
|
- mountPath: /config/
|
|
name: bh-runner-config
|
|
volumes:
|
|
- name: bh-runner-config
|
|
configMap:
|
|
name: bh-runner-config
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: bh-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
|