apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: minio-nginx
spec:
  podSelector:
    matchLabels:
      app: minio-nginx
  policyTypes:
  - Ingress
  - Egress
  ingress:
  - from:
    - ipBlock:
        cidr: 0.0.0.0/0
    ports:
    - protocol: TCP
      port: 8080
    - protocol: TCP
      port: 8443
  egress:
  - to:
    - ipBlock:
        cidr: 0.0.0.0/0
    ports:
    - protocol: UDP
      port: 53
    - protocol: TCP
      port: 8080
