kubectl get cluster
NAME CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS AGE
postgres-lxcdqz postgresql postgresql-14.8.0 Halt Running 4m58s
2. See error
kbcli cluster connect postgres-lxcdqz
error: failed to get component def :
➜ ~ kubectl exec -it postgres-lxcdqz-postgresql-0 bash
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
Defaulted container "postgresql" out of: postgresql, pgbouncer, metrics, kb-checkrole, config-manager, pg-init-container (init)
**Expected behavior**
kbcli connect postgresql cluster success with componentdefinition.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
Describe the bug kbcli connect postgresql cluster error with componentdefinition. error: failed to get component def :
To Reproduce Steps to reproduce the behavior:
kubectl get cluster NAME CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS AGE postgres-lxcdqz postgresql postgresql-14.8.0 Halt Running 4m58s
kbcli cluster connect postgres-lxcdqz error: failed to get component def :
➜ ~ kubectl exec -it postgres-lxcdqz-postgresql-0 bash kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead. Defaulted container "postgresql" out of: postgresql, pgbouncer, metrics, kb-checkrole, config-manager, pg-init-container (init)
/ | (_) | \ | ' | | |/ \ ) | |) | | | (_) | |__/| ./|||_/ |_|
This container is managed by runit, when stopping/starting services use sv
Examples:
sv stop cron sv restart patroni
Current status: (sv status /etc/service/*)
run: /etc/service/patroni: (pid 73) 419s run: /etc/service/pgqd: (pid 74) 419s root@postgres-lxcdqz-postgresql-0:/home/postgres# env|grep PASS PGPASSWORD=s3/,)]4921 PGPASSWORD_STANDBY=s3/,)]4921 PGPASSWORD_SUPERUSER=s3/,)]4921 PGPASSWORD_ADMIN=s3/,)]4921 root@postgres-lxcdqz-postgresql-0:/home/postgres#