Kubernetes, DevOps, Cloud Computing, Software Development, Programming.
Only pods with the label access: allowed will be able to communicate with the Nginx pods. Create a network policy: apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: nginx-network-policy spec: podSelector: matchLabels: app: nginx ingress: - from: - podSelector: matchLabels: