110.10 b

Description: I have a managed cluster that I use on AWS called eks. It goes into depth, but in a nutshell, it has the advantage of making it easy to create clusters. It also allows for some level of management via YAML. However, you have to be careful with using the eksctl commands and dedicated commands, so you need to know how to use them properly. One of the advantages is strict permissions management and easy compatibility with AWS resources.

#100#Infra#110#DevOps_Engineer_Infra#110.10#Kubernetes#110.10 b#eksctl_commands

Install Kubectl

# Download kubectl
    - echo "Downloading and installing kubectl version ${KUBECTL_VERSION}..."
    - curl -O https://s3.us-west-2.amazonaws.com/amazon-eks/${KUBECTL_VERSION}/2024-01-04/bin/linux/amd64/kubectl
    - chmod +x ./kubectl
    - mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$HOME/bin:$PATH
    - echo "Cheking kubectl successfully installed"
    - kubectl version --client

Install eksctl

# Download ekscxtl
    - echo "Download start eksctl"
    - ARCH=amd64
    - PLATFORM=$(uname -s)_$ARCH
    - curl -sLO "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_$PLATFORM.tar.gz"
    - tar -xzf eksctl_$PLATFORM.tar.gz -C /tmp && rm eksctl_$PLATFORM.tar.gz
    - mv /tmp/eksctl /usr/local/bin
    - echo "Checking eksctl successfully installed"
    - eksctl info

get kubeconfig from existing EKS Cluster
aws eks --region ap-northeast-2 update-kubeconfig --name <my-cluster>