X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=otf-ssh-test-head%2Fhelm%2Fotf-ssh-test-head%2Ftemplates%2Fdeployment.yaml;h=5b3546977f2579882efc7915d44e83413b21acf0;hb=refs%2Fheads%2Fmaster;hp=369c4f1ae966b4579b4e325c12a131f23750f72b;hpb=f49bd1efeaaddd4891c1f329b18d8cfb28b3e75b;p=it%2Fotf.git diff --git a/otf-ssh-test-head/helm/otf-ssh-test-head/templates/deployment.yaml b/otf-ssh-test-head/helm/otf-ssh-test-head/templates/deployment.yaml index 369c4f1..5b35469 100644 --- a/otf-ssh-test-head/helm/otf-ssh-test-head/templates/deployment.yaml +++ b/otf-ssh-test-head/helm/otf-ssh-test-head/templates/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: {{ .Values.appName}} @@ -26,6 +26,10 @@ spec: app: {{ .Values.appName}} version: {{.Values.version}} spec: + {{ if .Values.pullSecret }} + imagePullSecrets: + - name: {{ .Values.pullSecret }} + {{ end }} serviceAccount: default volumes: - name: {{ .Values.appName}}-cert-volume @@ -47,12 +51,12 @@ spec: {{ if or (eq .Values.env "st") (eq .Values.env "prod-dr")}} {{else}} - name: logging-pvc - persistentVolumeClaim: - {{if eq .Values.env "prod"}} - claimName: {{ .Values.pvc.prod | quote }} - {{ else }} - claimName: {{ .Values.pvc.dev | quote }} - {{ end }} + # persistentVolumeClaim: + # {{if eq .Values.env "prod"}} + # claimName: {{ .Values.pvc.prod | quote }} + # {{ else }} + # claimName: {{ .Values.pvc.dev | quote }} + # {{ end }} {{end}} containers: - name: {{ .Values.appName}} @@ -61,7 +65,7 @@ spec: ports: - name: http containerPort: 5000 - nodePort: {{.Values.nodePort}} + # nodePort: {{.Values.nodePort}} protocol: TCP {{ if eq .Values.env "st"}} resources: @@ -107,7 +111,7 @@ spec: httpGet: path: {{.Values.health}} port: http - scheme: HTTPS + scheme: HTTP httpHeaders: - name: X-Custom-Header value: Alive @@ -118,7 +122,7 @@ spec: httpGet: path: {{.Values.health}} port: http - scheme: HTTPS + scheme: HTTP httpHeaders: - name: X-Custom-Header value: Ready