https://github.com/guysoft/jenkins-eks-docker
Jenkins with eks kubectl ability on aws
https://github.com/guysoft/jenkins-eks-docker
Last synced: about 1 month ago
JSON representation
Jenkins with eks kubectl ability on aws
- Host: GitHub
- URL: https://github.com/guysoft/jenkins-eks-docker
- Owner: guysoft
- License: gpl-3.0
- Created: 2019-11-18T12:12:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-09-27T20:59:00.000Z (8 months ago)
- Last Synced: 2025-09-27T22:24:36.129Z (8 months ago)
- Language: Dockerfile
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jenkins-eks-docker
Jenkins with eks kubectl and support [AWS EKS](https://aws.amazon.com/eks/)
[DockerHub](https://hub.docker.com/r/guysoft/jenkins-eks)
# Example usage in kubernetes
1. Edit the [``stable/jenkins`` values.yaml](https://github.com/helm/charts/blob/master/stable/jenkins/values.yaml) helm chart to mount your aws credentials and kubectl from an EFS share or EBS. ANd use this image:
eg for NFS:
```
master:
image: "guysoft/jenkins-eks"
agent:
volumes:
- name: kubectl
nfs:
server: XXXXX.amazonaws.com
path: /deployment_path/kobectl
mountPath: /var/jenkins_home/.kube
- name: aws-cred
nfs:
server: XXXXX.efs.us-east-1.amazonaws.com
path: /deployment_path/aws
mountPath: /var/jenkins_home/.aws/
```
2. Install the release by running:
```
helm install stable/jenkins -f values.yaml --name jenkins
```
3. now kubectl should work from your jenkins master executor within kubernetes
# Run stuff from pods
You can use the provided ``get_random_pod`` to run something from a random pod that has a name label ``app.kubernetes.io/name``.
In jenkins you can use a command:
```
$ kubectl exec $(get_random_pod nginx) hostname
nginx-7846666659-xt5g4
```