Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Add nodeAffinity (#14444)
Duc Tran55eca12cebc0
diff --git a/helm-charts/bytebase/templates/statefulset.yaml b/helm-charts/bytebase/templates/statefulset.yamlindex 4cf5c6cb56..540ddc84e2 100644--- a/helm-charts/bytebase/templates/statefulset.yaml+++ b/helm-charts/bytebase/templates/statefulset.yaml@@ -217,6 +217,10 @@ spec:{{- if gt (len $extraVolumes) 0 }}{{- toYaml $extraVolumes | nindent 8 }}{{- end }}+ affinity:+ {{- if .Values.bytebase.affinity }}+ {{ toYaml .Values.bytebase.affinity | nindent 8 }}+ {{- end }}---{{- if and $persistenceEnable (not $persistenceExistingClaim) }}apiVersion: v1diff --git a/helm-charts/bytebase/values.yaml b/helm-charts/bytebase/values.yamlindex 1164b532a3..b25b4c1bce 100644--- a/helm-charts/bytebase/values.yaml+++ b/helm-charts/bytebase/values.yaml@@ -61,3 +61,16 @@ bytebase:# nodePublishSecretRef:# # Only required when using service principal mode, usually is the secret store the service principal's credentials# name: secrets-store-creds++ # Affinity for pod assignment (evaluated as template)+ # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity+ #+ affinity: {}+ # nodeAffinity:+ # requiredDuringSchedulingIgnoredDuringExecution:+ # nodeSelectorTerms:+ # - matchExpressions:+ # - key: key+ # operator: In+ # values:+ # - value