Closed sammym1982 closed 3 years ago
That blog is indeed outdated and I’ll see what I can do about a warning sign or updates. I’m the meantime. If you went and checked out the latest ingress (1.7.1) modified the Dockerfile so it uses R22 instead of R21 (I think 1.8 will use R22). You could use this unofficial ansible role to create the nginx-config.yaml you would need. Look at the readme for example variables.
I plan to make this more polished for kic 1.8 when released but this is not an official nginx role, all it does is convert the files here into useable files for nginx ingress to use. You can use multiple idps and please let me know feedback. I’ve been updating it quite regularly.
Thanks for trying this out. If you want to modify this manually I’d suggest running this role once and looking at the output files. Then just make your changes manually afterwards.
You still need the idp information and you’ll need to make a nginx plus ingress image that uses R22 (this will not working on earlier versions) and the njs module (the blog goes through that step). Also note the install from manifests have changed with some files so make sure you checkout 1.7.1 and use those from kubernetes-ingress
Galaxy: https://galaxy.ansible.com/magicalyak/ansible_role_nginx_ingress_oidc GitHub: https://github.com/magicalyak/ansible-role-nginx-ingress-oidc
If you haven’t used ansible you just need to install ansible on the machine you want to generate the yaml files on (I usually use the same machine I run kubectl on).
N.B. This is an unofficial role for testing purposes. The goal is to make this more useful and include in an updated blog.
@sammym1982 the ansible role should be valid now if you want to try.
Closing due to inactivity. Please reopen if any more questions arise
I am trying out this module by following tutorial and ran into several issues which indicates either this tutorial is out of date or there are issues with this module. https://www.nginx.com/blog/nginx-plus-ingress-controller-for-kubernetes-openid-connect-azure-ad/
I gave up after error 3 to confirm if I am doing something very wrong. Followed tutorial as is (with some changes as it looks there are changes in kubectl config files). We are currently evaluating this module and running in several issues getting this off the ground :(
Error 1:
Commented to resolve https://github.com/nginxinc/nginx-openid-connect/blob/9ca73aea7c0401b5e63572d5a0cbea35111880c5/openid_connect.server_conf#L3
Error 2:
Commented to resolve https://github.com/nginxinc/nginx-openid-connect/blob/9ca73aea7c0401b5e63572d5a0cbea35111880c5/openid_connect.server_conf#L4
Error 3:
looks now issue at https://github.com/nginxinc/nginx-openid-connect/blob/9ca73aea7c0401b5e63572d5a0cbea35111880c5/openid_connect.js#L8