From 2a7038bbdb9a42eda8a64f2f66e38dba8ef3170b Mon Sep 17 00:00:00 2001 From: chrisob Date: Thu, 22 Nov 2018 18:01:10 +0100 Subject: [PATCH] Add priorityClassName option to values (#9483) Signed-off-by: Chris O'Brien --- stable/prometheus-node-exporter/Chart.yaml | 2 +- stable/prometheus-node-exporter/README.md | 3 ++- stable/prometheus-node-exporter/templates/daemonset.yaml | 3 +++ stable/prometheus-node-exporter/values.yaml | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/stable/prometheus-node-exporter/Chart.yaml b/stable/prometheus-node-exporter/Chart.yaml index e27adde159..ff2205cf15 100644 --- a/stable/prometheus-node-exporter/Chart.yaml +++ b/stable/prometheus-node-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.16.0" description: A Helm chart for prometheus node-exporter name: prometheus-node-exporter -version: 0.5.1 +version: 0.6.0 home: https://github.com/prometheus/node_exporter/ sources: - https://github.com/prometheus/node_exporter/ diff --git a/stable/prometheus-node-exporter/README.md b/stable/prometheus-node-exporter/README.md index e4abb1ad1b..12659ac725 100644 --- a/stable/prometheus-node-exporter/README.md +++ b/stable/prometheus-node-exporter/README.md @@ -50,11 +50,12 @@ The following table lists the configurable parameters of the Node Exporter chart | `service.type` | Service type | `ClusterIP` | | | `service.port` | The service port | `9100` | | | `service.targetPort` | The target port of the container | `9100` | | -| `service.annotations` | Kubernetes service annotations | `{prometheus.io/scrape: "true"}` | +| `service.annotations` | Kubernetes service annotations | `{prometheus.io/scrape: "true"}` | | | `serviceAccount.create` | Specifies whether a service account should be created. | `true` | | | `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the fullname template | | | | `serviceAccount.imagePullSecrets` | Specify image pull secrets | `[]` | | | `tolerations` | List of node taints to tolerate | `- effect: NoSchedule operator: Exists` | | +| `priorityClassName` | Name of Priority Class to assign pods | `nil` | | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/stable/prometheus-node-exporter/templates/daemonset.yaml b/stable/prometheus-node-exporter/templates/daemonset.yaml index e60a8c1fcf..01685dca42 100644 --- a/stable/prometheus-node-exporter/templates/daemonset.yaml +++ b/stable/prometheus-node-exporter/templates/daemonset.yaml @@ -22,6 +22,9 @@ spec: securityContext: runAsNonRoot: true runAsUser: 65534 +{{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} +{{- end }} containers: - name: node-exporter image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/stable/prometheus-node-exporter/values.yaml b/stable/prometheus-node-exporter/values.yaml index 6fac1b1bcd..38a705978e 100644 --- a/stable/prometheus-node-exporter/values.yaml +++ b/stable/prometheus-node-exporter/values.yaml @@ -49,6 +49,9 @@ tolerations: - effect: NoSchedule operator: Exists +## Assign a PriorityClassName to pods if set +# priorityClassName: "" + ## Additional container arguments ## extraArgs: {}