add first instance admin

This commit is contained in:
2024-03-16 19:35:28 +01:00
parent a0233fdc2d
commit d533738a32
2 changed files with 11 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ metadata:
secret-generator.cs.sap.com/enabled: "true"
stringData:
masterkey: "%generate"
admin-password: "%generate"
---
apiVersion: v1
kind: Secret
@@ -19,4 +20,4 @@ metadata:
secret-generator.cs.sap.com/enabled: "true"
stringData:
cockroach-password: "%generate"
user-password: "%generate"
user-password: "%generate"

View File

@@ -25,6 +25,15 @@ annotations:
argocd.argoproj.io/hook: Sync
env:
- name: ZITADEL_FIRSTINSTANCE_ORG_HUMAN_USERNAME
value: "admin"
- name: ZITADEL_FIRSTINSTANCE_ORG_HUMAN_PASSWORD
valueFrom:
secretKeyRef:
name: zitadel-masterkey
key: admin-password
- name: ZITADEL_DATABASE_COCKROACH_USER_PASSWORD
valueFrom:
secretKeyRef: