58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
|
|
---
|
||
|
|
# Host egress to intel-system pods (metrics, webhook).
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumClusterwideNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: host-egress-intel-system
|
||
|
|
spec:
|
||
|
|
nodeSelector: {}
|
||
|
|
egress:
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: intel-system
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "8081"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "9443"
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
# Intel device plugin operator: webhook from kube-apiserver (9443),
|
||
|
|
# metrics from host (8081), apiserver.
|
||
|
|
apiVersion: cilium.io/v2
|
||
|
|
kind: CiliumNetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: intel-device-plugins-operator
|
||
|
|
namespace: intel-system
|
||
|
|
spec:
|
||
|
|
endpointSelector:
|
||
|
|
matchLabels:
|
||
|
|
control-plane: controller-manager
|
||
|
|
ingress:
|
||
|
|
- fromEntities:
|
||
|
|
- kube-apiserver
|
||
|
|
- host
|
||
|
|
- remote-node
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "9443"
|
||
|
|
protocol: TCP
|
||
|
|
- port: "8081"
|
||
|
|
protocol: TCP
|
||
|
|
egress:
|
||
|
|
- toEntities:
|
||
|
|
- kube-apiserver
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "6443"
|
||
|
|
protocol: TCP
|
||
|
|
- toEndpoints:
|
||
|
|
- matchLabels:
|
||
|
|
k8s:io.kubernetes.pod.namespace: kube-system
|
||
|
|
k8s-app: kube-dns
|
||
|
|
toPorts:
|
||
|
|
- ports:
|
||
|
|
- port: "53"
|
||
|
|
protocol: UDP
|
||
|
|
- port: "53"
|
||
|
|
protocol: TCP
|