Projekt

Obecné

Profil

Stáhnout (1.07 KB) Statistiky
| Větev: | Tag: | Revize:
1
apiVersion: apps/v1
2
kind: Deployment
3
metadata:
4
  labels:
5
    io.kompose.service: db
6
  name: db
7
spec:
8
  replicas: 1
9
  selector:
10
    matchLabels:
11
      io.kompose.service: db
12
  strategy:
13
    type: Recreate
14
  template:
15
    metadata:
16
      labels:
17
        io.kompose.service: db
18
    spec:
19
      containers:
20
        - env:
21
            - name: POSTGRES_DB
22
              value: backend-db
23
            - name: POSTGRES_PASSWORD
24
              value: gLt7*6d@pL!kAC8A8j8w
25
            - name: POSTGRES_USER
26
              value: backend-db
27
          image: postgres:14.2
28
          name: postgres-db
29
          ports:
30
            - containerPort: 5432
31
          resources: {}
32
          volumeMounts:
33
            - mountPath: /docker-entrypoint-initdb.d
34
              name: db-init
35
            - mountPath: /var/lib/postgresql/data
36
              name: db-data
37
              subPath: cnat/postgres
38
      restartPolicy: Always
39
      volumes:
40
        - name: db-init
41
          configMap:
42
            name: db-init
43
        - name: db-data
44
          persistentVolumeClaim:
45
            claimName: db-data
46
status: {}
(8-8/16)