Merge "Fix typo in classname AclUknownActionTemplate"
[yardstick.git] / samples / vnf_samples / nsut / cmts / tc_k8s_pktgen_01.yaml
1 # Copyright (c) 2018 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 ---
15 schema: yardstick:task:0.1
16 scenarios:
17 - type: NSPerf
18   traffic_profile: ../../traffic_profiles/pktgen_throughput.yaml
19   topology: cmts-tg-topology.yaml
20   nodes:
21     tg__0: trafficgen-k8syardstick
22     vnf__0: vnf-k8syardstick
23   options: {}
24   runner:
25     type: IterationIPC
26     iterations: 10
27     interval: 15
28     timeout: 10000
29 context:
30   name: k8syardstick
31   type: Kubernetes
32
33   servers:
34     vnf:
35       containers:
36         - image: si-docker.ir.intel.com/vcmts-ubuntu/vcmts-pktgen-uepi
37           args: ["/opt/bin/cmk isolate --conf-dir=/etc/cmk --socket-id=0 --pool=dataplane /vcmts/setup.sh anga_mac_1_ds.pcap ds"]
38           env:
39             - name: LUA_PATH
40               value: "/vcmts/Pktgen.lua"
41             - name: CMK_PROC_FS
42               value: "/host/proc"
43           resources:
44             requests:
45               pod.alpha.kubernetes.io/opaque-int-resource-cmk: "1"
46           ports:
47             - containerPort: 22022
48           volumeMounts:
49             - name: hugepages
50               mountPath: /dev/hugepages
51             - name: sysfs
52               mountPath: /sys
53             - name: sriov
54               mountPath: /sriov-cni
55             - name: host-proc
56               mountPath: /host/proc
57               readOnly: true
58             - name: cmk-install-dir
59               mountPath: /opt/bin
60             - name: cmk-conf-dir
61               mountPath: /etc/cmk
62           securityContext:
63             allowPrivilegeEscalation: true
64             privileged: true
65
66       node_ports:
67         - name: lua  # Lower case alphanumeric characters or '-'
68           port: 22022
69       networks:
70         - flannel
71         - sriov01
72       volumes:
73         - name: hugepages
74           hostPath:
75             path: /dev/hugepages
76         - name: sysfs
77           hostPath:
78             path: /sys
79         - name: sriov
80           hostPath:
81             path: /var/lib/cni/sriov
82         - name: cmk-install-dir
83           hostPath:
84             path: /opt/bin
85         - name: host-proc
86           hostPath:
87             path: /proc
88         - name: cmk-conf-dir
89           hostPath:
90             path: /etc/cmk
91
92     trafficgen:
93       containers:
94         - image: si-docker.ir.intel.com/vcmts-ubuntu/vcmts-pktgen-uepi
95           args: ["/opt/bin/cmk isolate --conf-dir=/etc/cmk --socket-id=0 --pool=dataplane /vcmts/setup.sh anga_mac_1_ds.pcap ds"]
96           env:
97             - name: LUA_PATH
98               value: "/vcmts/Pktgen.lua"
99             - name: CMK_PROC_FS
100               value: "/host/proc"
101           resources:
102             requests:
103               pod.alpha.kubernetes.io/opaque-int-resource-cmk: "1"
104           ports:
105             - containerPort: 22022
106           volumeMounts:
107             - name: hugepages
108               mountPath: /dev/hugepages
109             - name: sysfs
110               mountPath: /sys
111             - name: sriov
112               mountPath: /sriov-cni
113             - name: host-proc
114               mountPath: /host/proc
115               readOnly: true
116             - name: cmk-install-dir
117               mountPath: /opt/bin
118             - name: cmk-conf-dir
119               mountPath: /etc/cmk
120           securityContext:
121             allowPrivilegeEscalation: true
122             privileged: true
123
124       node_ports:
125         - name: lua  # Lower case alphanumeric characters or '-'
126           port: 22022
127       networks:
128         - flannel
129         - sriov01
130       volumes:
131         - name: hugepages
132           hostPath:
133             path: /dev/hugepages
134         - name: sysfs
135           hostPath:
136             path: /sys
137         - name: sriov
138           hostPath:
139             path: /var/lib/cni/sriov
140         - name: cmk-install-dir
141           hostPath:
142             path: /opt/bin
143         - name: host-proc
144           hostPath:
145             path: /proc
146         - name: cmk-conf-dir
147           hostPath:
148             path: /etc/cmk
149
150   networks:
151     flannel:
152       args: '[{ "delegate": { "isDefaultGateway": true }}]'
153       plugin: flannel
154     sriov01:
155       plugin: sriov
156       args: '[{"if0": "ens802f0",
157                "if0name": "net0",
158                "dpdk": {
159                    "kernel_driver": "i40evf",
160                    "dpdk_driver": "igb_uio",
161                    "dpdk_tool": "/opt/nsb_bin/dpdk-devbind.py"}
162              }]'
163     sriov02:
164       plugin: sriov
165       args: '[{"if0": "ens802f0",
166                "if0name": "net0",
167                "dpdk": {
168                    "kernel_driver": "i40evf",
169                    "dpdk_driver": "igb_uio",
170                    "dpdk_tool": "/opt/nsb_bin/dpdk-devbind.py"}
171              }]'