2023-10-16 13:14:53 -04:00
|
|
|
{{- if and .Values.agent .Values.hubble.enabled }}
|
2022-08-12 04:20:19 -04:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: hubble-peer
|
|
|
|
namespace: {{ .Release.Namespace }}
|
2023-10-16 13:14:53 -04:00
|
|
|
{{- with .Values.hubble.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2022-08-12 04:20:19 -04:00
|
|
|
labels:
|
|
|
|
k8s-app: cilium
|
2023-10-16 13:14:53 -04:00
|
|
|
app.kubernetes.io/part-of: cilium
|
|
|
|
app.kubernetes.io/name: hubble-peer
|
2022-08-12 04:20:19 -04:00
|
|
|
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 }}
|