Running fabric8 in Minikube

What I learned today — 20 February 2018

Niel de Wet
1 min readFeb 20, 2018

BLOCKED BY #1185

In this post I’ll describe how to get fabric8 up and running in Minikube. These instructions apply to fabric8 v0.4.176 and expand the official getStarted documentation.

gofabric8

gofabric8 is the CLI tool for interacting with fabric8. Install it with:

curl -sS https://get.fabric8.io/download.txt | bash

add the binary to your $PATH so you can execute it:

echo 'export PATH=$PATH:~/.fabric8/bin' >> ~/.bashrc
source ~/.bashrc

Minikube

Next, I’ll give some more detailed instructions to deploy fabric8 on Minikube.

# Launch Minikube
minikube start --disk-size=60g --memory=8000
# Enable ingress
minikube addons enable ingress

GitHub OAuth App

Next, set up a GitHub OAuth App. Follow the official instructions, but with the following exceptions:

First, get your Minikube IP address. Run minikube ip.

Replace the IP address in the “Authorization callback URL”:

http://keycloak.fabric8.192.168.99.100.nip.io/auth/realms/fabric8/broker/github/endpoint 

Note, in the above keycloak-fabric8 was replaced with keycloak.fabric8. This corresponds to the ingress that will be created in the next step.

Likewise, the “homepage URL” is:

http://fabric8.fabric8.192.168.99.100.nip.io

Once you have created the OAuth application for fabric8 in your github settings and found your client ID and secret then set the env vars below replacing the values:

export GITHUB_OAUTH_CLIENT_ID=123
export GITHUB_OAUTH_CLIENT_SECRET=123abc

In case you’re wondering, this setup relies on NIP.IO

Deploy fabric8

gofabric8 start --package=system  --namespace fabric8

--

--

No responses yet