Jenkins/Kube/Helm demo for Index 2018
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
hello
Dockerfile
Jenkinsfile
README.md
main.go
overrides.yaml

README.md

Jenkins/Kube/Helm demo for Index 2018

The accompanying presentation can be found on SlideShare.

Pre-reqs

brew cask install minikube
minikube start
minikube addons enable ingress
minikube addons enable registry
brew install kubectl
brew install kubernetes-helm

Set up Helm

helm init --wait

Deploy Jenkins

helm install --name cd -f overrides.yaml stable/jenkins
printf $(kubectl get secret --namespace default cd-jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo
minikube service cd-jenkins

Deploy app

  1. Create a pipline job with a fork of this repository as the Git source for the pipeline.
  2. Clicking Build now will push an image to the registry.
  3. Run helm create hello and modify values.yaml to enable ingress and provide a hostname (hello.192.168.99.100.nip.io).
  4. Uncomment the helm container and deploy stages in Jenkinsfile.
  5. Push changes and re-build.