用kubesphere3.2.1部署kubernets1.21.5集群,在执行./kk create cluster -f config-sample.yaml报错:
Error: Failed to download cluster config: Failed to unmarshal configuration: json: cannot unmarshal number into Go struct field HostCfg.spec.hosts.password of type string
Usage:
kk create cluster [flags]
Flags:
--container-manager string Container runtime: docker, crio, containerd and isula. (default "docker ")
--download-cmd string The user defined command to download the necessary binary files. The fi rst param '%s' is output path, the second param '%s', is the URL (default "curl -L -o %s %s")
-f, –filename string Path to a configuration file
-h, –help help for cluster
--skip-pull-images Skip pre pull images
--with-kubernetes string Specify a supported version of kubernetes (default "v1.21.5")
--with-kubesphere Deploy a specific version of kubesphere (default v3.2.0)
--with-local-storage Deploy a local PV provisioner
-y, –yes Skip pre-check of the installation
Global Flags:
--debug Print detailed information (default true)
--in-cluster Running inside the cluster
Failed to download cluster config: Failed to unmarshal configuration: json: cannot unmarshal number into G o struct field HostCfg.spec.hosts.password of type string
不知道是什么原因,系统centos7.6 内核3.10.0-957.el7.x86_64