summaryrefslogtreecommitdiffstats
path: root/kubernetes/platform/components/cmpv2-cert-provider/templates/deployment.yaml
diff options
context:
space:
mode:
authorJack Lucas <jflos@sonoris.net>2022-06-22 14:58:04 +0000
committerGerrit Code Review <gerrit@onap.org>2022-06-22 14:58:04 +0000
commitf5746c86bc67ca7689579d121c02527e21910dc0 (patch)
treec98212ca9b68d4da5f65d599a5e6d8d7f49fed58 /kubernetes/platform/components/cmpv2-cert-provider/templates/deployment.yaml
parentfda288c6f08adb80b7a70f80c1836e6c9327c7c2 (diff)
parentf3fbbe4afbe13e332dc2080fe3d2ca7aa997064b (diff)
Merge "[PLATFORM] Platform ServiceMesh compatibility"
Diffstat (limited to 'kubernetes/platform/components/cmpv2-cert-provider/templates/deployment.yaml')
-rw-r--r--kubernetes/platform/components/cmpv2-cert-provider/templates/deployment.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/kubernetes/platform/components/cmpv2-cert-provider/templates/deployment.yaml b/kubernetes/platform/components/cmpv2-cert-provider/templates/deployment.yaml
index c49762202b..ce5e410abe 100644
--- a/kubernetes/platform/components/cmpv2-cert-provider/templates/deployment.yaml
+++ b/kubernetes/platform/components/cmpv2-cert-provider/templates/deployment.yaml
@@ -32,6 +32,16 @@ spec:
metadata:
labels:
control-plane: controller-manager
+ {{- if (include "common.onServiceMesh" . | nindent 6 ) }}
+ annotations:
+ {{- if eq ( .Values.global.serviceMesh.engine ) "linkerd" }}
+ linkerd.io/inject: disabled
+ {{- end }}
+ {{- if eq ( .Values.global.serviceMesh.engine ) "istio" }}
+ traffic.sidecar.istio.io/excludeInboundPorts: "8080,8443"
+ traffic.sidecar.istio.io/includeInboundPorts: '*'
+ {{- end }}
+ {{- end }}
spec:
imagePullSecrets:
- name: "{{ include "common.namespace" . }}-docker-registry-key"