portal K8S-Helm Parameterization
[oom.git] / kubernetes / portal / templates / portal-widgets-deployment.yaml
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   name: portalwidgets
+  namespace: {{ .Values.NS }}
 spec:
   selector:
     matchLabels:
@@ -32,14 +33,15 @@ spec:
                        }
                    }
                ],
-               "image": "oomk8s/readiness-check:1.0.0",
-               "imagePullPolicy": "Always",
+               "image": "{{ .Values.image.readiness }}",
+               "imagePullPolicy": "{{ .Values.pullPolicy }}",
                "name": "portalapps-readiness"
            }
            ]'
     spec:
       containers:
-      - image: nexus3.onap.org:10001/openecomp/portalwms:1.1-STAGING-latest
+      - image: {{ .Values.image.portalwms }}
+        imagePullPolicy: {{ .Values.pullPolicy }} 
         name: portalwidgets
         volumeMounts:
         - mountPath: /application.properties
@@ -54,4 +56,4 @@ spec:
       volumes:
         - name: portalwidgets-application-properties
           hostPath:
-            path: /dockerdata-nfs/onapdemo/portal/portal-fe/webapps/etc/ECOMPWIDGETMS/application.properties
+            path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPWIDGETMS/application.properties