Dong Ma | e11498d | 2025-02-12 03:36:18 +0000 | [diff] [blame^] | 1 | From 9a7ec6f874f55d5c19068c54a1a2e0dc7f5f8235 Mon Sep 17 00:00:00 2001 |
| 2 | From: Dong Ma <dong.ma@vexxhost.com> |
| 3 | Date: Wed, 12 Feb 2025 03:36:18 +0000 |
| 4 | Subject: [PATCH] Enable {priority,runtime}ClassName for Placement |
| 5 | |
| 6 | --- |
| 7 | placement/templates/deployment.yaml | 6 ++++++ |
| 8 | placement/values.yaml | 6 ++++++ |
| 9 | 2 files changed, 12 insertions(+) |
| 10 | |
| 11 | diff --git a/placement/templates/deployment.yaml b/placement/templates/deployment.yaml |
| 12 | index 3082216d..da02d33b 100644 |
| 13 | --- a/placement/templates/deployment.yaml |
| 14 | +++ b/placement/templates/deployment.yaml |
| 15 | @@ -47,6 +47,12 @@ spec: |
| 16 | configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} |
| 17 | {{ dict "envAll" $envAll "podName" "placement-api" "containerNames" (list "placement-api" "init") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} |
| 18 | spec: |
| 19 | +{{ with .Values.pod.priorityClassName.placement }} |
| 20 | + priorityClassName: {{ . }} |
| 21 | +{{ end }} |
| 22 | +{{ with .Values.pod.runtimeClassName.placement }} |
| 23 | + runtimeClassName: {{ . }} |
| 24 | +{{ end }} |
| 25 | serviceAccountName: {{ $serviceAccountName }} |
| 26 | {{ dict "envAll" $envAll "application" "placement" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} |
| 27 | affinity: |
| 28 | diff --git a/placement/values.yaml b/placement/values.yaml |
| 29 | index 0f27a247..20e46564 100644 |
| 30 | --- a/placement/values.yaml |
| 31 | +++ b/placement/values.yaml |
| 32 | @@ -278,6 +278,12 @@ endpoints: |
| 33 | service: 8778 |
| 34 | |
| 35 | pod: |
| 36 | + priorityClassName: |
| 37 | + placement: null |
| 38 | + db_sync: null |
| 39 | + runtimeClassName: |
| 40 | + placement: null |
| 41 | + db_sync: null |
| 42 | security_context: |
| 43 | placement: |
| 44 | pod: |
| 45 | -- |
| 46 | 2.34.1 |
| 47 | |