feature:TSG-15520:将host上的/dev/bus/usb目录映射到容器中

This commit is contained in:
fumingwei
2023-06-12 21:05:13 +08:00
committed by 付明卫
parent a95b8fcccf
commit e9e00202c9
3 changed files with 16 additions and 0 deletions

View File

@@ -470,4 +470,16 @@ enable_breakpad_upload=0
- name: localtime-node
mountPath: /etc/localtime
readOnly: true
{{- end -}}
{{- define "traffic-engine.volume.dev-bus-usb" -}}
- name: dev-bus-usb-node
hostPath:
path: /dev/bus/usb
{{- end -}}
{{- define "traffic-engine.mount.dev-bus-usb" -}}
- name: dev-bus-usb-node
mountPath: /dev/bus/usb
readOnly: true
{{- end -}}

View File

@@ -89,6 +89,7 @@ spec:
{{ template "traffic-engine.mount.localtime" . }}
{{ template "traffic-engine.firewall.mount.prestart" . }}
{{ template "traffic-engine.firewall.mount.hostpath" . }}
{{ template "traffic-engine.mount.dev-bus-usb" . }}
- name: telegraf
image: "registry.gdnt-cloud.website/tsg-telegraf:{{ .Chart.AppVersion }}"
@@ -172,3 +173,4 @@ spec:
{{ template "traffic-engine.volume.localtime" . }}
{{ template "traffic-engine.firewall.volume.prestart" . }}
{{ template "traffic-engine.volume.hostpath" . }}
{{ template "traffic-engine.volume.dev-bus-usb" . }}

View File

@@ -86,6 +86,7 @@ spec:
{{ template "traffic-engine.mount.localtime" . }}
{{ template "traffic-engine.proxy.mount.prestart" . }}
{{ template "traffic-engine.proxy.mount.hostpath" . }}
{{ template "traffic-engine.mount.dev-bus-usb" . }}
- name: certstore
image: "registry.gdnt-cloud.website/tsg-certstore:{{ .Chart.AppVersion }}"
@@ -263,5 +264,6 @@ spec:
{{ template "traffic-engine.volume.localtime" . }}
{{ template "traffic-engine.proxy.volume.prestart" . }}
{{ template "traffic-engine.volume.hostpath" . }}
{{ template "traffic-engine.volume.dev-bus-usb" . }}
{{- end }}