cockroachdb / helm-charts

Helm charts for cockroachdb
Apache License 2.0
83 stars 150 forks source link

Clean deployment of helm chart doesn't result in working cockroachdb instance. #410

Closed lknite closed 1 month ago

lknite commented 1 month ago

I'm wondering if the helm chart is failing for everyone?

I haven't set anything in my values.yaml so this is a clean installation of the cockroachdb helm chart into a new namespace.

I'm seeing this in the logs:

[keycloak-cockroachdb-1 db] I240826 18:06:22.620811 146 server/init.go:451 ⋮ [T1,Vsystem,n?] 4095  ‹keycloak-cockroachdb-2.keycloak-cockroachdb.keycloak.svc.cluster.local:26257› is itself waiting for init, will retry
[keycloak-cockroachdb-0 db] I240826 18:06:23.505955 147 server/init.go:451 ⋮ [T1,Vsystem,n?] 170  ‹keycloak-cockroachdb-2.keycloak-cockroachdb.keycloak.svc.cluster.local:26257› is itself waiting for init, will retry
[keycloak-cockroachdb-2 db] I240826 18:06:23.540993 158 server/init.go:451 ⋮ [T1,Vsystem,n?] 4094  ‹keycloak-cockroachdb-0.keycloak-cockroachdb.keycloak.svc.cluster.local:26257› is itself waiting for init, will retry
[keycloak-cockroachdb-1 db] I240826 18:06:23.615954 146 server/init.go:451 ⋮ [T1,Vsystem,n?] 4096  ‹keycloak-cockroachdb-0.keycloak-cockroachdb.keycloak.svc.cluster.local:26257› is itself waiting for init, will retry

what's running:

$ k get all
NAME                                         READY   STATUS             RESTARTS         AGE
pod/keycloak-0                               0/1     CrashLoopBackOff   16 (3m33s ago)   74m
pod/keycloak-cockroachdb-0                   0/1     Running            0                9m11s
pod/keycloak-cockroachdb-1                   0/1     Running            0                74m
pod/keycloak-cockroachdb-2                   0/1     Running            0                74m
pod/keycloak-cockroachdb-self-signer-w697r   0/1     Completed          0                75m

NAME                                  TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)              AGE
service/keycloak                      ClusterIP   10.96.22.110    <none>        80/TCP               74m
service/keycloak-cockroachdb          ClusterIP   None            <none>        26257/TCP,8080/TCP   74m
service/keycloak-cockroachdb-public   ClusterIP   10.110.75.137   <none>        26257/TCP,8080/TCP   74m
service/keycloak-headless             ClusterIP   None            <none>        8080/TCP             74m

what's deploying:

$ cat ./Chart.yaml | tail -n 4
dependencies:
- name: cockroachdb
  version: 13.0.3
  repository: https://charts.cockroachdb.com

tested multiple helm chart versions, same result with each:

13.0.3, 13.0.2, 13.0.1, 12.0.5

kubernetes cluster version is: v1.30.1 helm version is: v3.15.2+g1a500d5

lknite commented 1 month ago

oh my gosh, found a solution here, first appears in an issue in 2020: https://github.com/cockroachdb/helm-charts/issues/149

need to add to values.yaml:

cockroachdb:
  init:
    jobAnnotations:
      argocd.argoproj.io/hook: Sync