Coder Social home page Coder Social logo

Bug: If dbSslRootCrtSecret and/or dbSslClientCrtSecret are defined in default values, they will always be tried to mount about zitadel-charts HOT 7 CLOSED

samip5 avatar samip5 commented on June 13, 2024 1
Bug: If dbSslRootCrtSecret and/or dbSslClientCrtSecret are defined in default values, they will always be tried to mount

from zitadel-charts.

Comments (7)

samip5 avatar samip5 commented on June 13, 2024 1

I'm also running into this issue, and it makes it so you can't install zitadel with postgresql unfortunately (using only password and username).

I was able to install it despite these issues, but not a fun user experience.

See here: https://github.com/samip5/k8s-cluster/blob/24ba742b1d8cafa012528c8e7bcdf580fbb48dce/archive/zitadel/app/helm-release.yaml#L71 & https://github.com/samip5/k8s-cluster/blob/24ba742b1d8cafa012528c8e7bcdf580fbb48dce/archive/zitadel/app/helm-release.yaml#L73

from zitadel-charts.

samip5 avatar samip5 commented on June 13, 2024 1

Did you ever end up getting this error in the browser when you go to your zitadel domain?

ID=QUERY-n0wng Message=Instance not found

Yes, I did get that error and the official docs tell you about it.

from zitadel-charts.

eliobischof avatar eliobischof commented on June 13, 2024 1

If I didn't miss anything, PR #111 should resolve this issue.

from zitadel-charts.

jessebot avatar jessebot commented on June 13, 2024

I'm also running into this issue, and it makes it so you can't install zitadel with postgresql unfortunately (using only password and username).

from zitadel-charts.

jessebot avatar jessebot commented on June 13, 2024

That fixed that error for me! Thanks, @samip5!! Agree that it's not a good user experience though and should still be fixed. If it's fix that in the values.yaml, we probably also need to fix the docs to specify those values directly via helm in the tutorials when needed.

from zitadel-charts.

jessebot avatar jessebot commented on June 13, 2024

Did you ever end up getting this error in the browser when you go to your zitadel domain?

ID=QUERY-n0wng Message=Instance not found

It seems to produce this in the zitadel pod's container logs:

click here for logs
time="2023-08-20T09:50:59Z" level=warning msg="postgres is currently in beta" caller="/home/runner/work/zitadel/zitadel/internal/database/postgres/config.go:62"
time="2023-08-20T09:50:59Z" level=warning msg="execution logs are currently in beta" caller="/home/runner/work/zitadel/zitadel/cmd/start/start.go:207"
time="2023-08-20T09:50:59Z" level=info msg="spooler started" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/v1/spooler/spooler.go:73" lockerID=228218892072255517 workers=1
time="2023-08-20T09:50:59Z" level=info msg="spooler started" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/v1/spooler/spooler.go:73" lockerID=228218892072321053 workers=1
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.personal_access_tokens3
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.projects3
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.keys4
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.orgs
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.authn_keys2
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.user_grants3
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.idp_templates5
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.actions3
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.idp_login_policy_links5
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.idps3
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.user_auth_methods4
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.smtp_configs
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.security_policies
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.flow_triggers2
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.label_policies2
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.oidc_settings2
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.org_domains2
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.lockout_policies2
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.org_metadata2
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.instance_members3
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.secret_generators2
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.notification_policies
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.privacy_policies3
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.custom_texts2
time="2023-08-20T09:51:00Z" level=info msg="query failed" aggregate=system aggregateId=SYSTEM aggregateType=system caller="/home/runner/work/zitadel/zitadel/internal/eventstore/repository/sql/crdb.go:143" error="ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505)" eventType=system.projections.scheduler.succeeded instanceID=
time="2023-08-20T09:51:00Z" level=warning msg="unable to push first schedule succeeded" caller="/home/runner/work/zitadel/zitadel/internal/eventstore/handler/handler_projection.go:275" error="ID=SQL-SBP37 Message=unable to create event Parent=(ERROR: duplicate key value violates unique constraint \"previous_sequence_unique\" (SQLSTATE 23505))" projection=projections.org_members3
time="2023-08-20T09:51:00Z" level=info msg="server is listening on [::]:8080" caller="/home/runner/work/zitadel/zitadel/cmd/start/start.go:412"

I have a fairly similar values.yaml to you for zitadel when using postgres like:

