redis-policy.yaml 433 B

12345678910111213141516171819202122
  1. apiVersion: networking.k8s.io/v1
  2. kind: NetworkPolicy
  3. metadata:
  4. name: redis-network-policy
  5. namespace: default
  6. spec:
  7. podSelector:
  8. matchLabels:
  9. name: redis
  10. policyTypes:
  11. - Ingress
  12. ingress:
  13. - from:
  14. - podSelector:
  15. matchLabels:
  16. name: nextcloud
  17. - podSelector:
  18. matchLabels:
  19. name: mariadb
  20. ports:
  21. - protocol: TCP
  22. port: 6379