Posts

Showing posts from October, 2023

Connect to AWS Kubernetes Cluster

 To obtain the kubeconfig file for your Kubernetes cluster on Amazon EKS (Elastic Kubernetes Service), you can use the AWS Command Line Interface (AWS CLI). Here are the steps: Install the AWS CLI: If you haven't already installed the AWS CLI, you can follow the instructions provided in the official AWS CLI User Guide: Installing the AWS CLI Configure AWS CLI: Run the following command to configure the AWS CLI with your AWS access key, secret key, region, and output format: aws configure   Obtain kubeconfig: Use the update-kubeconfig command to create or update the kubeconfig file for your EKS cluster. Replace <cluster-name> with the name of your EKS cluster and <region> with your AWS region.  aws eks --region <region> update-kubeconfig --name <cluster-name>  For example: aws eks --region us-west-2 update-kubeconfig --name my-eks-cluster   This command downloads the kubeconfig file and updates your local kubeconfig file. The kube...

Kubernetes | Containers - Container D and Docker

Image
 ctr | nerctl | crictl  What are these cli tools and which one should you be using.  Kubernetes Introduced something called Container run time interface - CRI   CRI Allowed any vendor to work as a container run time from kubernetes as long as they followed the standard as long as they adhered to the OCI standards.  OCI : Stands for Open Container Initiative   It consists of a image spec and a run time spec Image Spec : Is how an image should be built Runtime Spec : specified how a run time should be developed Keeping these standards in mind any one can build a run time . Therefore RKT and Container run time adhered to the OCI standards and were then supported as container run time for kubernetes via the CRI However Docker wasnt build to support the CRI standards . Docker was build way before CRI was introduced and Docker still was the dominant container tool used by most so Kubernetes had to continue to support docker as well . Therefore kubernetes in...