split internal & external
This commit is contained in:
21
internal/internal-policy.yaml
Normal file
21
internal/internal-policy.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: restrict-ingress-nginx-internal
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: nginx-internal
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- {}
|
||||
# - from:
|
||||
# - ipBlock:
|
||||
# cidr: 192.168.0.0/16
|
||||
# ports:
|
||||
# - protocol: TCP
|
||||
# port: 80
|
||||
# - protocol: TCP
|
||||
# port: 443
|
||||
Reference in New Issue
Block a user