Reputation: 23614
I have followed basic Knative setup recomended by official
So now i have:
After that I have simple python script on top of Flask to listen POST method and access external url like http://example.com
Current observation:
curl -X POST -H "host..." http:/127.0.0.1" -H "Content-Type: application/json" -d '{"url":"http://192.168.1.1"}'
http://example.com
curl -X POST -H "host..." http:/127.0.0.1" -H "Content-Type: application/json" -d '{"url":"http://example.com"}'
:Failed to fetch URL: HTTPConnectionPool(host='example.com', port=80): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7fe471b0a900>: Failed to resolve 'example.com' ([Errno -5] Name has no usable address)"))"
What I have already tried to do:
metadata:
annotations:
features.knative.dev/http-full-duplex: "Enabled"
Upvotes: 0
Views: 12