[DCAE] Disable Istio Sidecar injection in HV-VES 56/140356/1
authorAndreas Geissler <andreas-geissler@telekom.de>
Mon, 3 Mar 2025 13:45:58 +0000 (14:45 +0100)
committerAndreas Geissler <andreas-geissler@telekom.de>
Mon, 3 Mar 2025 13:45:58 +0000 (14:45 +0100)
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 <andreas-geissler@telekom.de>
kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl
kubernetes/dcaegen2-services/components/dcae-hv-ves-collector/values.yaml

index 101dc07..eefee76 100644 (file)
@@ -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 }}
index a1a2467..e77d318 100644 (file)
@@ -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