mirror of
https://github.com/rancher/k3k.git
synced 2026-08-18 11:56:22 +00:00
* Add --tls-sans flag to k3kcli cluster create * Refine --tls-sans flag description in k3kcli documentation * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Fix TLS SANs handling in cluster creation by using hostname directly * Implement extractHost function and update TLS SAN handling in cluster creation --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2.2 KiB
2.2 KiB
k3kcli cluster create
Create a new cluster.
k3kcli cluster create [flags]
Examples
k3kcli cluster create [command options] NAME
Options
--agent-args strings agents extra arguments
--agent-envs strings agents extra Envs
--agents int number of agents
--annotations stringArray Annotations to add to the cluster object (e.g. key=value)
--cluster-cidr string cluster CIDR
--custom-certs string The path for custom certificate directory
-h, --help help for create
--kubeconfig-server string override the kubeconfig server host
--labels stringArray Labels to add to the cluster object (e.g. key=value)
--mirror-host-nodes Mirror Host Cluster Nodes
--mode string k3k mode type (shared, virtual) (default "shared")
-n, --namespace string namespace of the k3k cluster
--persistence-type string persistence mode for the nodes (dynamic, ephemeral) (default "dynamic")
--policy string The policy to create the cluster in
--server-args strings servers extra arguments
--server-envs strings servers extra Envs
--servers int number of servers (default 1)
--service-cidr string service CIDR
--storage-class-name string storage class name for dynamic persistence type
--storage-request-size string storage size for dynamic persistence type
--timeout duration The timeout for waiting for the cluster to become ready (e.g., 10s, 5m, 1h). (default 3m0s)
--tls-sans strings additional Subject Alternative Names for the cluster server TLS certificate
--token string token of the cluster
--version string k3s version
Options inherited from parent commands
--debug Turn on debug logs
--kubeconfig string kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)
SEE ALSO
- k3kcli cluster - K3k cluster command.