Skip to content

Commit

Permalink
feat(kuma-cp): add priorityClassName to Helm Chart
Browse files Browse the repository at this point in the history
Add the option to specify a priority class for kuma-cp

Signed-off-by: jmromanos <jorge.romanos@konghq.com>
  • Loading branch information
jmromanos committed Jan 23, 2025
1 parent 8c6aeca commit bf0a28b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ controlPlane:
# This is rendered as a template, so you can use variables to generate match labels.
topologySpreadConstraints:

# -- Priority Class Name of the Kuma Control Plane
priorityClassName: ""

# -- Failure policy of the mutating webhook implemented by the Kuma Injector component
injectorFailurePolicy: Fail

Expand Down
1 change: 1 addition & 0 deletions deployments/charts/kuma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ A Helm chart for the Kuma Control Plane
| controlPlane.podDisruptionBudget.maxUnavailable | int | `1` | The maximum number of unavailable pods allowed by the budget |
| controlPlane.affinity | object | `{"podAntiAffinity":{"preferredDuringSchedulingIgnoredDuringExecution":[{"podAffinityTerm":{"labelSelector":{"matchExpressions":[{"key":"app.kubernetes.io/name","operator":"In","values":["{{ include \"kuma.name\" . }}"]},{"key":"app.kubernetes.io/instance","operator":"In","values":["{{ .Release.Name }}"]},{"key":"app","operator":"In","values":["{{ include \"kuma.name\" . }}-control-plane"]}]},"topologyKey":"kubernetes.io/hostname"},"weight":100}]}}` | Affinity placement rule for the Kuma Control Plane pods. This is rendered as a template, so you can reference other helm variables or includes. |
| controlPlane.topologySpreadConstraints | string | `nil` | Topology spread constraints rule for the Kuma Control Plane pods. This is rendered as a template, so you can use variables to generate match labels. |
| controlPlane.priorityClassName | string | `""` | Priority Class Name of the Kuma Control Plane |
| controlPlane.injectorFailurePolicy | string | `"Fail"` | Failure policy of the mutating webhook implemented by the Kuma Injector component |
| controlPlane.service.apiServer.http.nodePort | int | `30681` | Port on which Http api server Service is exposed on Node for service of type NodePort |
| controlPlane.service.apiServer.https.nodePort | int | `30682` | Port on which Https api server Service is exposed on Node for service of type NodePort |
Expand Down
3 changes: 3 additions & 0 deletions deployments/charts/kuma/templates/cp-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ spec:
{{- with .Values.controlPlane.topologySpreadConstraints }}
topologySpreadConstraints: {{ tpl (toYaml . | nindent 8) $ }}
{{- end }}
{{- with .Values.controlPlane.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
securityContext:
{{- toYaml .Values.controlPlane.podSecurityContext | trim | nindent 8 }}
serviceAccountName: {{ include "kuma.name" . }}-control-plane
Expand Down
3 changes: 3 additions & 0 deletions deployments/charts/kuma/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ controlPlane:
# This is rendered as a template, so you can use variables to generate match labels.
topologySpreadConstraints:

# -- Priority Class Name of the Kuma Control Plane
priorityClassName: ""

# -- Failure policy of the mutating webhook implemented by the Kuma Injector component
injectorFailurePolicy: Fail

Expand Down
3 changes: 3 additions & 0 deletions docs/generated/raw/helm-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ controlPlane:
# This is rendered as a template, so you can use variables to generate match labels.
topologySpreadConstraints:

# -- Priority Class Name of the Kuma Control Plane
priorityClassName: ""

# -- Failure policy of the mutating webhook implemented by the Kuma Injector component
injectorFailurePolicy: Fail

Expand Down

0 comments on commit bf0a28b

Please sign in to comment.