apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: allow-self-to-minio spec: podSelector: matchLabels: app.kubernetes.io/name: minio policyTypes: ["Ingress"] ingress: - from: - namespaceSelector: matchLabels: kubernetes.io/metadata.name: minio-velero ports: - protocol: TCP port: 9000 - protocol: TCP port: 9001