nextcloud-np.yaml 639 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. apiVersion: networking.k8s.io/v1
  2. kind: NetworkPolicy
  3. metadata:
  4. name: nextcloud-to-mariadb
  5. spec:
  6. podSelector:
  7. matchLabels:
  8. name: nextcloud
  9. policyTypes:
  10. - Egress
  11. egress:
  12. - to:
  13. - namespaceSelector:
  14. matchLabels:
  15. name: mariadb
  16. ports:
  17. - protocol: TCP
  18. port: 3306
  19. ---
  20. apiVersion: networking.k8s.io/v1
  21. kind: NetworkPolicy
  22. metadata:
  23. name: nextcloud-to-redis
  24. spec:
  25. podSelector:
  26. matchLabels:
  27. name: nextcloud
  28. policyTypes:
  29. - Egress
  30. egress:
  31. - to:
  32. - namespaceSelector:
  33. matchLabels:
  34. name: default
  35. ports:
  36. - protocol: TCP
  37. port: 6379