Files
deployment1/policy.yaml
2026-02-17 12:43:20 +00:00

29 lines
571 B
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ .Release.Name }}-dragonfly-ingress-lockdown
spec:
podSelector:
matchLabels:
app: {{ .Release.Name }}-redis
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