mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2025-10-03 08:56:18 +00:00
add-kubernetes
This commit is contained in:
17
Pihole/Kubernetes/networkpolicy.yaml
Normal file
17
Pihole/Kubernetes/networkpolicy.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
kind: NetworkPolicy
|
||||
apiVersion: networking.k8s.io/v1
|
||||
metadata:
|
||||
name: allow-internet-only
|
||||
namespace: pihole
|
||||
spec:
|
||||
podSelector: {}
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- from:
|
||||
- ipBlock:
|
||||
cidr: 0.0.0.0/0
|
||||
except:
|
||||
- 10.0.0.0/8
|
||||
- 192.168.0.0/16
|
||||
- 172.16.0.0/20
|
Reference in New Issue
Block a user