Minikube
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
-
Create the cluster Git Repository based on the jx3-gitops-repositories/jx3-minikube template
-
git clone
the new repository andcd
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
injx-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 thecharts/jenkins-x/jxboot-helmfile-resources/values.yaml
file in theingress.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
-
switch to the
jx
namespace
jx ns jx
- once Jenkins X is installed run the following command to enable webhooks via
ngrok
kubectl port-forward svc/hook 8080:80
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.