19 lines
406 B
YAML
19 lines
406 B
YAML
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: allow-dns-metrics
|
|
namespace: kube-system
|
|
spec:
|
|
description: Allow DNS metrics
|
|
endpointSelector:
|
|
matchLabels:
|
|
k8s-app: kube-dns
|
|
ingress:
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
io.kubernetes.pod.namespace: prometheus
|
|
- toPorts:
|
|
- ports:
|
|
- port: "9153"
|
|
protocol: TCP
|