All the pre-reqs for using Kubectl to authenticate against an AWS EKS cluster with an IAM user.
394
Kubectl for AWS EKS requires non-trival set up, especially for WIndows hosts. This image strives to make that easier.
With kubectl, aws cli and heptio authenticator already installed, this image provides an easy starting point for authenticating against an AWS EKS cluster using IAM credentials with Kubectl.
Provide the image with a AWS credentials file and a kube config file by mapping directories containing an 'credentials' and 'confing' files to the container at run time. The image will look for the AWS credentials file in /root/.aws/, and the kubeconfig file in /root/.kube/. Start the image with a command like: docker run -v ~/.aws:/root/.aws -v ~/.kube:/root/.kube awsEksKubectl get pods
This will map your aws credentials file and kubeconfig file into the container, and allow you to executing kubectl (the entrypoint) using them both. Just make sure that the profile referenced in the kubeconfig file matches the name of the profile in the aws credentials file.
Content type
Image
Digest
Size
224.8 MB
Last updated
about 8 years ago
docker pull danbudris/aws_eks_kubectl