View on GitHub

docker-devbox

[DEV] Docker stacks to quickly setup a dev environment and test some tools.

Headlamp

Container running Headlamp, the “user-friendly Kubernetes UI focused on extensibility”.

Usage with Kubernetes

WARNING : A ServiceAccount named “admin-user” will be created in the headlamp namespace.

bash headlamp/k8s-install.sh
kubectl -n headlamp create token admin-user

Headlamp with OIDC

See Kubernetes with OIDC authentification if you are an OIDC / RBAC begginer.

See Headlamp to create a client :

Read headlamp/helm/values.sh and use the corresponding environments values :

# Adapt to use your Keycloak or DEX instance
export HEADLAMP_OIDC_ISSUER_URL=https://keycloak.example.com/realms/master

# WARNING : ensure that audience is consistent with OIDC_CLIENT_ID
# (I shamefully spent hours on this!)
export HEADLAMP_OIDC_CLIENT_ID=headlamp
export HEADLAMP_OIDC_CLIENT_SECRET=XXXXXXXXXXXXXXXXXXXXXX

# preview helm values
bash headlamp/helm/values.sh

# deploy
bash headlamp/k8s-install.sh

Resources

# first add our custom repo to your local helm repositories
helm repo add headlamp https://kubernetes-sigs.github.io/headlamp/

# now you should be able to install headlamp via helm
helm install my-headlamp headlamp/headlamp --namespace kube-system
config:
  oidc:
    clientID: "<YOUR-CLIENT-ID>"
    clientSecret: "<YOUR-CLIENT-SECRET>"
    issuerURL: "<YOUR-DEX-URL>"
    scopes: "email"