Kubernetes Cluster
The "Kubernetes Cluster" simplifies the deployment of the Kubernetes control plane and node groups; by providing essential configurations out of the box. A cluster is launched automatically when you create an environment.
Behind the Scenes
When you create a Kubernetes Cluster through Kapstan, the platform automatically configures AWS EKS (Elastic Kubernetes Service) cluster along with its associated resources, IAM roles, and configurations, and tags relevant AWS resources for seamless operation and integration. It also ensures proper authentication and security measures for the cluster's nodes and associated services.
Steps to connect to Kubernetes cluster using kubectl
Kubernetes provides a command line tool, kubectl, for communicating with a Kubernetes cluster's control plane, using the Kubernetes API.
- Ensure you AWS Command Line Interface configured in your environment.
- Copy the cluster ARN from Kapstan UI
- Create or update the kubeconfig file for your cluster by running the following command on your terminal and copy the generated context:
aws eks --region <aws region> update-kubeconfig --name <cluster name in Kapstan> --role-arn <cluster's ARN>
- Run:
kubectl config use-context <generated context from previous command>
- Run the following to list the details and also check if the setup is correct:
kubectl get all