Skip to content

Commit

Permalink
Improved annotations when Istio is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Dec 8, 2021
1 parent e40a9f8 commit a5bf50f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/generic-service/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ spec:
labels: {{ include "generic-service.default-labels" . | nindent 8 }}
annotations:
kubectl.kubernetes.io/default-container: {{ include "generic-service.fullname" . }}
traffic.sidecar.istio.io/includeInboundPorts: '{{ if .Values.ingress.enabled }}{{ .Values.ingress.port }}{{ end }}'
{{- if .Values.ingress.istio.enabled }}
traffic.sidecar.istio.io/includeInboundPorts: {{ .Values.ingress.port | quote }}
{{- end }}
{{- if .Values.tracing.enabled }}
traffic.sidecar.istio.io/excludeOutboundPorts: '5778,9411,14268,14250' # Jaeger ports
{{- end }}
Expand Down

0 comments on commit a5bf50f

Please sign in to comment.