Container running Jenkins.
See github.com - mborne/docker-jenkins
- Read k8s-install.sh and run :
# To get jenkins on http://jenkins.dev.localhost
bash k8s-install.sh
# To get jenkins on http://jenkins.example.net
DEVBOX_HOSTNAME=example.net bash k8s-install.sh
-
Wait for pod to be ready :
kubectl -n jenkins get pod -w
-
Follow helm instruction to get your 'admin' user password :
kubectl exec --namespace jenkins -it svc/jenkins -c jenkins -- /bin/cat /run/secrets/additional/chart-admin-password && echo
- Install and configure Kubernetes cloud plugin :
- Kubernetes URL : https://kubernetes.default.svc.cluster.local
- Jenkins URL : http://jenkins.jenkins.svc.cluster.local:8080
- See samples Jenkinsfile :
- Jenkins deployment with Kustomize
- www.jenkins.io - Installing / Kubernetes for helm instructions
- devopscube.com - How to Setup Jenkins Build Agents on Kubernetes Pods
- jpetazzo.github.io - Using Docker-in-Docker for your CI or testing environment? Think twice.
- akomljen.com - Set Up a Jenkins CI/CD Pipeline with Kubernetes
- itnext.io - Jenkins + k8s: Building Docker Image without Docker