feature:TSG-15520:将host上的/dev/bus/usb目录映射到容器中
This commit is contained in:
@@ -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 -}}
|
||||
@@ -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" . }}
|
||||
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user