Skip to content

Latest commit

 

History

History

k8s-ingress-auth-basic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Setup Minikube

minikube start --addons=ingress,ingress-dns
kubectl get pods -n ingress-nginx

Setup Application

skaffold dev

Tunnel for testing

minikube tunnel
# Check terminal during testing - it may require some actions/confirmations

Test

curl -m 3 --resolve "application-ingress.info:80:127.0.0.1" -i http://application-ingress.info/hello
curl -m 3 --resolve "application-ingress.info:80:127.0.0.1" -i http://application-ingress.info/hello -u 'username:password'

Generate secret for basic auth

htpasswd -nb 'username' 'password' | base64

Links

Kubernetes Basic Auth