🐞 fix:remove hostfilesystem in trex and add pbt PATH.

This commit is contained in:
linxin
2024-06-25 17:53:53 +08:00
committed by 林鑫
parent d1c38eba33
commit f92c949e15
2 changed files with 4 additions and 6 deletions

View File

@@ -313,7 +313,7 @@ role=4
# This module handles the global configuration settings.
[service]
iocore=1,2,3,4
iocore={{ range $index,$core := .Values.mrzcpd.cpu_affinity}}{{- if ne $index 0 }},{{ end -}}{{ $core }}{{- end }}
distmode={{ .Values.mrzcpd.distmode }}
hashmode=0
poll_wait_throttle=512

View File

@@ -23,6 +23,9 @@ spec:
- "-ec"
- |
chmod +x /opt/tsg/trex/generate-trex-conf.sh
echo 'export PATH=$PATH:/opt/tsg/perf-bench-tool' >> ~/.bashrc
echo 'eval "$(register-python-argcomplete pbt)"' >> ~/.bashrc
source ~/.bashrc
/opt/tsg/trex/generate-trex-conf.sh
while true; do sleep 1024;done
securityContext:
@@ -49,8 +52,6 @@ spec:
- name: PYTHONPATH
value: /opt/tsg/trex/v3.02/automation/trex_control_plane/interactive/
volumeMounts:
- name: host
mountPath: /host
- name: dev-vfio
mountPath: /dev/vfio
- name: modules
@@ -69,9 +70,6 @@ spec:
- name: dev-vfio
hostPath:
path: /dev/vfio
- name: host
hostPath:
path: /
- name: hugepage-1gi
emptyDir:
medium: HugePages-1Gi