mirror of
https://github.com/bitnami/charts.git
synced 2026-02-20 03:58:02 +08:00
[bitnami/kubewatch] Add priorityClassName support (#5720)
This is copied from the memcached chart.
Testing was done like so:
```
helm dependency build kubewatch
helm package kubewatch
helm upgrade -i kubewatch ~/sources/charts-1/bitnami/kubewatch-3.1.4.tgz -f ~/tmp/kubewatch.yaml -n monitoring
```
which contains this:
```
priorityClassName: 'system-cluster-critical'
```
See that the change took effect:
```
$ kubectl get pods -n monitoring | grep kubewatch
kubewatch-758c5b9745-4rwl8 1/1 Running 0 8m34s
```
See that the spec matches:
```
$ kubectl get pod kubewatch-758c5b9745-4rwl8 -n monitoring -o template --template={{.spec.priorityClassName}}'
system-cluster-critical
kubectl get pod kubewatch-758c5b9745-4rwl8 -n monitoring -o template --template={{.spec.priority}}
2000000000
```
This commit is contained in:
@@ -28,4 +28,4 @@ name: kubewatch
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-kubewatch
|
||||
- https://github.com/bitnami-labs/kubewatch
|
||||
version: 3.1.4
|
||||
version: 3.2.0
|
||||
|
||||
@@ -134,6 +134,7 @@ The following tables lists the configurable parameters of the Kubewatch chart an
|
||||
| `affinity` | Affinity for pod assignment | `{}` (evaluated as a template) |
|
||||
| `nodeSelector` | Node labels for pod assignment | `{}` (evaluated as a template) |
|
||||
| `tolerations` | Tolerations for pod assignment | `[]` (evaluated as a template) |
|
||||
| `priorityClassName` | Controller priorityClassName | `nil` |
|
||||
| `podLabels` | Extra labels for Kubewatch pods | `{}` |
|
||||
| `podAnnotations` | Annotations for Kubewatch pods | `{}` |
|
||||
| `extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for Kubewatch container(s) | `[]` |
|
||||
|
||||
@@ -43,6 +43,9 @@ spec:
|
||||
{{- if .Values.tolerations }}
|
||||
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.priorityClassName }}
|
||||
priorityClassName: {{ .Values.priorityClassName | quote }}
|
||||
{{- end }}
|
||||
restartPolicy: Always
|
||||
serviceAccountName: {{ include "kubewatch.serviceAccountName" . }}
|
||||
{{- if .Values.podSecurityContext.enabled }}
|
||||
|
||||
@@ -241,6 +241,11 @@ nodeSelector: {}
|
||||
##
|
||||
tolerations: []
|
||||
|
||||
## Pod priority
|
||||
## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
|
||||
##
|
||||
# priorityClassName: ""
|
||||
|
||||
## Pod extra labels
|
||||
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user