ekz create cluster
Create a cluster

Synopsis

The create sub-commands create EKS-D clusters.
1
ekz create cluster [flags]
Copied!

Examples

1
# Create an EKS-D cluster with the default provider
2
# The KubeConfig will be merged to $HOME/.kube/config. The default cluster name is 'ekz'.
3
ekz create cluster
4
​
5
# Create cluster and name it 'dev'
6
ekz create cluster --name=dev
7
​
8
# Create the 'dev' cluster (alternative syntax)
9
ekz create cluster dev
10
​
11
# Create the default cluster in the host mode
12
# This command runs the cluster using all (net,ipc,pid,uts) host namespaces,
13
# similar to run it directly on the local machine.
14
ekz create cluster --host
15
​
16
# Create an EKS-D cluster with the EKZ provider
17
# This command creates an EKS-D-compatible K0s-based cluster.
18
ekz --provider=ekz create cluster
19
​
20
# Create an EKS-D cluster with the KIND provider
21
# This command creates an EKS-D-compatible KIND cluster.
22
ekz --provider=kind create cluster
23
​
24
# Create an EKS-D cluster and write KubeConfig to $PWD/kubeconfig
25
# If the file already exists, the new KubeConfig will be merged into it.
26
ekz create cluster -o kubeconfig
27
​
28
# Create EKS-D cluster with a specific version of EKS-D
29
ekz create --eksd-version=v1.18.9-eks-1-18-1 cluster
30
​
31
# Create EKS-D cluster with a short version format
32
# Please use v1.18 for v1.18.9-eks-1-18-3, and v1.19 for v1.19.6-eks-1-19-3.
33
ekz create --eksd-version=v1.18 cluster
Copied!

Options

1
-d, --eksd-version string specify a distro version of EKS-D (default "v1.20.7-eks-1-20-3")
2
-h, --help help for cluster
3
--host run in the host mode
4
--map-to-host-volume map /var/lib/k0s to the host directory
5
--name string cluster name (default "ekz")
6
-o, --output string specify output file to write kubeconfig to (default "~/.kube/config")
Copied!

Options inherited from parent commands

1
-p, --provider string cluster provider possible values: "ekz", "kind". env: EKZ_PROVIDER (default "ekz")
2
--verbose run verbosely
Copied!

SEE ALSO

Last modified 3mo ago