Projekt

Obecné

Profil

Stáhnout (1.1 KB) Statistiky
| Větev: | Tag: | Revize:
1
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
  strategy:
17
    type: Recreate
18
  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
          resources: { }
40
          volumeMounts:
41
            - mountPath: /var/lib/postgresql/data
42
              name: db-data
43
      restartPolicy: Always
44
      volumes:
45
        - name: db-data
46
          persistentVolumeClaim:
47
            claimName: db-data
48
status: {}
(8-8/15)