Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat(helm): Add Tolerations (#14503)

Duc Tranb9ba40b7b418
diff --git a/helm-charts/bytebase/templates/statefulset.yaml b/helm-charts/bytebase/templates/statefulset.yaml
index 540ddc84e2..71e61a9da6 100644
--- a/helm-charts/bytebase/templates/statefulset.yaml
+++ b/helm-charts/bytebase/templates/statefulset.yaml
@@ -221,6 +221,10 @@ spec:
{{- if .Values.bytebase.affinity }}
{{ toYaml .Values.bytebase.affinity | nindent 8 }}
{{- end }}
+ tolerations:
+ {{- if .Values.bytebase.tolerations }}
+ {{ toYaml .Values.bytebase.tolerations | nindent 8 }}
+ {{- end }}
---
{{- if and $persistenceEnable (not $persistenceExistingClaim) }}
apiVersion: v1
diff --git a/helm-charts/bytebase/values.yaml b/helm-charts/bytebase/values.yaml
index 895974a4b6..5696fb0945 100644
--- a/helm-charts/bytebase/values.yaml
+++ b/helm-charts/bytebase/values.yaml
@@ -74,3 +74,8 @@ bytebase:
# operator: In
# values:
# - value
+
+ # ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
+ # An empty key with operator Exists matches all keys, values and effects which means this will tolerate everything.
+ tolerations:
+ - operator: "Exists"