Skip to content

blindhog/aws-kubectl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

eks-kubctl

The purpose of the eks-kubectl repo is to create a docker container for kubctl to manage k8s clusters in EKS for multiple environments.

Documentation References

Amazon Install kubectl documentation

Amazon Install eksctl documentation

Amazon Install AWS CLI documentation

Build Docker Images

  1. Navigate to the amd64 or arm64 directory according to your CPU architecture.
    cd $(uname -m)
    
  2. Use the following docker command to build the eks docker container
    docker build -t aws-kubectl:latest .
    
  3. Use the following docker command to run the eks docker container.
    docker run --rm -it -v ~/.aws:/root/.aws aws-kubectl:latest bash
    
  4. Configure aws cli. Enter your Access key ID and Secret Access Key
    aws configure
    
    Sample:
    root@9773b5acae26:/# aws configure
    AWS Access Key ID [****************7DV5]: 
    AWS Secret Access Key [****************izi3]: 
    Default region name [us-east-2]: 
    Default output format [json]: 
    
  5. Update k8s config
    aws eks update-kubeconfig --name ClusterName
    
  6. Run kubectl commands
    kubectl get pods --all-namespaces
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published