This is an automated email from the ASF dual-hosted git repository.
chenyulin0719 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-release.git
The following commit(s) were added to refs/heads/master by this push:
new fb36e95 [YUNIKORN-3359] Support deadlock detection in Helm chart
(#237)
fb36e95 is described below
commit fb36e95067da53208a865388325e6fd6bd60a56e
Author: PoiBlackTea <[email protected]>
AuthorDate: Thu Aug 20 12:23:56 2026 +0000
[YUNIKORN-3359] Support deadlock detection in Helm chart (#237)
Closes: #237
Signed-off-by: Yu-Lin Chen <[email protected]>
---
helm-charts/yunikorn/README.md | 4 ++++
.../yunikorn/templates/admission-controller-deployment.yaml | 10 ++++++++++
helm-charts/yunikorn/templates/deployment.yaml | 10 ++++++++++
helm-charts/yunikorn/values.yaml | 7 +++++++
4 files changed, 31 insertions(+)
diff --git a/helm-charts/yunikorn/README.md b/helm-charts/yunikorn/README.md
index 8fe1f71..cdc9fc4 100644
--- a/helm-charts/yunikorn/README.md
+++ b/helm-charts/yunikorn/README.md
@@ -115,6 +115,10 @@ The following table lists the configurable parameters of
the YuniKorn chart and
| `web.goGC` | Web app GC threshold
(GOGC)
| `100` |
| `embedAdmissionController` | Flag for
enabling/disabling the admission controller
| `true` |
| `enableWebService` | Flag for
enabling/disabling web service
| `true` |
+| `deadlockDetection.enabled` | Flag for
enabling/disabling deadlock detection (do not use in production unless under
specific circumstances) | `false` |
+| `deadlockDetection.timeoutSeconds` | Deadlock detection timeout
in seconds |
`10` |
+| `deadlockDetection.exit` | Flag for exiting the
process upon deadlock detection
| `true` |
+| `deadlockDetection.disableLockOrder` | Flag for disabling lock
order detection |
`false` |
| `httpRoute.enabled` | Flag for
enabling/disabling HTTPRoute resource for Gateway API
| `false` |
| `httpRoute.annotations` | Annotations for the
HTTPRoute resource
| `{}` |
| `httpRoute.parentRefs` | Parent Gateway references
for the HTTPRoute |
`[]` |
diff --git
a/helm-charts/yunikorn/templates/admission-controller-deployment.yaml
b/helm-charts/yunikorn/templates/admission-controller-deployment.yaml
index c37c431..1ec4aa0 100644
--- a/helm-charts/yunikorn/templates/admission-controller-deployment.yaml
+++ b/helm-charts/yunikorn/templates/admission-controller-deployment.yaml
@@ -115,6 +115,16 @@ spec:
{{- end }}
- name: GOGC
value: "{{ .Values.admissionController.goGC }}"
+ {{- if .Values.deadlockDetection.enabled }}
+ - name: DEADLOCK_DETECTION_ENABLED
+ value: "{{ .Values.deadlockDetection.enabled }}"
+ - name: DEADLOCK_TIMEOUT_SECONDS
+ value: "{{ .Values.deadlockDetection.timeoutSeconds }}"
+ - name: DEADLOCK_EXIT
+ value: "{{ .Values.deadlockDetection.exit }}"
+ - name: DEADLOCK_DISABLE_LOCK_ORDER
+ value: "{{ .Values.deadlockDetection.disableLockOrder }}"
+ {{- end }}
ports:
- containerPort: 9089
name: webhook-api
diff --git a/helm-charts/yunikorn/templates/deployment.yaml
b/helm-charts/yunikorn/templates/deployment.yaml
index 792c22d..a9d78b2 100644
--- a/helm-charts/yunikorn/templates/deployment.yaml
+++ b/helm-charts/yunikorn/templates/deployment.yaml
@@ -102,6 +102,16 @@ spec:
{{- end }}
- name: GOGC
value: "{{ .Values.goGC }}"
+ {{- if .Values.deadlockDetection.enabled }}
+ - name: DEADLOCK_DETECTION_ENABLED
+ value: "{{ .Values.deadlockDetection.enabled }}"
+ - name: DEADLOCK_TIMEOUT_SECONDS
+ value: "{{ .Values.deadlockDetection.timeoutSeconds }}"
+ - name: DEADLOCK_EXIT
+ value: "{{ .Values.deadlockDetection.exit }}"
+ - name: DEADLOCK_DISABLE_LOCK_ORDER
+ value: "{{ .Values.deadlockDetection.disableLockOrder }}"
+ {{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.schedulerSecurityContext }}
diff --git a/helm-charts/yunikorn/values.yaml b/helm-charts/yunikorn/values.yaml
index f98be32..c4804c6 100644
--- a/helm-charts/yunikorn/values.yaml
+++ b/helm-charts/yunikorn/values.yaml
@@ -150,6 +150,13 @@ embedAdmissionController: true
# When this flag is false, the web service will not be deployed.
enableWebService: true
+# Deadlock detection configuration. Do not use in production unless you have
specific circumstances.
+deadlockDetection:
+ enabled: false
+ timeoutSeconds: 10
+ exit: true
+ disableLockOrder: false
+
podLabels: {}
podAnnotations: {}
podSecurityContext: {}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]