Running Jenkins in Kubernetes (AWS)¶
Installing Jenkins CI in Kubernests and building containers with Kaniko
Prerequsites¶
- Virtual Machine running Ubuntu 22.04 or newer
Update Package Repository and Upgrade Packages¶
Create Kubernetes Cluster¶
Run from shell prompt | |
---|---|
Installs Jenkins¶
Install helm chart and update repo
Create Namespace¶
Download YAML files¶
Run from shell prompt
wget https://raw.githubusercontent.com/dmancloud/jenkins-kubernetes-kaniko/main/jenkins-sa.yaml
wget https://raw.githubusercontent.com/dmancloud/jenkins-kubernetes-kaniko/main/jenkins-volume.yaml
wget https://raw.githubusercontent.com/dmancloud/jenkins-kubernetes-kaniko/main/values.yaml
Create a secret for Dockerhub¶
Run from shell prompt
kubectl create secret docker-registry docker-credentials --docker-username=[userid] --docker-password=[Docker Hub access token] --docker-email=[user email address] --namespace jenkins