projectodd / openwhisk-openshift

Resources necessary for running OpenWhisk on OpenShift
Apache License 2.0
45 stars 26 forks source link

Nginx not resolving urls to controller #6

Closed shgriffi closed 6 years ago

shgriffi commented 6 years ago

I had an issue in my environment where nginx didn't seem to be resolving calls to the controller. Finally we got it working by changing the nginx config map from

sed -i "s//${KUBERNETES_SERVICE_HOST}/" /tmp/nginx.conf

to

sed -i "s//$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}')/" /tmp/nginx.conf

Should we make this a permanent fix?

shgriffi commented 6 years ago

Hi guys. Any idea on when this can be fixed? I ran into the issue yet again while doing a deployment.

bbrowning commented 6 years ago

Thanks for the reminder! We need to test this change with our templates and ensure it works in our test environments as well. If so, we can get this added by default.

shgriffi commented 6 years ago

Ok great, thanks!