mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 07:28:57 +00:00
docs: update db config in example configs (#4077)
* docs: update db config in example configs * fix version * more cockroach
This commit is contained in:
parent
25baeb05ff
commit
459779ae3a
@ -7,7 +7,7 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
client.knative.dev/user-image: ghcr.io/zitadel/zitadel:v2.0.0-v2-alpha.43-amd64
|
client.knative.dev/user-image: ghcr.io/zitadel/zitadel:v2.0.0-amd64
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
spec:
|
spec:
|
||||||
containerConcurrency: 0
|
containerConcurrency: 0
|
||||||
@ -18,7 +18,7 @@ spec:
|
|||||||
- --masterkey
|
- --masterkey
|
||||||
- MasterkeyNeedsToHave32Characters
|
- MasterkeyNeedsToHave32Characters
|
||||||
env:
|
env:
|
||||||
- name: ZITADEL_DATABASE_HOST
|
- name: ZITADEL_DATABASE_COCKROACH_HOST
|
||||||
value: cockroachdb
|
value: cockroachdb
|
||||||
- name: ZITADEL_EXTERNALSECURE
|
- name: ZITADEL_EXTERNALSECURE
|
||||||
value: "false"
|
value: "false"
|
||||||
@ -28,9 +28,7 @@ spec:
|
|||||||
value: 80
|
value: 80
|
||||||
- name: ZITADEL_EXTERNALDOMAIN
|
- name: ZITADEL_EXTERNALDOMAIN
|
||||||
value: zitadel.default.127.0.0.1.sslip.io
|
value: zitadel.default.127.0.0.1.sslip.io
|
||||||
- name: ZITADEL_S3DEFAULTINSTANCE_CUSTOMDOMAIN
|
image: ghcr.io/zitadel/zitadel:v2.0.0-amd64
|
||||||
value: zitadel.default.127.0.0.1.sslip.io
|
|
||||||
image: ghcr.io/zitadel/zitadel:v2.0.0-v2-alpha.43-amd64
|
|
||||||
name: user-container
|
name: user-container
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
@ -8,7 +8,7 @@ services:
|
|||||||
image: 'ghcr.io/zitadel/zitadel:v2.0.0-amd64'
|
image: 'ghcr.io/zitadel/zitadel:v2.0.0-amd64'
|
||||||
command: 'start-from-init --masterkey "MasterkeyNeedsToHave32Characters" --tlsMode disabled'
|
command: 'start-from-init --masterkey "MasterkeyNeedsToHave32Characters" --tlsMode disabled'
|
||||||
environment:
|
environment:
|
||||||
- 'ZITADEL_DATABASE_HOST=db'
|
- 'ZITADEL_DATABASE_COCKROACH_HOST=db'
|
||||||
- 'ZITADEL_EXTERNALSECURE=false'
|
- 'ZITADEL_EXTERNALSECURE=false'
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
|
@ -26,7 +26,7 @@ kubectl apply -f https://raw.githubusercontent.com/zitadel/zitadel/main/deploy/k
|
|||||||
kn service create zitadel \
|
kn service create zitadel \
|
||||||
--image ghcr.io/zitadel/zitadel:v2.0.0-amd64 \
|
--image ghcr.io/zitadel/zitadel:v2.0.0-amd64 \
|
||||||
--port 8080 \
|
--port 8080 \
|
||||||
--env ZITADEL_DATABASE_HOST=cockroachdb \
|
--env ZITADEL_DATABASE_COCKROACH_HOST=cockroachdb \
|
||||||
--env ZITADEL_EXTERNALSECURE=false \
|
--env ZITADEL_EXTERNALSECURE=false \
|
||||||
--env ZITADEL_EXTERNALPORT=80 \
|
--env ZITADEL_EXTERNALPORT=80 \
|
||||||
--env ZITADEL_TLS_ENABLED=false \
|
--env ZITADEL_TLS_ENABLED=false \
|
||||||
|
@ -25,7 +25,7 @@ helm install --namespace zitadel --create-namespace my-zitadel zitadel/zitadel \
|
|||||||
--set zitadel.masterkey="MasterkeyNeedsToHave32Characters" \
|
--set zitadel.masterkey="MasterkeyNeedsToHave32Characters" \
|
||||||
--set zitadel.configmapConfig.ExternalDomain="localhost" \
|
--set zitadel.configmapConfig.ExternalDomain="localhost" \
|
||||||
--set zitadel.configmapConfig.ExternalSecure=false \
|
--set zitadel.configmapConfig.ExternalSecure=false \
|
||||||
--set zitadel.secretConfig.Database.User.Password="a-zitadel-db-user-password"
|
--set zitadel.secretConfig.Database.cockroach.User.Password="a-zitadel-db-user-password" \
|
||||||
--set replicaCount=1 \
|
--set replicaCount=1 \
|
||||||
--set cockroachdb.single-node=true \
|
--set cockroachdb.single-node=true \
|
||||||
--set cockroachdb.statefulset.replicas=1
|
--set cockroachdb.statefulset.replicas=1
|
||||||
|
@ -9,16 +9,17 @@ ExternalPort: 443
|
|||||||
|
|
||||||
# If not using the docker compose example, adjust these values for connecting ZITADEL to your CockroachDB
|
# If not using the docker compose example, adjust these values for connecting ZITADEL to your CockroachDB
|
||||||
Database:
|
Database:
|
||||||
Host: 'my-cockroach-db'
|
cockroach:
|
||||||
User:
|
Host: 'my-cockroach-db'
|
||||||
SSL:
|
User:
|
||||||
Mode: 'verify-full'
|
SSL:
|
||||||
RootCert: "/crdb-certs/ca.crt"
|
Mode: 'verify-full'
|
||||||
Cert: "/crdb-certs/client.zitadel_user.crt"
|
RootCert: "/crdb-certs/ca.crt"
|
||||||
Key: "/crdb-certs/client.zitadel_user.key"
|
Cert: "/crdb-certs/client.zitadel_user.crt"
|
||||||
AdminUser:
|
Key: "/crdb-certs/client.zitadel_user.key"
|
||||||
SSL:
|
Admin:
|
||||||
Mode: 'verify-full'
|
SSL:
|
||||||
RootCert: "/crdb-certs/ca.crt"
|
Mode: 'verify-full'
|
||||||
Cert: "/crdb-certs/client.root.crt"
|
RootCert: "/crdb-certs/ca.crt"
|
||||||
Key: "/crdb-certs/client.root.key"
|
Cert: "/crdb-certs/client.root.crt"
|
||||||
|
Key: "/crdb-certs/client.root.key"
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
# If not using the docker compose example, adjust these values for connecting ZITADEL to your CockroachDB
|
# If not using the docker compose example, adjust these values for connecting ZITADEL to your CockroachDB
|
||||||
Database:
|
Database:
|
||||||
User:
|
cockroach:
|
||||||
# If the user doesn't exist already, it is created
|
User:
|
||||||
Username: 'zitadel_user'
|
# If the user doesn't exist already, it is created
|
||||||
Password: 'Secret_DB_User_Password'
|
Username: 'zitadel_user'
|
||||||
AdminUser:
|
Password: 'Secret_DB_User_Password'
|
||||||
Username: 'root'
|
Admin:
|
||||||
Password: ''
|
Username: 'root'
|
||||||
|
Password: ''
|
||||||
|
@ -44,9 +44,9 @@ zitadel start-from-init \
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Set runtime environment variables
|
# Set runtime environment variables
|
||||||
export ZITADEL_DATABASE_HOST="my.database"
|
export ZITADEL_DATABASE_COCKROACH_HOST="my.database"
|
||||||
export ZITADEL_DATABASE_USER_USERNAME="my_zitadel_db_user"
|
export ZITADEL_DATABASE_COCKROACH_USER_USERNAME="my_zitadel_db_user"
|
||||||
export ZITADEL_DATABASE_USER_PASSWORD="Secret_DB_User_Password"
|
export ZITADEL_DATABASE_COCKROACH_USER_PASSWORD="Secret_DB_User_Password"
|
||||||
export ZITADEL_FIRSTINSTANCE_ORG_HUMAN_USERNAME="root"
|
export ZITADEL_FIRSTINSTANCE_ORG_HUMAN_USERNAME="root"
|
||||||
export ZITADEL_FIRSTINSTANCE_ORG_HUMAN_PASSWORD="RootPassword1!"
|
export ZITADEL_FIRSTINSTANCE_ORG_HUMAN_PASSWORD="RootPassword1!"
|
||||||
|
|
||||||
|
@ -7,16 +7,17 @@ ExternalSecure: false
|
|||||||
|
|
||||||
# If not using the docker compose example, adjust these values for connecting ZITADEL to your CockroachDB
|
# If not using the docker compose example, adjust these values for connecting ZITADEL to your CockroachDB
|
||||||
Database:
|
Database:
|
||||||
Host: 'my-cockroach-db'
|
cockroach:
|
||||||
User:
|
Host: 'my-cockroach-db'
|
||||||
SSL:
|
User:
|
||||||
Mode: 'verify-full'
|
SSL:
|
||||||
RootCert: "/crdb-certs/ca.crt"
|
Mode: 'verify-full'
|
||||||
Cert: "/crdb-certs/client.zitadel_user.crt"
|
RootCert: "/crdb-certs/ca.crt"
|
||||||
Key: "/crdb-certs/client.zitadel_user.key"
|
Cert: "/crdb-certs/client.zitadel_user.crt"
|
||||||
AdminUser:
|
Key: "/crdb-certs/client.zitadel_user.key"
|
||||||
SSL:
|
Admin:
|
||||||
Mode: 'verify-full'
|
SSL:
|
||||||
RootCert: "/crdb-certs/ca.crt"
|
Mode: 'verify-full'
|
||||||
Cert: "/crdb-certs/client.root.crt"
|
RootCert: "/crdb-certs/ca.crt"
|
||||||
Key: "/crdb-certs/client.root.key"
|
Cert: "/crdb-certs/client.root.crt"
|
||||||
|
Key: "/crdb-certs/client.root.key"
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
# If not using the docker compose example, adjust these values for connecting ZITADEL to your CockroachDB
|
# If not using the docker compose example, adjust these values for connecting ZITADEL to your CockroachDB
|
||||||
Database:
|
Database:
|
||||||
User:
|
cockroach:
|
||||||
# If the user doesn't exist already, it is created
|
User:
|
||||||
Username: 'zitadel_user'
|
# If the user doesn't exist already, it is created
|
||||||
Password: 'Secret_DB_User_Password'
|
Username: 'zitadel_user'
|
||||||
AdminUser:
|
Password: 'Secret_DB_User_Password'
|
||||||
Username: 'root'
|
Admin:
|
||||||
Password: ''
|
Username: 'root'
|
||||||
|
Password: ''
|
||||||
|
@ -6,11 +6,11 @@ zitadel:
|
|||||||
secretConfig:
|
secretConfig:
|
||||||
|
|
||||||
Database:
|
Database:
|
||||||
User:
|
cockroach:
|
||||||
# If the user doesn't exist already, it is created
|
User:
|
||||||
Username: 'zitadel_user'
|
# If the user doesn't exist already, it is created
|
||||||
Password: 'Secret_DB_User_Password'
|
Username: 'zitadel_user'
|
||||||
|
Password: 'Secret_DB_User_Password'
|
||||||
AdminUser:
|
Admin:
|
||||||
Username: 'root'
|
Username: 'root'
|
||||||
Password: ''
|
Password: ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user