From f716d8ae615d71d2e9ed4050f5dfa5e813ba283d Mon Sep 17 00:00:00 2001 From: chrisob Date: Mon, 26 Nov 2018 19:17:05 +0100 Subject: [PATCH] Add priorityClassName option to values (#9478) Signed-off-by: Chris O'Brien --- stable/kube-state-metrics/Chart.yaml | 2 +- stable/kube-state-metrics/README.md | 5 +++-- stable/kube-state-metrics/templates/deployment.yaml | 3 +++ stable/kube-state-metrics/values.yaml | 3 +++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/stable/kube-state-metrics/Chart.yaml b/stable/kube-state-metrics/Chart.yaml index 97080d0d61..e96ca3c8c6 100644 --- a/stable/kube-state-metrics/Chart.yaml +++ b/stable/kube-state-metrics/Chart.yaml @@ -5,7 +5,7 @@ keywords: - metric - monitoring - prometheus -version: 0.11.0 +version: 0.12.0 appVersion: 1.4.0 home: https://github.com/kubernetes/kube-state-metrics/ sources: diff --git a/stable/kube-state-metrics/README.md b/stable/kube-state-metrics/README.md index bf5028a3df..50f070760b 100644 --- a/stable/kube-state-metrics/README.md +++ b/stable/kube-state-metrics/README.md @@ -15,7 +15,7 @@ $ helm install stable/kube-state-metrics | Parameter | Description | Default | |---------------------------------------|---------------------------------------------------------|---------------------------------------------| | `image.repository` | The image repository to pull from | quay.io/coreos/kube-state-metrics | -| `image.tag` | The image tag to pull from | `v1.4.0` | +| `image.tag` | The image tag to pull from | `v1.4.0` | | `image.pullPolicy` | Image pull policy | IfNotPresent | | `service.port` | The port of the container | 8080 | | `prometheusScrape` | Whether or not enable prom scrape | true | @@ -24,8 +24,9 @@ $ helm install stable/kube-state-metrics | `securityContext.enabled` | Enable security context | `true` | | `securityContext.fsGroup` | Group ID for the container | `65534` | | `securityContext.runAsUser` | User ID for the container | `65534` | +| `priorityClassName` | Name of Priority Class to assign pods | `nil` | | `nodeSelector` | Node labels for pod assignment | {} | -| `tolerations` | Tolerations for pod assignment | [] | +| `tolerations` | Tolerations for pod assignment | [] | | `podAnnotations` | Annotations to be added to the pod | {} | | `resources` | kube-state-metrics resource requests and limits | {} | | `collectors.cronjobs` | Enable the cronjobs collector. | true | diff --git a/stable/kube-state-metrics/templates/deployment.yaml b/stable/kube-state-metrics/templates/deployment.yaml index 0942f7870b..4ade3f228c 100644 --- a/stable/kube-state-metrics/templates/deployment.yaml +++ b/stable/kube-state-metrics/templates/deployment.yaml @@ -25,6 +25,9 @@ spec: fsGroup: {{ .Values.securityContext.fsGroup }} runAsUser: {{ .Values.securityContext.runAsUser }} {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} containers: - name: {{ .Chart.Name }} args: diff --git a/stable/kube-state-metrics/values.yaml b/stable/kube-state-metrics/values.yaml index fbb376f7ff..bdc64fb6ea 100644 --- a/stable/kube-state-metrics/values.yaml +++ b/stable/kube-state-metrics/values.yaml @@ -32,6 +32,9 @@ tolerations: [] # Annotations to be added to the pod podAnnotations: {} +## Assign a PriorityClassName to pods if set +# priorityClassName: "" + # Available collectors for kube-state-metrics. By default all available # collectors are enabled. collectors: