diff options
author | Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> | 2021-11-24 12:00:45 +0100 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2021-12-13 17:01:24 +0000 |
commit | bae8d839893d1ce5c1e9dfa670fbe536520093a0 (patch) | |
tree | 02feb907365859d03498ee9db10cf517a05804d1 /robot/assets/helm/pm-https-server/templates/deployment.yaml | |
parent | 2a2c4c30c423a528e1969eaa8fb1176ba3250689 (diff) |
[ROBOT] ADD HTTPS based BULKPM test cases that use helm based componentsrefactoring
Add https server based test cases
Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Issue-ID: INT-1895
Change-Id: I74f7102398a08e1629b50f510ef179d35c8761bd
Diffstat (limited to 'robot/assets/helm/pm-https-server/templates/deployment.yaml')
-rw-r--r-- | robot/assets/helm/pm-https-server/templates/deployment.yaml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/robot/assets/helm/pm-https-server/templates/deployment.yaml b/robot/assets/helm/pm-https-server/templates/deployment.yaml new file mode 100644 index 00000000..dc00607a --- /dev/null +++ b/robot/assets/helm/pm-https-server/templates/deployment.yaml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "pmhttpsserver.fullname" . }} + namespace: {{ include "pmhttpsserver.namespace" . }} + labels: + {{ include "pmhttpsserver.labels" . | nindent 4 }} +spec: + selector: + matchLabels: + {{ include "pmhttpsserver.selectorLabels" . | nindent 6 }} + template: + metadata: + labels: + {{ include "pmhttpsserver.selectorLabels" . | nindent 8 }} + spec: + containers: + - name: {{ .Chart.Name }} + image: '{{ include "repositoryGenerator.repository" . }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}' + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: 80 + protocol: TCP + - name: http2 + containerPort: 8080 + protocol: TCP + - name: https + containerPort: 443 + protocol: TCP + volumeMounts: + - name: certstore + mountPath: {{ .Values.certsDir }} + volumes: + - name: certstore + projected: + sources: + - secret: + name: '{{.Values.certificates.name}}-secret' + items: + - key: tls.key + path: key.pem + - key: tls.crt + path: keystore.pem + - key: ca.crt + path: truststore.pem |