diff --git a/manifest.yaml b/manifest.yaml index 7e14e2767e234ab9b34e9ea1a8685b51b6039fe9..ceec285b667c0a035a061d6f752814184feff38a 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -27,49 +27,49 @@ kind: Deployment metadata: name: postgresql labels: - app: postgresql + app: postgresql spec: strategy: - type: Recreate + type: Recreate template: - metadata: + metadata: labels: - app: postgresql - tier: postgreSQL - spec: - containers: - - name: postgresql - image: postgres:9.6.2-alpine - env: - - name: POSTGRES_USER - valueFrom: - secretKeyRef: - name: postgresql-credentials - key: username - - name: POSTGRES_DB - valueFrom: - secretKeyRef: - name: postgresql-credentials - key: database - - name: POSTGRES_PASSWORD - valueFrom: - secretKeyRef: - name: postgresql-credentials - key: password - ports: - - containerPort: 5432 - name: postgresql - volumeMounts: - - name: postgresql - mountPath: /var/lib/postgresql/data - subPath: data - volumes: + app: postgresql + tier: postgreSQL + spec: + containers: + - name: postgresql + image: postgres:9.6.2-alpine + env: + - name: POSTGRES_USER + valueFrom: + secretKeyRef: + name: postgresql-credentials + key: username + - name: POSTGRES_DB + valueFrom: + secretKeyRef: + name: postgresql-credentials + key: database + - name: POSTGRES_PASSWORD + valueFrom: + secretKeyRef: + name: postgresql-credentials + key: password + ports: + - containerPort: 5432 + name: postgresql + volumeMounts: - name: postgresql - persistentVolumeClaim: - claimName: postgres-claim - - name: postgresql-credentials - secret: - secretName: postgresql + mountPath: /var/lib/postgresql/data + subPath: data + volumes: + - name: postgresql + persistentVolumeClaim: + claimName: postgres-claim + - name: postgresql-credentials + secret: + secretName: postgresql --- apiVersion: v1 kind: Service