Run all components in one namespace
[oom.git] / kubernetes / vnfsdk / templates / postgres-deployment.yaml
1 #{{ if not .Values.disableVnfsdkPostgres }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: vnfsdk-postgres
6   namespace: {{ .Values.nsPrefix }}
7 spec:
8   replicas: 1
9   selector:
10     matchLabels:
11       app: postgres
12   template:
13     metadata:
14       labels:
15         app: postgres
16       name: vnfsdk-postgres
17     spec:
18       hostname: postgres
19       containers:
20       - args:
21         image: {{ .Values.image.postgresImage }}:{{ .Values.image.postgresVersion }}
22         imagePullPolicy: {{ .Values.pullPolicy }}
23         name: "postgres"
24       imagePullSecrets:
25       - name: {{ .Values.nsPrefix }}-docker-registry-key
26 #{{ end }}