k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/measurement/common/network-policy/manifests/dep-test-client-policy-creation.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: {{.Name}} 5 namespace: {{.Namespace}} 6 labels: 7 test: {{.TestClientLabel}} 8 type: {{.TypeLabelValue}} 9 spec: 10 replicas: 1 11 selector: 12 matchLabels: 13 name: {{.Name}} 14 template: 15 metadata: 16 labels: 17 name: {{.Name}} 18 test: {{.TestClientLabel}} 19 type: {{.TypeLabelValue}} 20 spec: 21 # Use separate nodes to avoid consuming CPU/Memory resources on default 22 # nodes where all deployments of the performance test run. 23 nodeSelector: 24 test-np: {{.TestClientNodeSelectorValue}} 25 tolerations: 26 - key: test-np 27 operator: Equal 28 value: {{.TestClientNodeSelectorValue}} 29 effect: NoSchedule 30 containers: 31 - name: net-policy-latency-client 32 ports: 33 - containerPort: {{.MetricsPort}} 34 name: npdelaymetrics 35 protocol: TCP 36 imagePullPolicy: Always 37 image: gcr.io/k8s-staging-perf-tests/network-policy-enforcement-latency/policy-creation-enforcement-latency:v0.0.1 38 command: 39 - sh 40 - -c 41 - ./policy-creation-enforcement-latency 42 -HostNamespace="{{.Namespace}}" 43 -TargetLabelSelector="{{.TargetLabelSelector}}" 44 -TargetNamespace="{{.TargetNamespace}}" 45 -TargetPort={{.TargetPort}} 46 -MaxTargets={{.MaxTargets}} 47 -MetricsPort={{.MetricsPort}} 48 -AllowPolicyName={{.AllowPolicyName}} 49 resources: 50 requests: 51 cpu: 200m 52 memory: 100Mi 53 serviceAccountName: {{.ServiceAccountName}}