kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

[BUG] [multi-cluster] Instance Controller Lacks Multi-Cluster Support — Pods/PVCs Not Created

Open jinuxstyle opened this issue 7 months ago • 5 comments

Describe the bug In a multi-cluster deployment with enableInstanceAPI: true, the InstanceSet controller v2 successfully creates Instance CRs on member clusters. But the Instance controller never creates Pods, PVCs, ConfigMaps, Secrets, or Services for those instances.

$ k -n mypg get its
NAME              DESIRED   UP-TO-DATE   READY   AVAILABLE   AGE
mypg-postgresql   3         3            0       0           20h
$ k1 -n mypg get instance
NAME                UP-TO-DATE   READY   AVAILABLE   ROLE   AGE
mypg-postgresql-0                                           4h25m
$ k1 -n mypg get pods
No resources found in mypg namespace.

To Reproduce Steps to reproduce the behavior:

  1. Set up a KubeBlocks multi-cluster environment with a control plane and 3 member clusters
  2. Create a Cluster/Component with enableInstanceAPI: true and multi-cluster placement annotation:
    annotations:
      apps.kubeblocks.io/multi-cluster-placement: kb-member-cluster1,kb-member-cluster2,kb-member-cluster3
    
  3. Observe that the InstanceSet status shows replicas: 3, readyReplicas: 0, availableReplicas: 0
  4. Check the control plane logs — see "create Instance ... successful" events
  5. Check member clusters — Instance CRs exist but Pods/PVCs/ConfigMaps/Secrets are never created

Expected behavior Insance pods should be created on member clusters.

Desktop (please complete the following information):

  • KubeBlocks Version: main-d60dbe20-2026apr8 (main branch)
  • Kubernetes: v1.32, multi-cluster setup
  • Deployment Mode: Multi-cluster

jinuxstyle avatar Apr 10 '26 08:04 jinuxstyle

Could you confirm whether KubeBlocks is also deployed on the member clusters? With enableInstanceAPI: true, the Instance CR is created on member clusters first, and the actual Pod/PVC creation is expected to be handled there.

leon-ape avatar Apr 15 '26 02:04 leon-ape

Could you confirm whether KubeBlocks is also deployed on the member clusters? With enableInstanceAPI: true, the Instance CR is created on member clusters first, and the actual Pod/PVC creation is expected to be handled there.

No, I had assumed KubeBlocks didn't need to be installed on member clusters — only the Instance CRDs were present. So do you mean KubeBlocks operator must be deployed on both control and member clusters? And could you point me to the official multi-cluster design document and installation guide?

jinuxstyle avatar Apr 15 '26 03:04 jinuxstyle

Could you confirm whether KubeBlocks is also deployed on the member clusters? With enableInstanceAPI: true, the Instance CR is created on member clusters first, and the actual Pod/PVC creation is expected to be handled there.

No, I had assumed KubeBlocks didn't need to be installed on member clusters — only the Instance CRDs were present. So do you mean KubeBlocks operator must be deployed on both control and member clusters? And could you point me to the official multi-cluster design document and installation guide?

Yes. For the current multi-cluster solution based on the Instance API, KubeBlocks is expected to be deployed on each participating Kubernetes cluster, including both the control cluster and the member clusters.

In this mode, the control cluster is responsible for orchestration and distributing Instance resources, while the member clusters are responsible for reconciling those Instance objects and creating the actual Pods/PVCs and other related resources locally.

For the design details, deployment model, and installation/documentation improvements, please follow up in https://github.com/apecloud/kubeblocks/issues/10129. We can continue the broader discussion there.

leon-ape avatar Apr 15 '26 03:04 leon-ape

Could you confirm whether KubeBlocks is also deployed on the member clusters? With enableInstanceAPI: true, the Instance CR is created on member clusters first, and the actual Pod/PVC creation is expected to be handled there.

No, I had assumed KubeBlocks didn't need to be installed on member clusters — only the Instance CRDs were present. So do you mean KubeBlocks operator must be deployed on both control and member clusters? And could you point me to the official multi-cluster design document and installation guide?

Yes. For the current multi-cluster solution based on the Instance API, KubeBlocks is expected to be deployed on each participating Kubernetes cluster, including both the control cluster and the member clusters.

In this mode, the control cluster is responsible for orchestration and distributing Instance resources, while the member clusters are responsible for reconciling those Instance objects and creating the actual Pods/PVCs and other related resources locally.

For the design details, deployment model, and installation/documentation improvements, please follow up in #10129. We can continue the broader discussion there.

OK. I will deploy kubeblocks on member clusters and test again.

jinuxstyle avatar Apr 15 '26 06:04 jinuxstyle

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

github-actions[bot] avatar May 18 '26 00:05 github-actions[bot]