Minikube

Setup Jenkins X on your laptop

NOTE

Ensure you are logged into GitHub else you will get a 404 error when clicking the links below

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

Prerequisites

NOTE:- User of windows 10 home (Hyper-V not supported). To install Minikube consider Docker as driver(docker should be pre-installed) instead of virtualBox driver. Use command “minikube start –driver=docker”.

  • You need to create a minikube cluster via the following command:
minikube start --cpus 4 --memory 8048 --disk-size=100g --addons=ingress --vm=true

Setup

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
jx ns jx
  • once Jenkins X is installed run the following command to enable webhooks via ngrok
kubectl port-forward svc/hook 8080:80


Last modified November 24, 2020: fix: use consistent links (e57cb94b10)