Update policy.yaml

This commit is contained in:
2026-02-17 12:43:20 +00:00
parent f69625f49b
commit 8f7c15e93f

View File

@@ -1,35 +1,29 @@
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: NetworkPolicy kind: NetworkPolicy
metadata: metadata:
name: test-network-policy name: {{ .Release.Name }}-dragonfly-ingress-lockdown
namespace: memelord-andrei
spec: spec:
podSelector: podSelector:
matchLabels: matchLabels:
role: db app: {{ .Release.Name }}-redis
policyTypes:
- Ingress
- Egress
ingress:
- from:
- ipBlock:
cidr: 172.17.0.0/16
except:
- 172.17.1.0/24
- namespaceSelector:
matchLabels:
project: myproject
- podSelector:
matchLabels:
role: frontend
ports:
- protocol: TCP
port: 6379
egress:
- to:
- ipBlock:
cidr: 10.0.0.0/24
ports:
- protocol: TCP
port: 5978
policyTypes:
- Ingress
ingress:
- from:
- podSelector:
matchLabels:
app: {{ .Release.Name }}
ports:
- protocol: TCP
port: 6379
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: monitoring
ports:
- protocol: TCP
port: 5432