Diese Seite ist noch nicht übersetzt. Es wird die englische Version angezeigt.
Getting started with rackctl
This guide demonstrates how to create a Kubernetes cluster using the rackctl command-line tool.
Prerequisites
rackctlinstalled (see Installation Guide)- Valid authentication token
Creating a Kubernetes Cluster
Step 1: Set Authentication Token
First, set your session token as an environment variable:
export RACKCTL_SESSION_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJiMTgyNmRkZC04NTM4AwvIebpCuxvXQlB0h3hEM
Step 2: Create Kubernetes Cluster
Execute the cluster creation command:
rackctl create test-cluster
Expected Output
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
Kubeconfig Details
The generated kubeconfig contains:
- Cluster information with certificate authority data
- Context configuration
- User credentials with authentication token
Next Steps
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
Troubleshooting
If you encounter issues:
- Verify your session token is valid and not expired
- Check network connectivity to the API endpoint
- Ensure you have the latest version of
rackctlinstalled