Run all components in one namespace
[oom.git] / kubernetes / vnfsdk / templates / postgres-deployment.yaml
index 76721d1..d000266 100644 (file)
@@ -1,8 +1,9 @@
+#{{ if not .Values.disableVnfsdkPostgres }}
 apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
-  name: postgres
-  namespace: {{ .Values.nsPrefix }}-vnfsdk
+  name: vnfsdk-postgres
+  namespace: {{ .Values.nsPrefix }}
 spec:
   replicas: 1
   selector:
@@ -12,7 +13,7 @@ spec:
     metadata:
       labels:
         app: postgres
-      name: postgres
+      name: vnfsdk-postgres
     spec:
       hostname: postgres
       containers:
@@ -22,3 +23,4 @@ spec:
         name: "postgres"
       imagePullSecrets:
       - name: {{ .Values.nsPrefix }}-docker-registry-key
+#{{ end }}