diff --git a/chart/templates/replicated-deployment.yaml b/chart/templates/replicated-deployment.yaml index 6bb11de..f21fbf4 100644 --- a/chart/templates/replicated-deployment.yaml +++ b/chart/templates/replicated-deployment.yaml @@ -48,6 +48,12 @@ spec: - name: replicated secret: secretName: {{ include "replicated.secretName" . }} + {{- if .Values.privateCAConfigmap }} + - name: additional-certs + configMap: + defaultMode: 420 + name: {{ .Values.privateCAConfigmap }} + {{- end }} containers: - name: replicated image: {{ index .Values.images "replicated-sdk" }} @@ -60,10 +66,18 @@ spec: mountPath: /etc/replicated/config.yaml readOnly: true subPath: config.yaml + {{- if .Values.privateCAConfigmap }} + - mountPath: /certs + name: additional-certs + {{- end }} env: {{- with .Values.extraEnv }} {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.privateCAConfigmap }} + - name: SSL_CERT_DIR + value: /certs + {{- end }} - name: REPLICATED_NAMESPACE valueFrom: fieldRef: diff --git a/chart/values.yaml.tmpl b/chart/values.yaml.tmpl index 6b3d704..775f3ce 100644 --- a/chart/values.yaml.tmpl +++ b/chart/values.yaml.tmpl @@ -45,6 +45,8 @@ service: type: ClusterIP port: 3000 +privateCAConfigmap: ~ + extraEnv: [] # "integration" mode related values.