Demo project used at Oracle Code One 2018 showing deployment of Jenkins to Kubernetes with Helm and deployment from Jenkins to Kubernetes using Helm. The associated presentation can be found on SlideShare. The Jenkins X demo video is available here.
brew cask install minikube
minikube start
minikube addons enable registry
brew install kubectl
brew install kubernetes-helm
helm init --wait
The demo.yaml
overrides contain some settings designed to increase the speed of startup for demonstration purposes. They don't necessarily reflect what you should do in a production scenario!
helm install --name cd -f demo.yaml stable/jenkins
printf $(kubectl get secret --namespace default cd-jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo
minikube service cd-jenkins
- Create a pipeline job with a fork of this repository as the Git source for the pipeline.
- Clicking Build now will push an image to the registry.
- Run
helm create hello
. - Modify
service.type
inhello/values.yaml
fromClusterIP
toNodePort
. - Replace
Jenkinsfile
withJenkinsfile.cd
. - Push changes and re-build.