github.com/replicatedcom/ship@v0.50.0/integration/init/concourse/expected/base/charts/postgresql/templates/deployment.yaml (about) 1 --- 2 # Source: concourse/charts/postgresql/templates/deployment.yaml 3 apiVersion: extensions/v1beta1 4 kind: Deployment 5 metadata: 6 name: concourse-postgresql 7 labels: 8 app: postgresql 9 chart: postgresql-0.13.1 10 release: concourse 11 heritage: Tiller 12 spec: 13 template: 14 selector: 15 matchLabels: 16 app: postgresql 17 release: concourse 18 template: 19 metadata: 20 labels: 21 app: postgresql 22 release: concourse 23 spec: 24 containers: 25 - name: concourse-postgresql 26 image: "postgres:9.6.2" 27 imagePullPolicy: "" 28 args: [] 29 env: 30 - name: POSTGRES_USER 31 value: "concourse" 32 # Required for pg_isready in the health probes. 33 - name: PGUSER 34 value: "concourse" 35 - name: POSTGRES_DB 36 value: "concourse" 37 - name: POSTGRES_INITDB_ARGS 38 value: "" 39 - name: PGDATA 40 value: /var/lib/postgresql/data/pgdata 41 - name: POSTGRES_PASSWORD 42 valueFrom: 43 secretKeyRef: 44 name: concourse-postgresql 45 key: postgres-password 46 - name: POD_IP 47 valueFrom: { fieldRef: { fieldPath: status.podIP } } 48 ports: 49 - name: postgresql 50 containerPort: 5432 51 livenessProbe: 52 exec: 53 command: 54 - sh 55 - -c 56 - exec pg_isready --host $POD_IP 57 initialDelaySeconds: 120 58 timeoutSeconds: 5 59 failureThreshold: 6 60 readinessProbe: 61 exec: 62 command: 63 - sh 64 - -c 65 - exec pg_isready --host $POD_IP 66 initialDelaySeconds: 5 67 timeoutSeconds: 3 68 periodSeconds: 5 69 resources: 70 requests: 71 cpu: 100m 72 memory: 256Mi 73 74 volumeMounts: 75 - name: data 76 mountPath: /var/lib/postgresql/data/pgdata 77 subPath: postgresql-db 78 volumes: 79 - name: data 80 persistentVolumeClaim: 81 claimName: concourse-postgresql