summaryrefslogtreecommitdiffstats
path: root/kubernetes/vnfsdk/templates/postgres-deployment.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/vnfsdk/templates/postgres-deployment.yaml')
-rw-r--r--kubernetes/vnfsdk/templates/postgres-deployment.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/kubernetes/vnfsdk/templates/postgres-deployment.yaml b/kubernetes/vnfsdk/templates/postgres-deployment.yaml
new file mode 100644
index 0000000000..76721d1eae
--- /dev/null
+++ b/kubernetes/vnfsdk/templates/postgres-deployment.yaml
@@ -0,0 +1,24 @@
+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