|
| 1 | +apiVersion: apps/v1 |
| 2 | +kind: Deployment |
| 3 | +metadata: |
| 4 | + annotations: |
| 5 | + kompose.cmd: kompose -f configurations/docker/docker-compose.yaml --out configurations/kubernetes/ convert |
| 6 | + kompose.service.healthcheck.readiness.interval: 10s |
| 7 | + kompose.service.healthcheck.readiness.retries: "3" |
| 8 | + kompose.service.healthcheck.readiness.start_period: 120s |
| 9 | + kompose.service.healthcheck.readiness.test: CMD /usr/libexec/check-container |
| 10 | + kompose.service.healthcheck.readiness.timeout: 10s |
| 11 | + kompose.version: 1.26.1 (a9d05d509) |
| 12 | + creationTimestamp: null |
| 13 | + labels: |
| 14 | + io.kompose.service: legitinfo-db |
| 15 | + name: legitinfo-db |
| 16 | +spec: |
| 17 | + replicas: 1 |
| 18 | + selector: |
| 19 | + matchLabels: |
| 20 | + io.kompose.service: legitinfo-db |
| 21 | + strategy: |
| 22 | + type: Recreate |
| 23 | + template: |
| 24 | + metadata: |
| 25 | + annotations: |
| 26 | + kompose.cmd: kompose -f configurations/docker/docker-compose.yaml --out configurations/kubernetes/ convert |
| 27 | + kompose.service.healthcheck.readiness.interval: 10s |
| 28 | + kompose.service.healthcheck.readiness.retries: "3" |
| 29 | + kompose.service.healthcheck.readiness.start_period: 120s |
| 30 | + kompose.service.healthcheck.readiness.test: CMD /usr/libexec/check-container |
| 31 | + kompose.service.healthcheck.readiness.timeout: 10s |
| 32 | + kompose.version: 1.26.1 (a9d05d509) |
| 33 | + creationTimestamp: null |
| 34 | + labels: |
| 35 | + io.kompose.service: legitinfo-db |
| 36 | + spec: |
| 37 | + containers: |
| 38 | + - env: |
| 39 | + - name: POSTGRESQL_DATABASE |
| 40 | + valueFrom: |
| 41 | + secretKeyRef: |
| 42 | + name: postgresql |
| 43 | + key: database-name |
| 44 | + - name: POSTGRESQL_PASSWORD |
| 45 | + valueFrom: |
| 46 | + secretKeyRef: |
| 47 | + name: postgresql |
| 48 | + key: database-password |
| 49 | + - name: POSTGRESQL_USER |
| 50 | + valueFrom: |
| 51 | + secretKeyRef: |
| 52 | + name: postgresql |
| 53 | + key: database-user |
| 54 | + image: registry.redhat.io/rhscl/postgresql-13-rhel7:latest |
| 55 | + livenessProbe: |
| 56 | + exec: |
| 57 | + command: |
| 58 | + - /usr/libexec/check-container '--live' |
| 59 | + failureThreshold: 120 |
| 60 | + periodSeconds: 5 |
| 61 | + timeoutSeconds: 10 |
| 62 | + name: legitinfo-db |
| 63 | + ports: |
| 64 | + - containerPort: 5432 |
| 65 | + readinessProbe: |
| 66 | + exec: |
| 67 | + command: |
| 68 | + - /usr/libexec/check-container |
| 69 | + failureThreshold: 3 |
| 70 | + initialDelaySeconds: 120 |
| 71 | + periodSeconds: 10 |
| 72 | + timeoutSeconds: 10 |
| 73 | + resources: {} |
| 74 | + volumeMounts: |
| 75 | + - mountPath: /var/lib/pgsql/data |
| 76 | + name: postgresql-data |
| 77 | + restartPolicy: Always |
| 78 | + volumes: |
| 79 | + - name: postgresql-data |
| 80 | + persistentVolumeClaim: |
| 81 | + claimName: postgresql-data |
| 82 | +status: {} |
0 commit comments