diff --git a/ansible/roles/traffic-engine/files/helm/templates/_config.tpl b/ansible/roles/traffic-engine/files/helm/templates/_config.tpl index 063fd539..b7564984 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/_config.tpl +++ b/ansible/roles/traffic-engine/files/helm/templates/_config.tpl @@ -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 -}} \ No newline at end of file diff --git a/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml b/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml index 801bdb7b..fce42980 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml @@ -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" . }} diff --git a/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml b/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml index f2222f1a..11c1f46c 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml @@ -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 }} \ No newline at end of file