From: Andreas Geissler Date: Mon, 3 Mar 2025 13:45:58 +0000 (+0100) Subject: [DCAE] Disable Istio Sidecar injection in HV-VES X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=80359b3457d0718d46591ecbb106ce21158c128c;p=oom.git [DCAE] Disable Istio Sidecar injection in HV-VES Added possibility to set "polLabel" in deployment template and disabled "isto-sidecar" injection in HV-VES collector Issue-ID: OOM-3333 Change-Id: Ic5a62549bc0a00e1138f4319be6460a9c9476dc1 Signed-off-by: Andreas Geissler --- diff --git a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl index 101dc075f9..eefee769bd 100644 --- a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl +++ b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl @@ -254,6 +254,7 @@ post-processing. {{- $drNeedProvisioning := or .Values.drFeedConfig .Values.drSubConfig -}} {{- $dcaeName := print (include "common.fullname" .) }} {{- $dcaeLabel := (dict "dcaeMicroserviceName" $dcaeName) -}} +{{- $podLabels := default .Values.podLabels .labels -}} {{- $dot := . -}} apiVersion: apps/v1 kind: Deployment @@ -262,7 +263,11 @@ spec: replicas: 1 selector: {{- include "common.selectors" . | nindent 4 }} template: + {{- if $podLabels}} + metadata: {{- include "common.templateMetadata" (dict "dot" . "labels" $podLabels) | nindent 6 }} + {{- else }} metadata: {{- include "common.templateMetadata" . | nindent 6 }} + {{- end }} spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} diff --git a/kubernetes/dcaegen2-services/components/dcae-hv-ves-collector/values.yaml b/kubernetes/dcaegen2-services/components/dcae-hv-ves-collector/values.yaml index a1a2467a71..e77d31859b 100644 --- a/kubernetes/dcaegen2-services/components/dcae-hv-ves-collector/values.yaml +++ b/kubernetes/dcaegen2-services/components/dcae-hv-ves-collector/values.yaml @@ -96,9 +96,13 @@ readiness: # since there are problems receiving binary data via the sidecar # the service port is excluded in the sidecar processing podAnnotations: + traffic.sidecar.istio.io/excludeOutboundPorts: '6061' traffic.sidecar.istio.io/excludeInboundPorts: '6061' traffic.sidecar.istio.io/includeInboundPorts: '*' +podLabels: + sidecar.istio.io/inject: "false" + # service configuration service: type: NodePort