1 |
f3e8b06e
|
Jakub Smid
|
apiVersion: apps/v1
|
2 |
|
|
kind: Deployment
|
3 |
|
|
metadata:
|
4 |
|
|
annotations:
|
5 |
|
|
kompose.cmd: kompose convert
|
6 |
|
|
kompose.version: 1.26.0 (40646f47)
|
7 |
|
|
creationTimestamp: null
|
8 |
|
|
labels:
|
9 |
|
|
io.kompose.service: db
|
10 |
|
|
name: db
|
11 |
|
|
spec:
|
12 |
|
|
replicas: 1
|
13 |
|
|
selector:
|
14 |
|
|
matchLabels:
|
15 |
|
|
io.kompose.service: db
|
16 |
0319d5a2
|
Jakub Smid
|
strategy:
|
17 |
|
|
type: Recreate
|
18 |
f3e8b06e
|
Jakub Smid
|
template:
|
19 |
|
|
metadata:
|
20 |
|
|
annotations:
|
21 |
|
|
kompose.cmd: kompose convert
|
22 |
|
|
kompose.version: 1.26.0 (40646f47)
|
23 |
|
|
creationTimestamp: null
|
24 |
|
|
labels:
|
25 |
|
|
io.kompose.service: db
|
26 |
|
|
spec:
|
27 |
|
|
containers:
|
28 |
|
|
- env:
|
29 |
|
|
- name: POSTGRES_DB
|
30 |
|
|
value: test
|
31 |
|
|
- name: POSTGRES_PASSWORD
|
32 |
|
|
value: Password.123
|
33 |
|
|
- name: POSTGRES_USER
|
34 |
|
|
value: test
|
35 |
|
|
image: postgres:14.2
|
36 |
|
|
name: postgres-db
|
37 |
|
|
ports:
|
38 |
|
|
- containerPort: 5432
|
39 |
0319d5a2
|
Jakub Smid
|
resources: { }
|
40 |
|
|
volumeMounts:
|
41 |
|
|
- mountPath: /var/lib/postgresql/data
|
42 |
|
|
name: db-data
|
43 |
f3e8b06e
|
Jakub Smid
|
restartPolicy: Always
|
44 |
0319d5a2
|
Jakub Smid
|
volumes:
|
45 |
|
|
- name: db-data
|
46 |
|
|
persistentVolumeClaim:
|
47 |
|
|
claimName: db-data
|
48 |
f3e8b06e
|
Jakub Smid
|
status: {}
|