mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-21 06:54:25 +00:00
* docs: improve template handling for search results * chore: remove draft again * chore: change configure
74 lines
2.0 KiB
Plaintext
74 lines
2.0 KiB
Plaintext
## New Knative environment
|
|
### Download and run Knative quickstart
|
|
|
|
Follow the [Knative quickstart guide](https://knative.dev/docs/getting-started/quickstart-install/) to get a local kind/minikube environment with Knative capabilities.
|
|
|
|
It is basically 4 commands on Mac:
|
|
|
|
```bash
|
|
# Install knative
|
|
brew install knative/client/kn
|
|
|
|
# Install knative quickstart sandbox
|
|
brew install knative-sandbox/kn-plugins/quickstart
|
|
|
|
# Install kind
|
|
brew install kind
|
|
|
|
# Install quickstart cluster
|
|
kn quickstart kind
|
|
```
|
|
That will get you a ready to go knative/kubernetes environment.
|
|
|
|
|
|
## Database
|
|
start a single-node cockroachdb as statefulset
|
|
|
|
```bash
|
|
kubectl apply -f https://raw.githubusercontent.com/zitadel/zitadel/v2-alpha/deploy/knative/cockroachdb-statefulset-single-node.yaml
|
|
```
|
|
|
|
|
|
## Start ZITADEL with Knative
|
|
|
|
Either use the kn binary...
|
|
|
|
```bash
|
|
kn service create zitadel \
|
|
--image ghcr.io/zitadel/zitadel:v2.0.0-v2-alpha.39-amd64 \
|
|
--port 8080 \
|
|
--env ZITADEL_DATABASE_HOST=cockroachdb \
|
|
--env ZITADEL_EXTERNALSECURE=false \
|
|
--env ZITADEL_EXTERNALPORT=80 \
|
|
--env ZITADEL_TLS_ENABLED=false \
|
|
--env ZITADEL_EXTERNALDOMAIN=zitadel.default.127.0.0.1.sslip.io \
|
|
--env ZITADEL_S3DEFAULTINSTANCE_CUSTOMDOMAIN=zitadel.default.127.0.0.1.sslip.io \
|
|
--arg "start-from-init" --arg "--masterkey" --arg "MasterkeyNeedsToHave32Characters"
|
|
```
|
|
|
|
... or use the knative service yaml
|
|
|
|
```bash
|
|
kubectl apply -f https://raw.githubusercontent.com/zitadel/zitadel/v2-alpha/deploy/knative/zitadel-knative-service.yaml
|
|
```
|
|
|
|
## Get started with ZITADEL
|
|
|
|
Get ZITADEL URL
|
|
|
|
```bash
|
|
kn services list
|
|
|
|
NAME URL LATEST AGE CONDITIONS READY REASON
|
|
zitadel http://zitadel.default.127.0.0.1.sslip.io zitadel-00001 10m 3 OK / 3 True
|
|
```
|
|
|
|
Add the console path to the URL and open in browser
|
|
http://zitadel.default.127.0.0.1.sslip.io/ui/console
|
|
|
|
If you didn't configure something else, this is the default IAM admin users login:
|
|
|
|
* username: zitadel-admin@<span></span>zitadel.zitadel.default.127.0.0.1.sslip.io
|
|
* password: Password1!
|
|
|