Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
373 views
in Technique[技术] by (71.8m points)

docker - I want to send a request from my web app to an internal k8s cluster

i'm facing a problem with a request flutter in internal cluster kube. in my container flutter web, i try to call an api with this endpoint my-service.my-namespace.cluster.local/routes/test But whene i do my request the code below does auto-format the url this way : http://my-service.my-namespace.cluster.local/routes/test or ://my-service.my-namespace.cluster.local/routes/test

var response = await http.post(
        request.url,
        headers: header,
        body: request.body,
      );

container nginx with default config.

my goal is to call clusters internally , calls works well in external . any solution would be appreciated .

question from:https://stackoverflow.com/questions/65918898/i-want-to-send-a-request-from-my-web-app-to-an-internal-k8s-cluster

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...