rackctl
This guide demonstrates how to create a Kubernetes cluster using the rackctl
command-line tool.
rackctl
installed (see Installation Guide)First, set your session token as an environment variable:
export RACKCTL_SESSION_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJiMTgyNmRkZC04NTM4AwvIebpCuxvXQlB0h3hEM
Execute the cluster creation command:
rackctl create test-cluster
When successful, you’ll see the following type of output:
Creating cluster with name: test-cluster
✅ Kubeconfig saved to "/Users/userone/.k8/kubeconfig.yml"
📝 Saved resource_id to "/Users/userone/.rackmint/k8"
Please note that the path for kubeconfig is automatically evaluated if you have KUBECONFIG defined, if not it will default to the default KUBECONFIG value which is generally in the user home directory
The generated kubeconfig contains:
After successfully creating your cluster, you can:
Use the generated kubeconfig to interact with your cluster:
kubectl get nodes
Set up SSL and Ingress and Deploy applications to your cluster following the Deployment Guide
If you encounter issues:
rackctl
installed