Files
cloud-configuration/helm/cluster_setup/templates/cilium/hubble-relay-networkpolicy.yaml
T

37 lines
871 B
YAML

{{- if .Values.cilium.enabled }}
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: hubble-relay
namespace: kube-system
specs:
- endpointSelector:
# apply to hubble relay pods
matchLabels:
io.cilium.k8s.policy.serviceaccount: hubble-relay
ingress:
# kubelet -> hubble relay probes
- fromEntities:
- host
toPorts:
- ports:
- port: '4245'
protocol: TCP
egress:
# hubble relay -> hubble agent
- toEntities:
- host
- remote-node
toPorts:
- ports:
- port: '4244'
protocol: TCP
- toEntities:
- world
toPorts:
- ports:
- port: '53'
protocol: UDP
- port: '443'
protocol: TCP
{{- end }}