minikube start \
--driver=virtualbox \
--cpus 4 \
--memory 8192
Recomended: 8 CPU and 30 GB RAM (for demo we are going to use minimal setup) Note: Other drivers are listed here https://minikube.sigs.k8s.io/docs/drivers/ Some times your pods will not be able start due to permission issue when using other drivers.
minikube addons enable ingress
minikube addons enable dashboard
Read more: https://minikube.sigs.k8s.io/docs/commands/addons/
helm repo add gitlab https://charts.gitlab.io/
helm repo update
helm upgrade --install gitlab gitlab/gitlab \
--timeout 600s \
--set global.hosts.domain=$(minikube ip).nip.io \
--set global.hosts.externalIP=$(minikube ip) \
-f https://gitlab.com/gitlab-org/charts/gitlab/raw/master/examples/values-minikube-minimum.yaml
kubectl get pods -w
note: till all the pods are not up and running, you won't be able to access the private gitlab. Sometimes it takes 15-20 mins and you might see some failures as well, its ok wait for some time.
minikube ip
and open something like below in a browser
https://gitlab.192.168.99.100.nip.io/
git clone https://gitlab.192.168.99.100.nip.io/root/helm-demo.git
kubectl get secret gitlab-gitlab-initial-root-password -ojsonpath='{.data.password}' | base64 --decode ; echo
Source: https://docs.gitlab.com/charts/development/minikube/