github.phpd.cn/cilium/cilium@v1.6.12/test/k8sT/manifests/netperf-deployment.yaml (about) 1 --- 2 apiVersion: v1 3 kind: Pod 4 metadata: 5 name: netperf-server 6 labels: 7 id: netperf-server 8 zgroup: testapp 9 spec: 10 terminationGracePeriodSeconds: 0 11 containers: 12 - name: netperf 13 image: docker.io/tgraf/netperf:v1.0 14 readinessProbe: 15 exec: 16 command: ["netperf", "-H", "127.0.0.1", "-l", "1"] 17 --- 18 apiVersion: v1 19 kind: Pod 20 metadata: 21 name: netperf-client 22 labels: 23 id: netperf-client 24 zgroup: testapp 25 spec: 26 terminationGracePeriodSeconds: 0 27 containers: 28 - name: netperf 29 image: docker.io/tgraf/netperf:v1.0 30 --- 31 apiVersion: v1 32 kind: Service 33 metadata: 34 name: netperf-service 35 spec: 36 ports: 37 - port: 12865 38 selector: 39 name: netperf-server