kk create config: Create cluster configuration file
Create cluster configuration file. More information about the configuration file can be found in the config-example.yaml.
Print detailed information. The default is false
.
Specify the configuration file output path. The default is ./config-example.yaml
.
Create a configuration based on existing cluster. Usually used in conjunction with the --kubeconfig
option.
Specify a kubeconfig file.
Specify a name of cluster object. The default is sample
.
Specify a supported version of kubernetes.
Deploy a specific version of kubesphere. It will generate the kubesphere ClusterConfiguration
in the config file with the default value.
Create an example configuration file with default Kubernetes version.
$ kk create config
Create a Kubernetes and KubeSphere example configuration file with a specified version.
$ kk create config --with-kubernetes v1.21.5 --with-kubesphere v3.2.1
Create a example configuration file based on existing cluster
$ kk create config --from-cluster --kubeconfig ~/.kube/config