Command-line interface for Neterial services.
- Install a Kubernetes cluster in your Hetzner Cloud account
- Add or remove worker nodes
- Includes out-of-the-box support for Cilium CNI, Metrics Server, Hetzner Cloud Controller Manager, and Hetzner CSI.
Creating a Kubernetes 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
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create cluster \
--name thename
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube get clusters
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create cluster \
--name thename --location ash --worker-count 2
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create cluster -h
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create node \
--cluster thename
# List all nodes
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube get nodes \
--cluster thename
# Remove a specific node
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube delete node \
--cluster thename --node thenodename
You can choose the VM used for the worker. This is how you can control the compute capacity of your cluster.
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create node \
--cluster thename --vm-type VM_TYPE
docker run --rm -v neterial:/app/config ghcr.io/neterialio/cli kube create cluster \
--name thename --worker-vm-type VM_TYPE
See the full list of VM types for available options.
-
Remove a cluster or multiple 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 the config file
docker volume rm neterial
⚠️ Warning: This operation will permanently remove your Neterial account. You will still have access to your clusters, but you will no longer be able to manage them using the Neterial platform.
docker run --rm -ti -v neterial:/app/config ghcr.io/neterialio/cli account delete
That's it.