File tree Expand file tree Collapse file tree 12 files changed +160
-41
lines changed
Expand file tree Collapse file tree 12 files changed +160
-41
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ metadata:
99kind : NetworkPolicy
1010apiVersion : networking.k8s.io/v1
1111metadata :
12- name : default
12+ name : default-ingress
1313 namespace : authentik
1414spec :
1515 podSelector : {}
@@ -56,11 +56,22 @@ spec:
5656 - protocol : TCP
5757 port : 6636
5858 endPort : 6636
59+ policyTypes :
60+ - Ingress
61+
62+ ---
63+ kind : NetworkPolicy
64+ apiVersion : networking.k8s.io/v1
65+ metadata :
66+ name : default-egress
67+ namespace : authentik
68+ spec :
69+ podSelector : {}
5970 egress :
6071 - to :
6172 # Allow all egress
6273 - ipBlock :
6374 cidr : " 0.0.0.0/0"
75+
6476 policyTypes :
65- - Ingress
66- - Egress
77+ - Egress
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ metadata:
77kind : NetworkPolicy
88apiVersion : networking.k8s.io/v1
99metadata :
10- name : default
10+ name : default-ingress
1111 namespace : ceph-rbd
1212spec :
1313 podSelector : {}
1616 # Only allow ingress from K8S (admission controller)
1717 - ipBlock :
1818 cidr : " 10.0.0.0/8"
19+ policyTypes :
20+ - Ingress
21+
22+ ---
23+ kind : NetworkPolicy
24+ apiVersion : networking.k8s.io/v1
25+ metadata :
26+ name : default-egress
27+ namespace : ceph-rbd
28+ spec :
29+ podSelector : {}
1930 egress :
2031 - to :
2132 # Only allow egress to K8S and local lan
2435 - ipBlock :
2536 cidr : " 192.168.0.0/16"
2637 policyTypes :
27- - Ingress
28- - Egress
38+ - Egress
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ metadata:
77kind : NetworkPolicy
88apiVersion : networking.k8s.io/v1
99metadata :
10- name : default
10+ name : default-ingress
1111 namespace : ceph
1212spec :
1313 podSelector : {}
1616 # Only allow ingress from K8S (admission controller)
1717 - ipBlock :
1818 cidr : " 10.0.0.0/8"
19+ policyTypes :
20+ - Ingress
21+
22+ ---
23+ kind : NetworkPolicy
24+ apiVersion : networking.k8s.io/v1
25+ metadata :
26+ name : default-egress
27+ namespace : ceph
28+ spec :
29+ podSelector : {}
1930 egress :
2031 - to :
2132 # Only allow egress to K8S and local lan
2435 - ipBlock :
2536 cidr : " 192.168.0.0/16"
2637 policyTypes :
27- - Ingress
28- - Egress
38+ - Egress
2939
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ metadata:
77kind : NetworkPolicy
88apiVersion : networking.k8s.io/v1
99metadata :
10- name : default
10+ name : default-ingress
1111 namespace : cert-manager
1212spec :
1313 podSelector : {}
@@ -16,11 +16,21 @@ spec:
1616 # Only allow ingress from K8S (admission controller)
1717 - ipBlock :
1818 cidr : " 10.0.0.0/8"
19+ policyTypes :
20+ - Ingress
21+
22+ ---
23+ kind : NetworkPolicy
24+ apiVersion : networking.k8s.io/v1
25+ metadata :
26+ name : default-egress
27+ namespace : cert-manager
28+ spec :
29+ podSelector : {}
1930 egress :
2031 - to :
2132 # Allow all egress (lets encrypt)
2233 - ipBlock :
2334 cidr : " 0.0.0.0/0"
2435 policyTypes :
25- - Ingress
26- - Egress
36+ - Egress
Original file line number Diff line number Diff line change 77kind : NetworkPolicy
88apiVersion : networking.k8s.io/v1
99metadata :
10- name : default
10+ name : default-ingress
1111 namespace : default
1212spec :
1313 podSelector : {}
@@ -47,12 +47,22 @@ spec:
4747 - protocol : UDP
4848 port : 1700
4949 endPort : 1700
50+ policyTypes :
51+ - Ingress
52+
53+ ---
54+ kind : NetworkPolicy
55+ apiVersion : networking.k8s.io/v1
56+ metadata :
57+ name : default-egress
58+ namespace : default
59+ spec :
60+ podSelector : {}
5061 egress :
5162 - to :
5263 # Allow all egress
5364 - ipBlock :
5465 cidr : " 0.0.0.0/0"
55- policyTypes :
56- - Ingress
57- - Egress
5866
67+ policyTypes :
68+ - Egress
Original file line number Diff line number Diff line change 77kind : NetworkPolicy
88apiVersion : networking.k8s.io/v1
99metadata :
10- name : default
10+ name : default-ingress
1111 namespace : kube-system
1212spec :
1313 podSelector : {}
@@ -16,12 +16,21 @@ spec:
1616 # Only allow ingress from K8S (DNS server)
1717 - ipBlock :
1818 cidr : " 10.0.0.0/8"
19+ policyTypes :
20+ - Ingress
21+
22+ ---
23+ kind : NetworkPolicy
24+ apiVersion : networking.k8s.io/v1
25+ metadata :
26+ name : default-egress
27+ namespace : kube-system
28+ spec :
29+ podSelector : {}
1930 egress :
2031 - to :
2132 # Allow all egress (multus has to pull CNI plugins, DNS server)
2233 - ipBlock :
2334 cidr : " 0.0.0.0/0"
2435 policyTypes :
25- - Ingress
26- - Egress
27-
36+ - Egress
Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ metadata:
44 name : kubernetes-dashboard
55
66---
7-
87kind : NetworkPolicy
98apiVersion : networking.k8s.io/v1
109metadata :
11- name : default
10+ name : default-ingress
1211 namespace : kubernetes-dashboard
1312spec :
1413 podSelector : {}
1817 - namespaceSelector :
1918 matchLabels :
2019 kubernetes.io/metadata.name : nginx
20+ policyTypes :
21+ - Ingress
22+
23+ ---
24+ kind : NetworkPolicy
25+ apiVersion : networking.k8s.io/v1
26+ metadata :
27+ name : default-egress
28+ namespace : kubernetes-dashboard
29+ spec :
30+ podSelector : {}
2131 egress :
2232 - to :
2333 # Only allow egress to K8S and local network
2636 - ipBlock :
2737 cidr : " 192.0.0.0/8"
2838 policyTypes :
29- - Ingress
30- - Egress
39+ - Egress
Original file line number Diff line number Diff line change @@ -6,11 +6,10 @@ metadata:
66 cert-manager : CLUSTER_DOMAIN_CERT
77
88---
9-
109kind : NetworkPolicy
1110apiVersion : networking.k8s.io/v1
1211metadata :
13- name : default
12+ name : default-ingress
1413 namespace : maddy
1514spec :
1615 podSelector : {}
@@ -58,11 +57,21 @@ spec:
5857 - protocol : TCP
5958 port : 465
6059 endPort : 465
60+ policyTypes :
61+ - Ingress
62+
63+ ---
64+ kind : NetworkPolicy
65+ apiVersion : networking.k8s.io/v1
66+ metadata :
67+ name : default-egress
68+ namespace : maddy
69+ spec :
70+ podSelector : {}
6171 egress :
6272 - to :
6373 # allow outbound email
6474 - ipBlock :
6575 cidr : " 0.0.0.0/0"
6676 policyTypes :
67- - Ingress
68- - Egress
77+ - Egress
Original file line number Diff line number Diff line change @@ -7,7 +7,19 @@ metadata:
77kind : NetworkPolicy
88apiVersion : networking.k8s.io/v1
99metadata :
10- name : default
10+ name : default-ingress
11+ namespace : monitoring
12+ spec :
13+ podSelector : {}
14+ ingress : []
15+ policyTypes :
16+ - Ingress
17+
18+ ---
19+ kind : NetworkPolicy
20+ apiVersion : networking.k8s.io/v1
21+ metadata :
22+ name : default-egress
1123 namespace : monitoring
1224spec :
1325 podSelector : {}
1729 - ipBlock :
1830 cidr : " 10.0.0.0/8"
1931 policyTypes :
20- - Ingress
21- - Egress
22-
32+ - Egress
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ metadata:
77kind : NetworkPolicy
88apiVersion : networking.k8s.io/v1
99metadata :
10- name : default
10+ name : default-ingress
1111 namespace : nginx
1212spec :
1313 podSelector : {}
@@ -16,11 +16,21 @@ spec:
1616 # Allow all ingress (K8S ingress)
1717 - ipBlock :
1818 cidr : " 0.0.0.0/0"
19+ policyTypes :
20+ - Ingress
21+
22+ ---
23+ kind : NetworkPolicy
24+ apiVersion : networking.k8s.io/v1
25+ metadata :
26+ name : default-egress
27+ namespace : nginx
28+ spec :
29+ podSelector : {}
1930 egress :
2031 - to :
2132 # Allow egress to Internet (oauth)
2233 - ipBlock :
2334 cidr : " 0.0.0.0/0"
2435 policyTypes :
25- - Ingress
26- - Egress
36+ - Egress
You can’t perform that action at this time.
0 commit comments