constellation/cli/internal/helm/charts/cilium/templates/hubble/peer-service.yaml

25 lines
685 B
YAML
Raw Normal View History

2022-08-12 08:20:19 +00:00
{{- 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 }}