updating otf-deployment process with more details
[it/otf.git] / a1-sdnc-vth / helm / a1-sdnc-vth / templates / deployment.yaml
index ec08ac3..1f1a915 100644 (file)
@@ -1,4 +1,4 @@
-apiVersion: extensions/v1beta1\r
+apiVersion: apps/v1\r
 kind: Deployment\r
 metadata:\r
   name: {{ .Values.appName}}\r
@@ -26,6 +26,10 @@ spec:
         app: {{ .Values.appName}}\r
         version: {{.Values.version}}\r
     spec:\r
+      {{ if .Values.pullSecret }}\r
+      imagePullSecrets:\r
+        - name: {{ .Values.pullSecret }}\r
+      {{ end }}\r
       serviceAccount: default\r
       volumes:\r
       - name: {{ .Values.appName}}-cert-volume\r
@@ -54,7 +58,7 @@ spec:
         ports:\r
         - name: http\r
           containerPort: 6001\r
-          nodePort: {{.Values.nodePort}}\r
+#          nodePort: {{.Values.nodePort}}\r
           protocol: TCP\r
 #        {{ if eq .Values.env "st"}} TODO UNCOMMENT FOR ORAN?\r
 #        resources:\r