k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/measurement/common/network-policy/manifests/policy-egress-allow-apiserver.yaml (about)

     1  apiVersion: networking.k8s.io/v1
     2  kind: NetworkPolicy
     3  metadata:
     4    name: {{.Name}}
     5    namespace: {{.Namespace}}
     6    labels:
     7      test: {{.TestClientLabel}}
     8  spec:
     9    podSelector:
    10      matchLabels:
    11        test: {{.TestClientLabel}}
    12    policyTypes:
    13    - Egress
    14    egress:
    15    - ports:
    16      - port: 443
    17        protocol: TCP
    18      - port: 80
    19        protocol: TCP
    20      to:
    21      - ipBlock:
    22          cidr: {{.kubeAPIServerIP}}/32