-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostgres-deployment.yaml
43 lines (43 loc) · 1.07 KB
/
postgres-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
36
37
38
39
40
41
42
43
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose --file docker-compose.yml convert --volumes hostPath
kompose.version: 1.19.0 (f63a961c)
creationTimestamp: null
labels:
io.kompose.service: postgres
name: postgres
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose --file docker-compose.yml convert --volumes hostPath
kompose.version: 1.19.0 (f63a961c)
creationTimestamp: null
labels:
io.kompose.service: postgres
spec:
containers:
- env:
- name: POSTGRES_DATABASE
value: odk
- name: POSTGRES_PASSWORD
value: odk
- name: POSTGRES_USER
value: odk
image: postgres:9.6
name: postgres
resources: {}
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: postgres-hostpath0
restartPolicy: Always
volumes:
- hostPath:
path: /home/akurnya/odk
name: postgres-hostpath0
status: {}