mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
29 lines
682 B
YAML
29 lines
682 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
|
|
{{- end }} |