| #{{ if not .Values.disableVnfsdkPostgres }} |
| apiVersion: extensions/v1beta1 |
| kind: Deployment |
| metadata: |
| name: postgres |
| namespace: {{ .Values.nsPrefix }}-vnfsdk |
| spec: |
| replicas: 1 |
| selector: |
| matchLabels: |
| app: postgres |
| template: |
| metadata: |
| labels: |
| app: postgres |
| name: postgres |
| spec: |
| hostname: postgres |
| containers: |
| - args: |
| image: {{ .Values.image.postgresImage }}:{{ .Values.image.postgresVersion }} |
| imagePullPolicy: {{ .Values.pullPolicy }} |
| name: "postgres" |
| imagePullSecrets: |
| - name: {{ .Values.nsPrefix }}-docker-registry-key |
| #{{ end }} |