Install Minikube and Kubernetes CLI:
brew cask install minikube
brew install kubernetes-cli
I chose HyperKit as the hypervisor:
brew install hyperkit
minikube config set vm-driver hyperkit
- Make sure to set it as the default driver otherwise it will fail with something like:
Retriable failure: create: precreate: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
Run Minikube and set Docker environment variables:
minikube start --cpus 4 --memory 8192 --vm-driver=hyperkit
eval $(minikube docker-env)
- Note the
--vm-driver=hyperkitoption. - Alternatively use .bashrc and run
bigkube.
Installing Helm:
brew install kubernetes-helm
Configuring Tiller:
TILLER_NAMESPACE=kube-system
kubectl create serviceaccount --namespace $TILLER_NAMESPACE tiller
kubectl create clusterrolebinding $TILLER_NAMESPACE:tiller --clusterrole=cluster-admin --serviceaccount=$TILLER_NAMESPACE:tiller
Installing Tiller fails on K8 1.16 due to helm/helm#6374 so use this workaround:
helm init --wait --service-account tiller --tiller-namespace=$TILLER_NAMESPACE \
--override spec.selector.matchLabels.'name'='tiller',spec.selector.matchLabels.'app'='helm' --output yaml | \
sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@' | \
kubectl apply -f -
- This adds the selector and replaces
extensions/v1beta1withapps/v1.
Verify Helm:
helm version
- The versions should match.
Do the cred dance ($HOME/.lightbend/commercial.credentials):
realm = Bintray
host = dl.bintray.com
user = <userid>
password = <token>
Download the install script:
curl -O https://raw.githubusercontent.com/lightbend/console-charts/master/enterprise-suite/scripts/lbc.py
chmod u+x lbc.py
Create the lightbend namespace:
kubectl create namespace lightbend
The install script will fail since the config also uses apiVersion of apps/v1beta2.
We have to tweak the config and install manually.
Manually install the creds:
./lbc.py install --namespace=lightbend --version=1.2.2 --export-yaml=creds | \
kubectl --namespace=lightbend apply -f -
Export the config, modify, then apply:
./lbc.py install --namespace=lightbend --version=1.2.2 --export-yaml=console --set minikube=true | \
sed 's@apps/v1beta2@apps/v1@' | \
kubectl --namespace=lightbend apply -f -
Now wait a little bit and run:
./lbc.py verify --namespace=lightbend