29 lines
571 B
YAML
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 |