Skip to content

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

chore: Define bytebase resources in helm-charts (#11094)

liyanga7bac58164bc
diff --git a/helm-charts/bytebase/templates/statefulset.yaml b/helm-charts/bytebase/templates/statefulset.yaml
index f829e4aa79..4cf5c6cb56 100644
--- a/helm-charts/bytebase/templates/statefulset.yaml
+++ b/helm-charts/bytebase/templates/statefulset.yaml
@@ -25,6 +25,8 @@
{{- $persistenceExistingClaim := .Values.bytebase.persistence.existingClaim -}}
{{- $persistenceStorage := .Values.bytebase.persistence.storage -}}
{{- $persistenceStorageClass := .Values.bytebase.persistence.storageClass }}
+# bytbease.resources
+{{- $resources := .Values.bytebase.resources -}}
---
apiVersion: apps/v1
kind: StatefulSet
@@ -167,6 +169,9 @@ spec:
ports:
- containerPort: {{ $port }}
name: web
+ {{- if $resources }}
+ resources: {{- toYaml $resources | nindent 12 }}
+ {{- end }}
livenessProbe:
httpGet:
path: /healthz
diff --git a/helm-charts/bytebase/values.yaml b/helm-charts/bytebase/values.yaml
index 112e3bf5e4..9bc910cc86 100644
--- a/helm-charts/bytebase/values.yaml
+++ b/helm-charts/bytebase/values.yaml
@@ -33,6 +33,13 @@ bytebase:
existingClaim: ""
storage: 2Gi
storageClass: ""
+ resources: {}
+# limits:
+# cpu: 2000m
+# memory: 4Gi
+# requests:
+# cpu: 1000m
+# memory: 1Gi
# Additional Bytebase secret mounts
# Defines additional mounts with secret. Secret must be manually created in the namespace.