DEV Community

Discussion on: Selecting a Kubernetes Serverless Framework

 
mikeyglitz profile image
mikeyGlitz

Probably not the ideal way to protect openfaas, but I managed to set up the gateway using oauth2_proxy as recommended.

Using the helm chart, I had to disable basic authentication and the generation of the authentication password.

I used annotations to configure the ingress routing rules to pass through oauth2_proxy before reaching the openfaas gateway

This setup is demonstrated in the Ansible role I've created within my cluster initialization playbook:
github.com/mikeyGlitz/k3s-home-clu...