add policy
This commit is contained in:
parent
36f4bbc98a
commit
b1a30eaf1d
1 changed files with 20 additions and 0 deletions
|
|
@ -15,3 +15,23 @@ spec:
|
||||||
- 10.0.0.0/8
|
- 10.0.0.0/8
|
||||||
- 192.168.0.0/16
|
- 192.168.0.0/16
|
||||||
- 172.16.0.0/12
|
- 172.16.0.0/12
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: kubernetes-egress
|
||||||
|
spec:
|
||||||
|
podSelector: {}
|
||||||
|
policyTypes:
|
||||||
|
- Egress
|
||||||
|
egress:
|
||||||
|
- to:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
- podSelector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-apiserver
|
||||||
|
- ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 6443
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue