Executing clusterctl create cluster with KIND 0.6.0 fails:
cluster-api-provider-vsphere $ clusterctl create cluster \
> --bootstrap-type kind \
> --bootstrap-flags name=management-cluster \
> --cluster ./out/management-cluster/cluster.yaml \
> --machines ./out/management-cluster/controlplane.yaml \
> --provider-components ./out/management-cluster/provider-components.yaml \
> --addon-components ./out/management-cluster/addons.yaml \
> --kubeconfig-out ./out/management-cluster/kubeconfig
NOTICE: clusterctl has been deprecated in v1alpha2 and will be removed in a future version.
I1126 17:55:34.150161 83176 createbootstrapcluster.go:27] Preparing bootstrap cluster
I1126 17:56:02.012573 83176 createbootstrapcluster.go:36] Cleaning up bootstrap cluster.
F1126 17:56:02.877746 83176 create_cluster.go:61] could not create bootstrap cluster: unable to get bootstrap cluster kubeconfig: open `kind get kubeconfig-path` is deprecated!
KIND will export and merge kubeconfig like kops, minikube, etc.
This command is now unnecessary and will be removed in a future release.
For more info see: https://github.com/kubernetes-sigs/kind/issues/1060
See also the output of `kind create cluster`
/Users/gmay/.kube/kind-config-clusterapi: no such file or directory
What did you expect to happen:
When using KIND 0.5.1 clusterctl create cluster with the same templates, it completes successfully:
cluster-api-provider-vsphere $ clusterctl create cluster \
> --bootstrap-type kind \
> --bootstrap-flags name=management-cluster \
> --cluster ./out/management-cluster/cluster.yaml \
> --machines ./out/management-cluster/controlplane.yaml \
> --provider-components ./out/management-cluster/provider-components.yaml \
> --addon-components ./out/management-cluster/addons.yaml \
> --kubeconfig-out ./out/management-cluster/kubeconfig
NOTICE: clusterctl has been deprecated in v1alpha2 and will be removed in a future version.
I1126 17:41:39.222313 42875 createbootstrapcluster.go:27] Preparing bootstrap cluster
I1126 17:42:09.577673 42875 clusterdeployer.go:83] Applying Cluster API stack to bootstrap cluster
I1126 17:42:09.577693 42875 applyclusterapicomponents.go:26] Applying Cluster API Provider Components
I1126 17:42:11.411769 42875 clusterdeployer.go:88] Provisioning target cluster via bootstrap cluster
I1126 17:42:11.432908 42875 applycluster.go:42] Creating Cluster referenced object "infrastructure.cluster.x-k8s.io/v1alpha2, Kind=VSphereCluster" with name "management-cluster" in namespace "default"
I1126 17:42:11.460984 42875 applycluster.go:48] Creating cluster object management-cluster in namespace "default"
I1126 17:42:11.471367 42875 clusterdeployer.go:97] Creating control plane machine "management-cluster-controlplane-0" in namespace "default"
I1126 17:42:11.476469 42875 applymachines.go:40] Creating Machine referenced object "infrastructure.cluster.x-k8s.io/v1alpha2, Kind=VSphereMachine" with name "management-cluster-controlplane-0" in namespace "default"
I1126 17:42:11.498555 42875 applymachines.go:40] Creating Machine referenced object "bootstrap.cluster.x-k8s.io/v1alpha2, Kind=KubeadmConfig" with name "management-cluster-controlplane-0" in namespace "default"
I1126 17:42:11.529030 42875 applymachines.go:46] Creating machines in namespace "default"
I1126 17:46:11.570086 42875 clusterdeployer.go:106] Creating target cluster
I1126 17:46:11.656828 42875 applyaddons.go:25] Applying Addons
I1126 17:46:13.107278 42875 clusterdeployer.go:124] Pivoting Cluster API stack to target cluster
I1126 17:46:13.107341 42875 pivot.go:76] Applying Cluster API Provider Components to Target Cluster
I1126 17:46:15.366510 42875 pivot.go:81] Pivoting Cluster API objects from bootstrap to target cluster.
I1126 17:46:56.233740 42875 clusterdeployer.go:129] Saving provider components to the target cluster
I1126 17:46:56.306324 42875 clusterdeployer.go:151] Creating node machines in target cluster.
I1126 17:46:56.314162 42875 applymachines.go:46] Creating machines in namespace "default"
I1126 17:46:56.314193 42875 clusterdeployer.go:165] Done provisioning cluster. You can now access your cluster with kubectl --kubeconfig ./out/management-cluster/kubeconfig
I1126 17:46:56.314905 42875 createbootstrapcluster.go:36] Cleaning up bootstrap cluster.
Anything else you would like to add:
Kind 0.6.0 is now the default version when installing with Homebrew.
/kind bug
What steps did you take and what happened:
Followed the instruction described at https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/blob/master/docs/getting_started.md to generate management cluster yaml templates.
Executing
clusterctl create cluster
with KIND 0.6.0 fails:What did you expect to happen:
When using KIND 0.5.1
clusterctl create cluster
with the same templates, it completes successfully:Anything else you would like to add:
Kind 0.6.0 is now the default version when installing with Homebrew.
Environment:
kubectl version
): 1.16.2/etc/os-release
): CentOS 7