github.com/cilium/cilium@v1.16.2/test/bigtcp/netperf.yaml (about) 1 --- 2 apiVersion: v1 3 kind: Pod 4 metadata: 5 labels: 6 # This pod will act as a server. 7 app.kubernetes.io/name: netperf-server 8 name: netperf-server 9 spec: 10 containers: 11 - name: netperf 12 image: cilium/netperf 13 ports: 14 - containerPort: 12865 15 --- 16 apiVersion: v1 17 kind: Pod 18 metadata: 19 labels: 20 app.kubernetes.io/name: netperf-client 21 # This pod will act as a client. 22 name: netperf-client 23 spec: 24 affinity: 25 # Prevents the client from being scheduled to the 26 # same node as the server. 27 podAntiAffinity: 28 requiredDuringSchedulingIgnoredDuringExecution: 29 - labelSelector: 30 matchExpressions: 31 - key: app.kubernetes.io/name 32 operator: In 33 values: 34 - netperf-server 35 topologyKey: kubernetes.io/hostname 36 containers: 37 - name: netperf 38 args: 39 - sleep 40 - infinity 41 image: cilium/netperf