kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

[BUG] KubeBlocks: 0.9.2 创建pg 主备, pod始终有一个是not ready

Open grassroadsZ opened this issue 10 months ago • 2 comments

[root@ecs-9473 shell]# kbcli version
Kubernetes: v1.30.4-r4-30.0.14.11
KubeBlocks: 0.9.2
kbcli: 0.9.2
[root@ecs-9473 shell]# kubectl get po -n agent |grep post
pg-postgresql-0            3/4     Running   0          77m
pg-postgresql-1            3/4     Running   0          77m

[root@ecs-9473 shell]# kubectl describe po pg-postgresql-1  -n agent 
....
Topology Spread Constraints:  kubernetes.io/hostname:DoNotSchedule when max skew 1 is exceeded for selector app.kubernetes.io/instance=pg,apps.kubeblocks.io/component-name=postgresql
Events:
  Type     Reason     Age                    From     Message
  ----     ------     ----                   ----     -------
  Warning  Unhealthy  2m10s (x211 over 76m)  kubelet  Readiness probe failed: 127.0.0.1:5432 - no response

grassroadsZ avatar Jan 15 '25 03:01 grassroadsZ

Can you attach the pod logs? Please run the following commands: kubectl logs pg-postgresql-0 kubectl logs pg-postgresql-0 -c lorry

wangyelei avatar Jan 15 '25 06:01 wangyelei

This issue has been marked as stale because it has been open for 30 days with no activity

github-actions[bot] avatar Feb 17 '25 00:02 github-actions[bot]