Skip to content

Commit b646fd7

Browse files
committed
Add priorityClassName for operator helm chart
Signed-off-by: win5923 <[email protected]>
1 parent 348ef38 commit b646fd7

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

helm-chart/kuberay-operator/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,13 @@ spec:
150150
| image.repository | string | `"quay.io/kuberay/operator"` | Image repository. |
151151
| image.tag | string | `"nightly"` | Image tag. |
152152
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. |
153+
| imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry |
154+
| nodeSelector | object | `{}` | Restrict to run on particular nodes. |
155+
| priorityClassName | string | `""` | Pod priorityClassName Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/ |
153156
| labels | object | `{}` | Extra labels. |
154157
| annotations | object | `{}` | Extra annotations. |
158+
| affinity | object | `{}` | |
159+
| tolerations | list | `[]` | Pod tolerations |
155160
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created. |
156161
| serviceAccount.name | string | `"kuberay-operator"` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. |
157162
| logging.stdoutEncoder | string | `"json"` | Log encoder to use for stdout (one of `json` or `console`). |

helm-chart/kuberay-operator/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ spec:
4949
securityContext:
5050
{{- toYaml . | nindent 8 }}
5151
{{- end }}
52+
{{- with .Values.priorityClassName }}
53+
priorityClassName: {{ . }}
54+
{{- end }}
5255
containers:
5356
- name: {{ .Chart.Name }}
5457
{{- with .Values.securityContext }}

helm-chart/kuberay-operator/values.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,28 @@ image:
2121
# -- Image pull policy.
2222
pullPolicy: IfNotPresent
2323

24+
# -- Secrets with credentials to pull images from a private registry
25+
imagePullSecrets: []
26+
27+
# -- Restrict to run on particular nodes.
28+
nodeSelector: {}
29+
30+
# -- Pod priorityClassName
31+
# Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
32+
priorityClassName: ""
33+
2434
# -- Extra labels.
2535
labels: {}
2636

2737
# -- Extra annotations.
2838
annotations: {}
2939

40+
## -- Pod affinity
41+
affinity: {}
42+
43+
# -- Pod tolerations
44+
tolerations: []
45+
3046
serviceAccount:
3147
# -- Specifies whether a service account should be created.
3248
create: true

0 commit comments

Comments
 (0)