k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/measurement/common/network-policy/manifests/policy-load.yaml (about) 1 apiVersion: networking.k8s.io/v1 2 kind: NetworkPolicy 3 metadata: 4 name: {{.Name}} 5 namespace: {{.Namespace}} 6 labels: 7 group: load 8 spec: 9 podSelector: 10 matchLabels: 11 name: {{.PodSelectorLabelValue}} 12 policyTypes: 13 - Egress 14 egress: 15 - to: 16 - ipBlock: 17 cidr: {{.CIDR}} 18 ports: 19 # Use two ports to double the number of load network policy rules. 20 - protocol: TCP 21 port: 8080 22 - protocol: TCP 23 port: 6355