This is a convenient docker image that contains:
The default entrypoint for this container, is a small wrapper script for kubectl that automatically populates a ~/.kube/config with the correct EKS cluster details (endpoint, certificate authority).
You can provide AWS credentials directly by providing environment variables to docker and passing the cluster name
docker run -e CLUSTER=demo -e AWS_DEFAULT_REGION=<REGION> \
-e AWS_ACCESS_KEY_ID=<ACCESS_KEY_ID> -e AWS_SECRET_ACCESS_KEY=<SECRET_KEY> \
fernandorejonbarrera/eks-kubectl:v1.0.0 kubectl get pods
In case the container is running in k8s and you're using a serviceAccount for the pod, then you don't need to pass the CLUSTER env variable nor the AWS secrets.
Content type
Image
Digest
Size
97 MB
Last updated
over 6 years ago
docker pull fernandorejonbarrera/eks-kubectl