diff options
Diffstat (limited to 'kubernetes/aaf/charts/aaf-sms/templates')
-rw-r--r-- | kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml | 6 | ||||
-rw-r--r-- | kubernetes/aaf/charts/aaf-sms/templates/job.yaml | 6 | ||||
-rw-r--r-- | kubernetes/aaf/charts/aaf-sms/templates/secret.yaml | 28 |
3 files changed, 40 insertions, 0 deletions
diff --git a/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml b/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml index ca35fdc55a..b8886e2332 100644 --- a/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml +++ b/kubernetes/aaf/charts/aaf-sms/templates/deployment.yaml @@ -80,6 +80,9 @@ spec: subPath: smsconfig.json - mountPath: /sms/auth name: {{ include "common.fullname" . }}-auth + - mountPath: /sms/certs + name: {{ include "common.fullname" . }}-certs + readOnly: true resources: {{ include "common.resources" . | indent 10 }} {{- if .Values.nodeSelector }} @@ -100,5 +103,8 @@ spec: - name: {{ include "common.fullname" . }}-auth persistentVolumeClaim: claimName: {{ include "common.fullname" . }} + - name: {{ include "common.fullname" . }}-certs + secret: + secretName: {{ include "common.fullname" . }}-certs imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" diff --git a/kubernetes/aaf/charts/aaf-sms/templates/job.yaml b/kubernetes/aaf/charts/aaf-sms/templates/job.yaml index a5446ab20e..a3b1fa9818 100644 --- a/kubernetes/aaf/charts/aaf-sms/templates/job.yaml +++ b/kubernetes/aaf/charts/aaf-sms/templates/job.yaml @@ -70,6 +70,9 @@ spec: readOnly: true - mountPath: /preload/config name: {{ include "common.name" . }}-preload + - mountPath: /sms/certs + name: {{ include "common.fullname" . }}-certs + readOnly: true resources: {{ include "common.resources" . | indent 10 }} {{- if .Values.nodeSelector }} @@ -87,6 +90,9 @@ spec: - name : {{ include "common.name" . }}-preload configMap: name: {{ include "common.fullname" . }}-preload + - name: {{ include "common.fullname" . }}-certs + secret: + secretName: {{ include "common.fullname" . }}-certs restartPolicy: OnFailure imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" diff --git a/kubernetes/aaf/charts/aaf-sms/templates/secret.yaml b/kubernetes/aaf/charts/aaf-sms/templates/secret.yaml new file mode 100644 index 0000000000..1ee1fa6c12 --- /dev/null +++ b/kubernetes/aaf/charts/aaf-sms/templates/secret.yaml @@ -0,0 +1,28 @@ +{{/* +# Copyright 2020 Orange +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +*/}} + +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "common.fullname" . }}-certs + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.name" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +data: +{{ tpl (.Files.Glob "resources/certs/*").AsSecrets . | indent 2 }} |