This isn’t the ip of my ingress-controller. This is the ip of my VM hosting the NGINX configuration that is behind Rancher.
This was effectively trusted_domains
. But I’ve tried with the following snippets too without any success:
'trusted_domains' =>
array (
0 => 'mydomain.com',
1 => '<load balancer ip>',
2 => '127.0.0.1',
3 => '10.42.2.184', // = Pod IP
4 => '<ip node1>',
5 => '<ip node2>',
6 => '<ip node3>'
),
'trusted_proxies' =>
array (
0 => 'mydomain.com',
1 => '<load balancer ip>',
2 => '127.0.0.1',
3 => '10.42.2.184', // = Pod IP
4 => '<ip node1>',
5 => '<ip node2>',
6 => '<ip node3>'
)
Do you have any tips on how I could add this to my nginx-controller ?
I’m new to Kubernetes and as far as I know the config file is generated by following ingress rules ?
Thanks for your help.