This is an reference project that aims to explains how to run a Jenkins cluster in K8s.
PVC in this project is created for Kubernetes provided by Docker for Mac. This can be use in minikube as well. Please change the hostPath in the jenkins-pv.yaml.
apiVersion: v1
kind: PersistentVolume
metadata:
name: jenkins-volume
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "<your host path>"
https://medium.com/faun/how-to-setup-scalable-jenkins-on-kubernetes-f5c1b7d439cd https://www.youtube.com/watch?v=768SxaFkvQ4
https://hub.docker.com/repository/docker/keaz/jenkins-master
https://hub.docker.com/repository/docker/keaz/jenkins-slave
New Jenkins master image keaz/jenkins-master:alpine
New Jenkins slave image keaz/jenkins-slave:slim