Skip to content

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

chore: update helm chart (#2577)

h3n4l56628eb9be70
diff --git a/helm-charts/bytebase/Chart.yaml b/helm-charts/bytebase/Chart.yaml
index 7fbe6bb9a4..233d9b3e2a 100644
--- a/helm-charts/bytebase/Chart.yaml
+++ b/helm-charts/bytebase/Chart.yaml
@@ -1,10 +1,12 @@
apiVersion: v2
name: bytebase
-description: Web-based, zero-config, dependency-free database schema change and version control tool for teams.
-type: application
version: 0.0.1
-appVersion: "0.9.0"
+description: Safe database schema change and version control for DevOps teams.
+type: application
home: https://bytebase.com/
-icon: https://bytebase.com/_nuxt/img/logo-icon.ca8220c.svg
sources:
- https://github.com/bytebase/bytebase
+icon: https://www.bytebase.com/_nuxt/img/logo-full.79b60e4.svg
+maintainers:
+ - name: Bytebase
diff --git a/helm-charts/bytebase/README.md b/helm-charts/bytebase/README.md
index 2a5aae44e5..70ed8ce28e 100644
--- a/helm-charts/bytebase/README.md
+++ b/helm-charts/bytebase/README.md
@@ -4,7 +4,7 @@ Install the web-based schema change and version control tool [Bytebase](https://
## Installing
-`helm -n <YOUR_NAMESPACE> install <RELEASE_NAME> helm-charts/bytebase`
+`helm -n <YOUR_NAMESPACE> --set bytebase.option.port={PORT} --set bytebase.option.host={HOST} --set bytebase.option.pg={PGDSN} --set bytebase.version={VERSION} install <RELEASE_NAME> helm-charts/bytebase`
## Uninstalling
diff --git a/helm-charts/bytebase/templates/service.yaml b/helm-charts/bytebase/templates/service.yaml
index 0b7e1d1ae9..23972031b8 100644
--- a/helm-charts/bytebase/templates/service.yaml
+++ b/helm-charts/bytebase/templates/service.yaml
@@ -1,14 +1,16 @@
+{{- $port := .Values.bytebase.option.port -}}
apiVersion: v1
kind: Service
metadata:
- name: bytebase
+ name: bytebase-entrypoint
namespace: {{ template "bytebase.namespace" . }}
labels:
- app: bytebase
+ app.kubernetes.io/managed-by: helm
spec:
- ports:
- - port: 80
- name: web
- clusterIP: None
+ type: LoadBalancer
selector:
- app: bytebase
\ No newline at end of file
+ app: bytebase
+ ports:
+ - protocol: TCP
+ port: {{ $port }}
+ targetPort: {{ $port }}
diff --git a/helm-charts/bytebase/templates/statefulset.yaml b/helm-charts/bytebase/templates/statefulset.yaml
index bed2504e89..4522bfe0c7 100644
--- a/helm-charts/bytebase/templates/statefulset.yaml
+++ b/helm-charts/bytebase/templates/statefulset.yaml
@@ -1,8 +1,16 @@
+{{- $host := .Values.bytebase.option.host -}}
+{{- $port := .Values.bytebase.option.port -}}
+{{- $pg := .Values.bytebase.option.pg -}}
+{{- $data := .Values.bytebase.option.data -}}
+{{- $version := .Values.bytebase.version -}}
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: bytebase
namespace: {{ template "bytebase.namespace" . }}
+ labels:
+ app.kubernetes.io/managed-by: helm
+ app: bytebase
spec:
selector:
matchLabels:
@@ -16,22 +24,43 @@ spec:
spec:
containers:
- name: bytebase
- image: "bytebase/bytebase:{{ .Chart.AppVersion }}"
+ image: "bytebase/bytebase:{{ $version }}"
+ args:
+ [
+ "--data",
+ {{ $data | quote }},
+ "--host",
+ {{ $host | quote }},
+ "--port",
+ {{ $port | quote }},
+ "--pg",
+ {{ $pg | quote}},
+ ]
ports:
- - containerPort: 80
+ - containerPort: {{ $port }}
name: web
volumeMounts:
- - mountPath: /var/opt/bytebase
- name: sqlite
+ - mountPath: {{ $data }}
+ name: bytebase
readinessProbe:
httpGet:
path: /api/actuator/info
port: web
initialDelaySeconds: 2
periodSeconds: 2
+ livenessProbe:
+ httpGet:
+ path: /healthz
+ port: {{ $port }}
+ initialDelaySeconds: 300
+ periodSeconds: 300
+ timeoutSeconds: 60
+ volumes:
+ - name: data
+ emptyDir: {}
volumeClaimTemplates:
- metadata:
- name: sqlite
+ name: bytebase
spec:
accessModes:
- ReadWriteOnce
diff --git a/helm-charts/bytebase/values.yaml b/helm-charts/bytebase/values.yaml
index cb70baf59f..c1cc2d8999 100644
--- a/helm-charts/bytebase/values.yaml
+++ b/helm-charts/bytebase/values.yaml
@@ -3,4 +3,10 @@
# Declare variables to be passed into your templates.
bytebase:
- storage: 256Mi
\ No newline at end of file
+ option:
+ host: http://localhost
+ port: 8080
+ pg: postgresql://user:secret@host:port/dbname
+ data: /var/opt/bytebase
+ version: 1.3.2
+ storage: 2Gi