constellation/cli/internal/helm/charts/cilium/templates/hubble/peer-service.yaml
2022-08-12 10:20:19 +02:00

25 lines
685 B
YAML

{{- if and .Values.agent .Values.hubble.enabled .Values.hubble.peerService.enabled }}
apiVersion: v1
kind: Service
metadata:
name: hubble-peer
namespace: {{ .Release.Namespace }}
labels:
k8s-app: cilium
spec:
selector:
k8s-app: cilium
ports:
- name: peer-service
{{- if .Values.hubble.peerService.servicePort }}
port: {{ .Values.hubble.peerService.servicePort }}
{{- else }}
port: {{ .Values.hubble.tls.enabled | ternary 443 80 }}
{{- end }}
protocol: TCP
targetPort: {{ .Values.hubble.peerService.targetPort }}
{{- if semverCompare ">=1.22-0" .Capabilities.KubeVersion.GitVersion }}
internalTrafficPolicy: Local
{{- end }}
{{- end }}