mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
25 lines
685 B
YAML
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 }}
|