john chen
john chen

Reputation: 85

How to curl ingress in Kubernetes

If host is * in ingress resource, how do I curl path? use Nginx Ingress Controller

curl -kL <ingress-ip>/path
curl -kL <controller-service-ip>/path
curl -kL <node-ip>/path
Is only curl -kL /path possible?

Upvotes: 0

Views: 898

Answers (1)

Petter Nordlander
Petter Nordlander

Reputation: 22279

You have not told what Ingress implementation you are using. Some ingress services even run outside of Kubernetes so there is no generic answer except running kubectl describe ingress <my-ingress> then curl whatever address it shows.

Upvotes: 2

Related Questions