Access your Cluster
In order to access your Kubernetes cluster you must complete some steps and generate a Kubeconfig file to connect to a Kubernetes IDE.
What is Kubeconfig?
Kubeconfig is a configuration file used by the Kubernetes command-line tool kubectl to interact with Kubernetes clusters. It contains information about the clusters, users, contexts, and namespaces that kubectl uses to communicate with one or more Kubernetes clusters.
What is an IDE?
An IDE for Kubernetes is a software environment that provides tools and features specifically designed to help developers create, manage, and deploy applications on Kubernetes clusters, integrating Kubernetes commands, resource management, and YAML/Helm chart editing within the development workflow.
Lens is an open-source IDE for Kubernetes, providing a user-friendly GUI to manage, monitor, and troubleshoot multiple clusters in real-time.
1. Go to the Access Cluster setting
Click on Clusters, select one and access its settings.
Go to the Access Cluster option.
2. Install the following Dependencies
- AWS Cli: AWS Docs
- KubeCtl: Kubernetes Docs
- Lens: K8SLens Docs
- Pritunl VPN Client: Pritunl Page
3. Set up a VPN
- Open the Pritunl VPN Client
- Generate a VPN URi, copy it and set it up on the client.
4. Generate your AWS Keys and generate the kubeconfig file
- Login into AWS with your username.
- Then, go to AWS Access Key Wizard to generate the keys on AWS.
- Paste the keys in the form and generate the kubeconfig file.
- Copy the output.
5. Add it to Lens
Open Lens, locate the 'Import Kubeconfig' option, and import the YAML file obtained from the Access Cluster section.