click here zitadel values.yaml
zitadel:
  # See all defaults here:
  # https://github.com/zitadel/zitadel/blob/main/cmd/defaults.yaml
  configmapConfig:
    Database:
      postgres:
        Host: zitadel-postgres
        Port: 5432
        Database: zitadel
        User:
          SSL:
            Mode: disable
        Admin:
          SSL:
            Mode: disable
    TLS:
      Enabled: false

    # specifies if ZITADEL is exposed externally through TLS
    # this must be set to true even if TLS is not enabled on ZITADEL itself
    # but TLS traffic is terminated on a reverse proxy
    # !!! Changing this after initial setup breaks your system !!!
    ExternalSecure: true
    ExternalPort: 443

    Machine:
      Identification:
        Hostname:
          Enabled: true
        Webhook:
          Enabled: false

    # setup ZITADEL with a service account
    FirstInstance:
      Org:
        Machine:
          Machine:
            # Creates a service account with the name zitadel-admin-sa,
            # which results in a secret 'zitadel-admin-sa' with a key 'zitadel-admin-sa.json'
            Username: zitadel-admin-sa
            Name: Admin
          MachineKey:
            Type: 1
  # these must be set as is until https://github.com/zitadel/zitadel-charts/issues/113 is resolved
  dbSslRootCrtSecret:
  dbSslClientCrtSecret:
  # Reference the name of the secret that contains the masterkey.
  # The key should be named "masterkey".
  masterkeySecretName: "zitadel-core-key"

replicaCount: 1

# Additional environment variables
# see more here: https://github.com/zitadel/zitadel/blob/main/cmd/defaults.yaml
env:
  - name: ZITADEL_EXTERNAL_DOMAIN
    value: "**REDACTED**"
  # all of these come from an external secret
  - name: ZITADEL_DATABASE_POSTGRES_USER_USERNAME
    valueFrom:
      secretKeyRef:
        name: zitadel-db-credentials
        key: username
  - name: ZITADEL_DATABASE_POSTGRES_USER_PASSWORD
    valueFrom:
      secretKeyRef:
        name: zitadel-db-credentials
        key: password
  - name: ZITADEL_DATABASE_POSTGRES_ADMIN_USERNAME
    valueFrom:
      secretKeyRef:
        name: zitadel-db-credentials
        key: adminUser
  - name: ZITADEL_DATABASE_POSTGRES_ADMIN_PASSWORD
    valueFrom:
      secretKeyRef:
        name: zitadel-db-credentials
        key: adminPassword

ingress:
  enabled: true
  className: "nginx"
  annotations:
    kubernetes.io/tls-acme: "true"
    cert-manager.io/cluster-issuer: letsencrypt-staging
  hosts:
    - host:  "**REDACTED**"
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: zitadel-tls
      hosts:
        -  "**REDACTED**"

metrics:
  enabled: false
  serviceMonitor:
    enabled: false

readinessProbe:
  enabled: true
  initialDelaySeconds: 15
  periodSeconds: 10
  failureThreshold: 6

livenessProbe:
  enabled: true
  initialDelaySeconds: 15
  periodSeconds: 10
  failureThreshold: 6
click here for postgres values.yaml

I am still using bitnami's helm chart for postgres and am only passing in a few values:

fullnameOverride: zitadel-postgres
global:
  postgresql:
    auth:
      username: zitadel
      existingSecret: zitadel-db-credentials
      secretKeys:
        userPasswordKey: password
        adminPasswordKey: adminPassword
volumePermissions:
  enabled: true
primary:
  pgHbaConfiguration: |-
    local all all trust
    host all all 127.0.0.1/32 md5
    host all zitadel 10.0.0.0/8 md5
    host all postgres 10.0.0.0/8 md5
  persistence:
    enabled: true
    # Use an existing Persistent Volume Claim (must be created ahead of time)
    existingClaim: "zitadel-postgres"

The weird thing is that everything shows as healthy:
Screenshot showing the Argo CD web interface for the zitadel app which shows all resources healthy and up

I wonder if this is a weird thing where Argo CD doesn't play nice with the helm hooks. I don't know if this something you see in flux at all. If you didn't encounter this, no problem. Just thought I'd ask since I'm a bit puzzled.

from zitadel-charts.

jessebot avatar jessebot commented on June 13, 2024

Weird that I'm still getting it, because I'm specifying the following in my values.yaml:

# Additional environment variables
# see more here: https://github.com/zitadel/zitadel/blob/main/cmd/defaults.yaml
env:
  - name: ZITADEL_EXTERNAL_DOMAIN
    value: "**REDACTED**"

It looks like I was running into this though: zitadel/zitadel#6367 After updating ZITADEL_EXTERNAL_DOMAIN to ZITADEL_EXTERNALDOMAIN all is working!! Thanks again for all your help and I hope you have a great day :)

from zitadel-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.