quorate/vendor/infrastructure/openebs/network-policies.yaml

62 lines
1.4 KiB
YAML

---
# OpenEBS components: apiserver access, DNS.
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: openebs
namespace: openebs
spec:
endpointSelector: {}
ingress:
- fromEntities:
- host
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
---
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: host-egress-openebs-probes
spec:
nodeSelector: {}
egress:
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: openebs
openebs.io/component-name: openebs-localpv-provisioner
toPorts:
- ports:
- port: "8081"
protocol: TCP
---
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: host-ingress-openebs-probe-replies
spec:
nodeSelector: {}
ingress:
- fromEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: openebs
openebs.io/component-name: openebs-localpv-provisioner
toPorts:
- ports:
- port: "32768"
endPort: 60999
protocol: TCP