Minikube

Using minikube to run Jenkins X on your laptop

This guide will walk you though how to setup Jenkins X on your laptop using minikube

Prerequisites

minikube start --cpus 4 --memory 8048 --disk-size=100g --addons=ingress --vm=true

Setup

  • Create Git Repository to store the GitOps configuration of Jenkins X and the apps you want to deploy

  • git clone the new repository and cd into the git clone directory

  • configure the ingress.domain to point to your $(minikube ip).nip.io:

export DOMAIN="$(minikube ip).nip.io"
jx gitops requirements edit --domain $DOMAIN
  • the ingress.domain in jx-requirements.yml should now be configured to the value of $DOMAIN

  • to enable webhooks you need to install and setup ngrok

  • setup a webhook tunnel to your laptop:

ngrok http 8080
  • copy your personal ngrok domain name of the form abcdef1234.ngrok.io into the charts/jenkins-x/jxboot-helmfile-resources/values.yaml file in the ingress.customHosts.hosts file so that your file looks like this…
ingress:
  customHosts:
    hook: "abcdef1234.ngrok.io"
...
  • git add, commit and push your changes:
git add *
git commit -a -m "fix: configurations for local minikube"
git push origin master 
kubectl port-forward svc/hook 8080:80

Last modified September 21, 2020: release 0.0.1895 (3145738)