12345678910111213141516171819202122 |
- apiVersion: networking.k8s.io/v1
- kind: NetworkPolicy
- metadata:
- name: redis-network-policy
- namespace: default
- spec:
- podSelector:
- matchLabels:
- name: redis
- policyTypes:
- - Ingress
- ingress:
- - from:
- - podSelector:
- matchLabels:
- name: nextcloud
- - podSelector:
- matchLabels:
- name: mariadb
- ports:
- - protocol: TCP
- port: 6379
|