cluster-api: [question] where to check if target cluster doesn't have cluster-api object
User Story
As a [developer/user/operator] I would like to [high level description] for [reasons]
Detailed Description I am trying to migrate openstack provider from v1alpha2 to v1alpha3 with https://github.com/kubernetes-sigs/cluster-api-provider-openstack/pull/503
now follow the https://master.cluster-api.sigs.k8s.io/clusterctl/commands/move.html I am able to create a cluster (control plane) but there is no such pods such as capi-controller-manager-xx and no definition for cluster, machinedeployment etc
I guess it’s not pivoting from bootstrap cluster now ? can someone help to provide some guide on if this kind of scenario happens, what should I check? do I need explict run pivoting at v1alpha3 now? thanks
root@jj-master:~/go/src/sigs.k8s.io/cluster-api-provider-openstack/examples/output# kubectl --kubeconfig kubeconfig get nodes
NAME STATUS ROLES AGE VERSION
test-cluster-controlplane-0 Ready master 8m57s v1.17.1
root@jj-master:~/go/src/sigs.k8s.io/cluster-api-provider-openstack/examples/output# kubectl --kubeconfig kubeconfig get pods
No resources found.
root@jj-master:~/go/src/sigs.k8s.io/cluster-api-provider-openstack/examples/output# kubectl --kubeconfig kubeconfig get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system calico-kube-controllers-564b6667d7-h5zv2 1/1 Running 0 8m45s
kube-system calico-node-gjnqf 1/1 Running 0 8m45s
kube-system coredns-6955765f44-8t5tk 1/1 Running 0 8m45s
kube-system coredns-6955765f44-jxhs6 1/1 Running 0 8m45s
kube-system etcd-test-cluster-controlplane-0 1/1 Running 0 9m1s
kube-system kube-apiserver-test-cluster-controlplane-0 1/1 Running 0 9m1s
kube-system kube-controller-manager-test-cluster-controlplane-0 1/1 Running 0 9m1s
kube-system kube-proxy-6cng6 1/1 Running 0 8m45s
kube-system kube-scheduler-test-cluster-controlplane-0 1/1 Running 0 9m1s
[A clear and concise description of what you want to happen.]
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
/kind feature
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (15 by maintainers)
I am able to create cluster now (though some other problems still existing), so I close this issue, thanks a lot for your help~
$KUBECONFIG is still set to use /root/.kube/kind-config-clusterapi even though that file has been deleted, remember to unset it Creating cluster “clusterapi” … ✓ Ensuring node image (kindest/node:v1.15.0) 🖼 ✓ Preparing nodes 📦 ✓ Creating kubeadm config 📜 ✓ Starting control-plane 🕹️ ✓ Installing CNI 🔌 ✓ Installing StorageClass 💾 Cluster creation complete. You can now use the cluster with:
export KUBECONFIG=“$(kind get kubeconfig-path --name=“clusterapi”)” kubectl cluster-info performing init…
Your cluster API management cluster has been initialized successfully!
You can now create your first workload cluster by running the following:
made some progress based on the info above, @fabriziopandini able to create part of the containers and now facing following error , assume it’s related to provide specific issue so working on that, thanks a lot !