diff options
author | Radoslaw Chmiel <r.chmiel@partner.samsung.com> | 2022-06-02 19:23:26 +0200 |
---|---|---|
committer | Radoslaw Chmiel <r.chmiel@partner.samsung.com> | 2022-06-02 19:23:26 +0200 |
commit | 527662ff89b476c3616b94e6882469d1e8cb2f33 (patch) | |
tree | 25daaf67acdcbc4882c1fc925501a7852f3780af /kubernetes/contrib/components/ejbca/templates/deployment.yaml | |
parent | c8d7cd06f9284c35242429ff0c84ac75efe44fed (diff) |
[CONTRIB] EJBCA ServiceMesh compatibility
EJBCA charts changes to make it work with servicemesh
Issue-ID: OOM-2981
Signed-off-by: Radoslaw Chmiel <r.chmiel@partner.samsung.com>
Change-Id: Ib0213da5ed63fe26a4c1956c5c8ce81bd399cc6f
Diffstat (limited to 'kubernetes/contrib/components/ejbca/templates/deployment.yaml')
-rw-r--r-- | kubernetes/contrib/components/ejbca/templates/deployment.yaml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/kubernetes/contrib/components/ejbca/templates/deployment.yaml b/kubernetes/contrib/components/ejbca/templates/deployment.yaml index 6bd5b259ea..a36dcacb23 100644 --- a/kubernetes/contrib/components/ejbca/templates/deployment.yaml +++ b/kubernetes/contrib/components/ejbca/templates/deployment.yaml @@ -22,6 +22,16 @@ spec: selector: {{- include "common.selectors" . | nindent 4 }} template: metadata: {{- include "common.templateMetadata" . | nindent 6 }} + {{- if (include "common.onServiceMesh" . ) }} + annotations: + {{- if eq ( .Values.global.serviceMesh.engine ) "linkerd" }} + linkerd.io/inject: disabled + {{- end }} + {{- if eq ( .Values.global.serviceMesh.engine ) "istio" }} + sidecar.istio.io/rewriteAppHTTPProbers: "false" + proxy.istio.io/config: '{ "holdApplicationUntilProxyStarts": true }' + {{- end }} + {{- end }} spec: imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" @@ -51,7 +61,11 @@ spec: lifecycle: postStart: exec: - command: ["/bin/sh", "-c", "/opt/primekey/scripts/ejbca-config.sh"] + command: + - sh + - -c + - | + sleep 60; /opt/primekey/scripts/ejbca-config.sh volumeMounts: - name: "{{ include "common.fullname" . }}-volume" mountPath: /opt/primekey/scripts/ |