Skip to content

Commit

Permalink
feat(helm-charts): Introduced priorityClassName system-node-critical …
Browse files Browse the repository at this point in the history
…as an optional boolean value

Signed-off-by: Florian Fürstenberg <[email protected]>
  • Loading branch information
ffuerste committed Jan 6, 2024
1 parent 398fdf5 commit e678245
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 5 deletions.
1 change: 1 addition & 0 deletions deployment/helm/balloons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ customize with their own values, along with the default values.
| `hostPort` | 8891 | metrics port to expose on the host |
| `config` | see [helm chart values](tree:/deployment/helm/balloons/values.yaml) for the default configuration | plugin configuration data |
| `nri.patchRuntimeConfig` | false | enable NRI in containerd or CRI-O |
| `nri.setPodPriorityClassNodeCritical` | false | enable [marking Pod as node critical](https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical) |
| `initImage.name` | [ghcr.io/containers/nri-plugins/config-manager](https://ghcr.io/containers/nri-plugins/config-manager) | init container image name |
| `initImage.tag` | unstable | init container image tag |
| `initImage.pullPolicy` | Always | init container image pull policy |
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/balloons/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ spec:
mountPath: /var/run/nri-resource-policy
- name: nrisockets
mountPath: /var/run/nri
{{- if .Values.nri.setPodPriorityClassNodeCritical }}
priorityClassName: system-node-critical
{{- end }}
volumes:
- name: resource-policydata
hostPath:
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/balloons/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ resources:

nri:
patchRuntimeConfig: false
# NRI plugins should be considered as part of the container runtime.
# Therefore, adding the system-node-critical priority class to the DaemonSet,
# could mitigate potential risk in a running system under load.
setPodPriorityClassNodeCritical: false

initContainerImage:
name: ghcr.io/containers/nri-plugins/nri-config-manager
Expand Down
3 changes: 2 additions & 1 deletion deployment/helm/memory-qos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ customize with their own values, along with the default values.
| `image.tag` | unstable | container image tag |
| `image.pullPolicy` | Always | image pull policy |
| `resources.cpu` | 10m | cpu resources for the Pod |
| `resources.memory` | 100Mi | memory qouta for the |
| `resources.memory` | 100Mi | memory qouta for the Pod |
| `nri.patchRuntimeConfig` | false | enable NRI in containerd or CRI-O |
| `nri.setPodPriorityClassNodeCritical` | false | enable [marking Pod as node critical](https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical) |
| `initImage.name` | [ghcr.io/containers/nri-plugins/config-manager](https://ghcr.io/containers/nri-plugins/config-manager) | init container image name |
| `initImage.tag` | unstable | init container image tag |
| `initImage.pullPolicy` | Always | init container image pull policy |
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/memory-qos/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ spec:
mountPath: /etc/nri/memory-qos
- name: nrisockets
mountPath: /var/run/nri
{{- if .Values.nri.setPodPriorityClassNodeCritical }}
priorityClassName: system-node-critical
{{- end }}
volumes:
- name: memory-qos-config-vol
configMap:
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/memory-qos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ resources:

nri:
patchRuntimeConfig: false
# NRI plugins should be considered as part of the container runtime.
# Therefore, adding the system-node-critical priority class to the DaemonSet,
# could mitigate potential risk in a running system under load.
setPodPriorityClassNodeCritical: false

initContainerImage:
name: ghcr.io/containers/nri-plugins/nri-config-manager
Expand Down
3 changes: 2 additions & 1 deletion deployment/helm/memtierd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ customize with their own values, along with the default values.
| `image.tag` | unstable | container image tag |
| `image.pullPolicy` | Always | image pull policy |
| `resources.cpu` | 250m | cpu resources for the Pod |
| `resources.memory` | 100Mi | memory qouta for the |
| `resources.memory` | 100Mi | memory qouta for the Pod |
| `outputDir` | empty string | host directory for memtierd.output files |
| `nri.patchRuntimeConfig` | false | enable NRI in containerd or CRI-O |
| `nri.setPodPriorityClassNodeCritical` | false | enable [marking Pod as node critical](https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical) |
| `initImage.name` | [ghcr.io/containers/nri-plugins/config-manager](https://ghcr.io/containers/nri-plugins/config-manager) | init container image name |
| `initImage.tag` | unstable | init container image tag |
| `initImage.pullPolicy` | Always | init container image pull policy |
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/memtierd/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ spec:
- name: run-dir-vol
mountPath: /run-dir
{{- end }}
{{- if .Values.nri.setPodPriorityClassNodeCritical }}
priorityClassName: system-node-critical
{{- end }}
volumes:
- name: memtierd-config-vol
configMap:
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/memtierd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ outputDir: ""

nri:
patchRuntimeConfig: false
# NRI plugins should be considered as part of the container runtime.
# Therefore, adding the system-node-critical priority class to the DaemonSet,
# could mitigate potential risk in a running system under load.
setPodPriorityClassNodeCritical: false

initContainerImage:
name: ghcr.io/containers/nri-plugins/nri-config-manager
Expand Down
6 changes: 4 additions & 2 deletions deployment/helm/sgx-epc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ customize with their own values, along with the default values.
| `image.tag` | unstable | container image tag |
| `image.pullPolicy` | Always | image pull policy |
| `resources.cpu` | 25m | cpu resources for the Pod |
| `resources.memory` | 100Mi | memory qouta for the |
| `resources.memory` | 100Mi | memory qouta for the Pod |
| `nri.patchRuntimeConfig` | false | enable NRI in containerd or CRI-O |
| `initImage.name` | [ghcr.io/containers/nri-plugins/config-manager](https://ghcr.io/containers/nri-plugins/config-manager) | init container image name |
| `nri.setPodPriorityClassNodeCritical` | false | enable [marking Pod as node critical](https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical) |
| `initImage.name` | [ghcr.io/containers/nri-plugins/config-manager](https://ghcr.io/containers/nri-plugins/config-manager) |
| init container image name |
| `initImage.tag` | unstable | init container image tag |
| `initImage.pullPolicy` | Always | init container image pull policy |
| `tolerations` | [] | specify taint toleration key, operator and effect |
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/sgx-epc/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ spec:
volumeMounts:
- name: nrisockets
mountPath: /var/run/nri
{{- if .Values.nri.setPodPriorityClassNodeCritical }}
priorityClassName: system-node-critical
{{- end }}
volumes:
- name: nrisockets
hostPath:
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/sgx-epc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ resources:

nri:
patchRuntimeConfig: false
# NRI plugins should be considered as part of the container runtime.
# Therefore, adding the system-node-critical priority class to the DaemonSet,
# could mitigate potential risk in a running system under load.
setPodPriorityClassNodeCritical: false

initContainerImage:
name: ghcr.io/containers/nri-plugins/nri-config-manager
Expand Down
1 change: 1 addition & 0 deletions deployment/helm/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ customize with their own values, along with the default values.
| `hostPort` | 8891 | metrics port to expose on the host |
| `config` | see [helm chart values](tree:/deployment/helm/template/values.yaml) for the default configuration | plugin configuration data |
| `nri.patchRuntimeConfig` | false | enable NRI in containerd or CRI-O |
| `nri.setPodPriorityClassNodeCritical` | false | enable [marking Pod as node critical](https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical) |
| `initImage.name` | [ghcr.io/containers/nri-plugins/config-manager](https://ghcr.io/containers/nri-plugins/config-manager) | init container image name |
| `initImage.tag` | unstable | init container image tag |
| `initImage.pullPolicy` | Always | init container image pull policy |
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/template/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ spec:
mountPath: /var/run/nri-resource-policy
- name: nrisockets
mountPath: /var/run/nri
{{- if .Values.nri.setPodPriorityClassNodeCritical }}
priorityClassName: system-node-critical
{{- end }}
volumes:
- name: resource-policydata
hostPath:
Expand Down
4 changes: 4 additions & 0 deletions deployment/helm/template/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ resources:

nri:
patchRuntimeConfig: false
# NRI plugins should be considered as part of the container runtime.
# Therefore, adding the system-node-critical priority class to the DaemonSet,
# could mitigate potential risk in a running system under load.
setPodPriorityClassNodeCritical: false

initContainerImage:
name: ghcr.io/containers/nri-plugins/nri-config-manager
Expand Down
1 change: 1 addition & 0 deletions deployment/helm/topology-aware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ customize with their own values, along with the default values.
| `hostPort` | 8891 | metrics port to expose on the host |
| `config` | see [helm chart values](tree:/deployment/helm/topology-aware/values.yaml) for the default configuration | plugin configuration data |
| `nri.patchRuntimeConfig` | false | enable NRI in containerd or CRI-O |
| `nri.setPodPriorityClassNodeCritical` | false | enable [marking Pod as node critical](https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical) |
| `initImage.name` | [ghcr.io/containers/nri-plugins/config-manager](https://ghcr.io/containers/nri-plugins/config-manager) | init container image name |
| `initImage.tag` | unstable | init container image tag |
| `initImage.pullPolicy` | Always | init container image pull policy |
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/topology-aware/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ spec:
mountPath: /var/run/nri-resource-policy
- name: nrisockets
mountPath: /var/run/nri
{{- if .Values.nri.setPodPriorityClassNodeCritical }}
priorityClassName: system-node-critical
{{- end }}
volumes:
- name: resource-policydata
hostPath:
Expand Down
5 changes: 4 additions & 1 deletion deployment/helm/topology-aware/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ resources:

nri:
patchRuntimeConfig: false

# NRI plugins should be considered as part of the container runtime.
# Therefore, adding the system-node-critical priority class to the DaemonSet,
# could mitigate potential risk in a running system under load.
setPodPriorityClassNodeCritical: false

initContainerImage:
name: ghcr.io/containers/nri-plugins/nri-config-manager
Expand Down

0 comments on commit e678245

Please sign in to comment.