Pre-Requisite:
- Minikube needs ingress enabled with
minikube addons enable ingress
-
Build image with
docker build -t coalmine .
-
Use
kubectl apply -f coalmine.yaml
to deploy it on local k8s. -
Use
kubectl get ingress
to check if k8s has allocated IP to ingress, it takes ~30s. -
Put an entry in hosts file for
coalmine.local
pointing to ip from last step -
Use
curl -v -X GET -u canaryuser:password coalmine.local
to make request.For all basic auth users other than ones starting with
canary
, return value will have value for keycanary
set to false.