Add a http performance test script based on wrk
[iec.git] / src / foundation / scripts / cni / multus / use-cases / iperfv2-server-sriov.yaml
1 # yamllint disable
2 #apiVersion: extensions/v1beta1
3 apiVersion: apps/v1
4 kind: Service
5 apiVersion: v1
6 metadata:
7   name: iperfv2-server-sriov
8 spec:
9   type: NodePort
10   ports:
11     - protocol: TCP
12       port: 5001
13       targetPort: 5001
14       #nodePort: 31050
15   selector:
16     app: iperfv2-server-sriov
17 ---
18 apiVersion: v1
19 #kind: Deployment
20 kind: Pod
21 metadata:
22   name: iperfv2-server-sriov
23   labels:
24     app: iperfv2-server-sriov
25   annotations:
26     k8s.v1.cni.cncf.io/networks: sriov-net1
27 spec:
28       containers:
29       - image: iecedge/iperf-arm64
30         imagePullPolicy: IfNotPresent
31         name: iperfv2-server-sriov
32         ports:
33         - containerPort: 5001
34         command: ["iperf"]
35         args: ["-s"]
36         resources:
37           requests:
38             arm.com/ps225_sriov_netdevice: '1'
39           limits:
40             arm.com/ps225_sriov_netdevice: '1'
41 #        securityContext:
42 #          privileged: true