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>
{{- $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
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 }}
# 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