Skip to content

Commit

Permalink
helm: provide access to pod-resources kuelet socket.
Browse files Browse the repository at this point in the history
Bind-mount kubelet pod-resources directory read-only to plugin
daemonset, to provide access to kubelet pod-resources socket.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Dec 2, 2024
1 parent 917408e commit a91bbf4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deployment/helm/balloons/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ spec:
mountPath: /var/run/nri-resource-policy
- name: nrisockets
mountPath: /var/run/nri
- name: pod-resources-socket
mountPath: /var/lib/kubelet/pod-resources
readOnly: true
{{- if .Values.podPriorityClassNodeCritical }}
priorityClassName: system-node-critical
{{- end }}
Expand All @@ -136,6 +139,10 @@ spec:
hostPath:
path: /var/run/nri
type: DirectoryOrCreate
- name: pod-resources-socket
hostPath:
path: /var/lib/kubelet/pod-resources
type: DirectoryOrCreate
{{- if .Values.nri.runtime.patchConfig }}
- name: containerd-config
hostPath:
Expand Down
7 changes: 7 additions & 0 deletions deployment/helm/template/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ spec:
mountPath: /var/run/nri-resource-policy
- name: nrisockets
mountPath: /var/run/nri
- name: pod-resources-socket
mountPath: /var/lib/kubelet/pod-resources
readOnly: true
{{- if .Values.podPriorityClassNodeCritical }}
priorityClassName: system-node-critical
{{- end }}
Expand All @@ -129,6 +132,10 @@ spec:
hostPath:
path: /var/run/nri
type: DirectoryOrCreate
- name: pod-resources-socket
hostPath:
path: /var/lib/kubelet/pod-resources
type: DirectoryOrCreate
{{- if .Values.nri.runtime.patchConfig }}
- name: containerd-config
hostPath:
Expand Down
7 changes: 7 additions & 0 deletions deployment/helm/topology-aware/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ spec:
mountPath: /var/run/nri-resource-policy
- name: nrisockets
mountPath: /var/run/nri
- name: pod-resources-socket
mountPath: /var/lib/kubelet/pod-resources
readOnly: true
{{- if .Values.podPriorityClassNodeCritical }}
priorityClassName: system-node-critical
{{- end }}
Expand All @@ -136,6 +139,10 @@ spec:
hostPath:
path: /var/run/nri
type: DirectoryOrCreate
- name: pod-resources-socket
hostPath:
path: /var/lib/kubelet/pod-resources
type: DirectoryOrCreate
{{- if .Values.nri.runtime.patchConfig }}
- name: containerd-config
hostPath:
Expand Down

0 comments on commit a91bbf4

Please sign in to comment.