kind: NetworkPolicy apiVersion: networking.k8s.io/v1 metadata: name: iperf3-server-access spec: podSelector: matchLabels: app: iperf3-server ingress: - ports: - port: 5201 from: - podSelector: matchLabels: app: iperf3-client