eks-helm-client
Multi-arch EKS Helm client with kubectl, helm, and aws-iam-authenticator
10K+
The Docker EKS Helm Client Agent is a specialized Docker image that acts as a Helm client, allowing you to install and upgrade Helm charts in AWS EKS clusters — enabling seamless management of Kubernetes deployments. It provides a convenient, portable solution for interacting with Helm charts without the need to install Helm, kubectl, or the AWS CLI on your local machine or CI/CD pipelines.
On startup, the container automatically configures kubectl by fetching your EKS cluster's CA certificate and endpoint via the AWS CLI, then generating a kubeconfig. Your commands run only after this setup is complete.
| Component | Version |
|---|---|
| Kubernetes (kubectl) | 1.31.3 |
| Helm | 3.16.3 |
| AWS IAM Authenticator | 0.6.28 |
| Base image | alpine:3.20 |
linux/amd64linux/arm64The container requires the following environment variables at runtime:
| Variable | Description |
|---|---|
REGION_CODE | AWS region where your EKS cluster is hosted (e.g. us-east-1) |
CLUSTER_NAME | Name of your EKS cluster |
AWS credentials must also be available to the container. These can be provided via AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY, an IAM instance role, or the aws-actions/configure-aws-credentials GitHub Action.
Note: The container validates
REGION_CODEandCLUSTER_NAMEon startup and will exit immediately if either is missing.
The container entrypoint (entrypoint.sh) performs the following steps automatically before executing your command:
REGION_CODE and CLUSTER_NAME are setaws eks describe-clusteraws eks describe-cluster/opt/kubernetes/config using these valuesYou do not need to run aws eks update-kubeconfig manually — this is handled automatically.
projectoss/eks-helm-client:latest
environment {
AWS_ACCESS_KEY_ID = credentials('aws-access-key')
AWS_SECRET_ACCESS_KEY = credentials('aws-secret-key')
REGION_CODE = "<your-region-code>"
CLUSTER_NAME = "<your-cluster-name>"
}
stage('Deploy Helm Chart') {
agent {
docker {
image 'projectoss/eks-helm-client:latest'
}
}
steps {
// No need to run aws eks update-kubeconfig — entrypoint handles this automatically
sh 'helm repo add bitnami https://charts.bitnami.com/bitnami'
sh 'helm repo update'
sh 'helm install bitnami/mysql --generate-name'
}
}
For more detailed usage instructions, please refer to the Jenkinsfile in this repository.
steps:
- name: Configure AWS Credentials
uses: aws-actions/[email protected]
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: <your-region-code>
- name: Deploy Helm Chart
uses: docker://projectoss/eks-helm-client:latest
env:
REGION_CODE: <your-region-code>
CLUSTER_NAME: <your-cluster-name>
with:
args: >
bash -c "
helm repo add bitnami https://charts.bitnami.com/bitnami;
helm repo update;
helm install bitnami/mysql --generate-name
"
For more detailed usage instructions, please refer to the action.yaml in this repository.
kubectl, uid 1000) for improved security./opt/kubernetes/config, owned by the kubectl user.aws eks get-token via aws-iam-authenticator, configured automatically in the generated kubeconfig.We welcome contributions from the community! To contribute:
Please ensure your code follows the project's coding guidelines and includes appropriate tests for any new functionality.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) 2023 Dinush Chathurya @ Open Source Srilanka
Content type
Image
Digest
sha256:e23624ef4…
Size
101.2 MB
Last updated
4 months ago
docker pull projectoss/eks-helm-client