Lightweight, Versioned eksctl CLI Container for Seamless Amazon EKS Cluster Management
457
Lightweight, Versioned eksctl CLI Container for Seamless Amazon EKS Cluster Management
The source code for this image can be found in the kubernetes repository.
The Dockerfile is located in the dockerfiles/k8s-tools/eksctl directory.
The image is built using a multi-stage build process, ensuring a minimal footprint and secure.
This repository provides a Docker image under the anvesh35/eksctl-cli namespace that packages the eksctl CLI into a lightweight, self-contained container. This allows users to manage Amazon EKS clusters without installing the eksctl CLI locally. The image is built using a multi-stage build process on Alpine Linux, ensuring a minimal footprint and secure execution.
All images are hosted on Docker Hub under the anvesh35/eksctl-cli repository.
Tags follow the pattern <version>, for example v0.150.0, to indicate the eksctl CLI version included in the image.
git clone https://github.com/anveshmuppeda/kubernetes.git
cd dockerfiles/k8s-tools/eksctl
Replace <version> with the desired eksctl CLI version (e.g., v0.150.0):
docker build \
--build-arg EKSCTL_VERSION=<version> \
-t anvesh35/eksctl-cli:<version> .
Example:
docker build \
--build-arg EKSCTL_VERSION=v0.150.0 \
-t anvesh35/eksctl-cli:v0.150.0 .
To use the pre-built image from Docker Hub, pull it using:
docker pull anvesh35/eksctl-cli:<version>
Example:
docker pull anvesh35/eksctl-cli:v0.150.0
Run the container interactively with your kubeconfig mounted for cluster access:
docker run --rm -it \
--network host \
-v $HOME/.kube/config:/home/eksctl/.kube/config:ro \
anvesh35/eksctl-cli:<version> bash
This opens a Bash shell with the eksctl CLI installed and ready to use.
Run eksctl commands directly without entering the container:
docker run --rm \
--network host \
-v $HOME/.kube/config:/home/eksctl/.kube/config:ro \
anvesh35/eksctl-cli:<version> \
eksctl get cluster
eksctl user to adhere to container security best practices.v0.150.0).docker run --rm \
anvesh35/eksctl-cli:v0.150.0 \
eksctl version
docker run --rm \
--network host \
-v $HOME/.kube/config:/home/eksctl/.kube/config:ro \
anvesh35/eksctl-cli:v0.150.0 \
eksctl get cluster
Contributions are welcome via GitHub pull requests. Please follow multi-stage build patterns, use semantic versioning for new tool images, and adhere to lowercase, hyphenated naming conventions.
This project is licensed under the MIT License. See the LICENSE file for details.
Content type
Image
Digest
sha256:c5d708675…
Size
67.2 MB
Last updated
over 1 year ago
docker pull anvesh35/eksctl-cli