diff --git a/docs/docs/guides/deploy/kubernetes.mdx b/docs/docs/guides/deploy/kubernetes.mdx index ef23a1241..1a6d7a7fc 100644 --- a/docs/docs/guides/deploy/kubernetes.mdx +++ b/docs/docs/guides/deploy/kubernetes.mdx @@ -12,29 +12,35 @@ For running an easily testable, insecure, non-HA ZITADEL instance, run the follo ## Helm -### Add the helm repository +### Add the helm repositories for CockroachDB and ZITADEL ```bash +helm repo add cockroachdb https://charts.cockroachdb.com/ helm repo add zitadel https://charts.zitadel.com ``` -### Install an insecure zitadel release that works with localhost +### Install an insecure cockroachdb and zitadel release that works with localhost ```bash -helm install --namespace zitadel --create-namespace my-zitadel zitadel/zitadel \ +# CockroachDB +helm install crdb cockroachdb/cockroachdb \ + --set fullnameOverride=crdb \ + --set single-node=true \ + --set statefulset.replicas=1 + +# ZITADEL +helm install my-zitadel zitadel/zitadel \ --set zitadel.masterkey="MasterkeyNeedsToHave32Characters" \ --set zitadel.configmapConfig.ExternalSecure=false \ --set zitadel.configmapConfig.TLS.Enabled=false \ --set zitadel.secretConfig.Database.cockroach.User.Password="a-zitadel-db-user-password" \ - --set replicaCount=1 \ - --set cockroachdb.single-node=true \ - --set cockroachdb.statefulset.replicas=1 + --set replicaCount=1 ``` ### Forward the ZITADEL service port to your local machine ```bash -kubectl -n zitadel port-forward svc/my-zitadel 8080:8080 +kubectl port-forward svc/my-zitadel 8080:8080 ```