Command-line interface for Neterial services.
- Install a Kubernetes cluster in your Hetzner Cloud account
- Adding/removing worker nodes
- Out-of-the-box: Cilium CNI, Metrics Server, Hetzner Cloud Controller Manager, Hetzner CSI
Creating a Kubernets cluster named default
in your Hetzner Cloud account.
You need to have a Hetzner Cloud account. If you don't have one yet, you can register with our referral link and receive €20 in Hetzner Cloud credits.
-
Login
docker run --pull=always --rm -ti -p 9999:9999 -v neterial:/app/config \ ghcr.io/neterialio/cli init
-
Create a Kubernetes cluster
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create cluster
-
Get the kubeconfig
docker run --rm -v neterial:/app/config \ ghcr.io/neterialio/cli kube get kubeconfig > default-kubeconfig
-
Work with your cluster
kubectl --kubeconfig default-kubeconfig get nodes
Creating cluster with a name
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create cluster \
--name thename
List all clusters
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube get clusters
Create cluster with 2 worker nodes and located in Ashburn USA
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create cluster \
--name thename --location ash --worker-count 2
Show help and all flags for "kube create cluster" command
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create cluster -h
Add a node
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create node \
--cluster thename
Remove a node
# List all nodes
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube get nodes \
--cluster thename
# Remove the one
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube delete node \
--cluster hello --node thenodename
You can choose the VM used for the worker. This is how you can control the compute capacity of your cluster.
Adding a node with a specific configuration
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create node \
--cluster thename --vm-type VM_TYPE
Creating cluster with a specific worker nodes
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create cluster \
--name thename --worker-vm-type VM_TYPE
-
Remove the cluster/clusters
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube delete cluster --name thename
-
Remove the docker image
docker rmi ghcr.io/neterialio/cli
-
Remove the volume with config file
docker volume rm neterial
Warning
This operation will remove your account completely. You will retain access to your clusters, but managing them using the Neterial platform will be unavailable.
docker run --rm -ti -v neterial:/app/config ghcr.io/neterialio/cli account delete
That's it.