Skip to main content

CRD Mode on an existing Kubernetes cluster

What I need

I'd like to see an automatically operated ZITADEL instance running on my own Kubernetes cluster

First, download the template configuration files database.yml and zitadel.yml. Then adjust the values in database.yml and zitadel.yml to match your environment. Especially the values for the domain, cluster DNS, storage class, email and Twilio are important.

# Download the zitadelctl binarycurl -s | grep "browser_download_url.*zitadelctl-$(uname | awk '{print tolower($0)}')-amd64" | cut -d '"' -f 4 | sudo wget -i - -O /usr/local/bin/zitadelctl && sudo chmod +x /usr/local/bin/zitadelctl && sudo chown $(id -u):$(id -g) /usr/local/bin/zitadelctlsudo chmod +x /usr/local/bin/zitadelctlsudo chown $(id -u):$(id -g) /usr/local/bin/zitadelctl
# Deploy the operators to the current-context of your ~/.kube/config filezitadelctl takeoff
# As soon as the configuration is applied, the operators start their workkubectl apply --filename ./database.yml,./zitadel.yml
# Write the encryption keyswget && zitadelctl writesecret zitadel.keys.existing --file ./example_keys
# Write the Twiilio sender ID and auth token so that ZITADEL is able to send your users SMS.TWILIO_SID=<My Twilio Sender ID>TWILIO_AUTH_TOKEN=<My Twilio auth token>zitadelctl writesecret zitadel.twiliosid.existing --value $SIDzitadelctl writesecret zitadel.twilioauthtoken.existing --value $TWILIO_AUTH_TOKEN
# Write your email relays app key so that ZITADEL is able to verify your users email addressesEMAIL_APP_KEY=<My email relays app key>zitadelctl writesecret zitadel.emailappkey.existing --value $EMAIL_APP_KEY
# Enjoy watching the zitadel pods becoming readywatch "kubectl --namespace caos-zitadel get pods"

ZITADEL needs gRPC-Web for client-server communication, which the widely spread NGINX Ingress Controller doesn't support out-of-the-box but Ambassador does. If you don't have an Ambassador running, we recommend you run it with our operator BOOM.

Download the template configuration file boom.yml. Then adjust the values in boom.yml to match your environment.

# Download the orbctl binarycurl -s | grep "browser_download_url.*orbctl.$(uname).$(uname -m)" | cut -d '"' -f 4 | sudo wget -i - -O /usr/local/bin/orbctlsudo chmod +x /usr/local/bin/orbctlsudo chown $(id -u):$(id -g) /usr/local/bin/orbctl
# Deploy the operator to the current-context of your ~/.kube/config fileorbctl takeoff
# As soon as the configuration is applied, BOOM starts its workkubectl apply --filename ./boom.yml
# Enjoy watching the ambassador pod becoming readywatch "kubectl --namespace caos-system get pods"

Congratulations, you can accept traffic at four new ZITADEL subdomains now.