Skip to content

Commit b070786

Browse files
committed
feat: update katalyst agent to support nri
Signed-off-by: Airren <[email protected]>
1 parent a8ec624 commit b070786

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

charts/katalyst/charts/agent/templates/daemonset.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ spec:
7878
readOnly: true
7979
- mountPath: /tmp
8080
name: host-tmp-dir
81+
{{- if and (index .Values.customArgs "orm-work-mode") (eq (index .Values.customArgs "orm-work-mode") "nri") }}
82+
- mountPath: /var/run/nri
83+
name: host-nri-dir
84+
{{- end }}
8185
{{- with .Values.nodeSelector }}
8286
nodeSelector:
8387
{{- toYaml . | nindent 8 }}
@@ -114,4 +118,10 @@ spec:
114118
path: /tmp
115119
type: ""
116120
name: host-tmp-dir
121+
{{- if and (index .Values.customArgs "orm-work-mode") (eq (index .Values.customArgs "orm-work-mode") "nri") }}
122+
- hostPath:
123+
path: /var/run/nri
124+
type: DirectoryOrCreate
125+
name: host-nri-dir
126+
{{- end }}
117127

0 commit comments

Comments
 (0)