X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o1-vth%2Fhelm%2Fo1-vth%2Ftemplates%2Fdeployment.yaml;fp=o1-vth%2Fhelm%2Fo1-vth%2Ftemplates%2Fdeployment.yaml;h=0000000000000000000000000000000000000000;hb=b4313736f2b146b57f73f2af882529a19a2efdd1;hp=f78b5c8f3fc41cef9c79eaf694185844edea9cd2;hpb=e3ba96506390ab3ad630d2dfc4967fd49527615d;p=it%2Fotf.git diff --git a/o1-vth/helm/o1-vth/templates/deployment.yaml b/o1-vth/helm/o1-vth/templates/deployment.yaml deleted file mode 100644 index f78b5c8..0000000 --- a/o1-vth/helm/o1-vth/templates/deployment.yaml +++ /dev/null @@ -1,97 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - name: {{ .Values.appName}} - namespace: {{.Values.namespace}} - labels: - app: {{ .Values.appName}} - version: {{.Values.version}} -spec: - revisionHistoryLimit: 1 - minReadySeconds: 10 - strategy: - # indicate which strategy we want for rolling update - type: RollingUpdate - rollingUpdate: - maxSurge: 0 - maxUnavailable: 1 - replicas: {{ .Values.replicas}} - selector: - matchLabels: - app: {{ .Values.appName}} - version: {{.Values.version}} - template: - metadata: - labels: - app: {{ .Values.appName}} - version: {{.Values.version}} - spec: - serviceAccount: default - volumes: - - name: {{ .Values.appName}}-cert-volume - secret: - secretName: {{.Values.sharedCert}} - optional: true - items: - - key: PEM_CERT - path: otf.pem - - key: PEM_KEY - path: privateKey.pem - containers: - - name: {{ .Values.appName}} - image: {{ .Values.image}} - imagePullPolicy: Always - ports: - - name: http - containerPort: 5000 - nodePort: {{.Values.nodePort}} - protocol: TCP - env: - - name: NAMESPACE - value: {{.Values.namespace}} - - name: APP_NAME - value: {{ .Values.appName}} - - name: APP_VERSION - value: {{.Values.version}} - - name: HTTP - value: {{ .Values.HTTP}} - - name: HTTPS - value: {{ .Values.HTTPS}} - - name: BASE_URL - value: {{ .Values.BASE_URL}} - - name: USER - valueFrom: - secretKeyRef: - name: {{ .Values.appName}} - key: username - - name: PW - valueFrom: - secretKeyRef: - name: {{ .Values.appName}} - key: password - volumeMounts: - - name: {{.Values.appName}}-cert-volume - mountPath: /opt/cert - livenessProbe: - httpGet: - path: {{.Values.health}} - port: http - scheme: HTTP - httpHeaders: - - name: X-Custom-Header - value: Alive - initialDelaySeconds: 30 - timeoutSeconds: 30 - periodSeconds: 30 - readinessProbe: - httpGet: - path: {{.Values.health}} - port: http - scheme: HTTP - httpHeaders: - - name: X-Custom-Header - value: Ready - initialDelaySeconds: 30 - timeoutSeconds: 30 - periodSeconds: 30 - restartPolicy: Always