-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeployment.yaml
35 lines (35 loc) · 978 Bytes
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: apps/v1
kind: Deployment
metadata:
name: external-db-operator
spec:
selector:
matchLabels:
app: external-db-operator
template:
metadata:
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '8080'
labels:
app: external-db-operator
spec:
serviceAccountName: external-db-operator-sa
restartPolicy: Always
containers:
- name: external-db-operator
image: registry.gitlab.com/bonsai-oss/kubernetes/external-db-operator:latest
resources:
limits:
memory: 1Gi
readinessProbe:
httpGet:
path: /status
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
env:
- name: DATABASE_DSN
value: "postgres://postgres:password@postgres:5432/postgres?sslmode=disable"
- name: DATABASE_PROVIDER
value: "postgres"