Manu Rastogi
Manu Rastogi

Reputation: 188

Azure-AKS: Test TLS enabled Ingress using Postman

I am referring to following document to create an HTTPS ingress controller( use my own TLS certificates ).
I can't understand how do I test the below curl request from the POSTMAN.

curl -v -k --resolve demo.azure.com:443:EXTERNAL_IP https://demo.azure.com

Upvotes: 0

Views: 318

Answers (1)

Dawid Kruk
Dawid Kruk

Reputation: 9877

Posting this answer as a community wiki to give more visibility on the github issue in the comments as well as potential workarounds.

Feel free to expand/edit it.


As pointed in the github issue:

I'm looking for being able to send a GET request to a specific host, other than the hostname specified in the request. To use a quick example - assume www.mysite.com resolves to 1.1.1.1; I'd like for the GET www.mysite.com to be sent to 2.2.2.2 instead, without having to modify the hosts file. In effect, I'm looking for the same outcome when using curl --resolve. Is this possible with Postman ?


Custom resolution is not supported at the moment. We'll track this as a feature request and post any updates here.

As it can be seen this feature is not yet supported.

As a workaround measure you could try to (as pointed in the github issue):

  • Modify the hosts file of your operating system (depending on your os it could be either: /etc/hosts or C:\Windows\System32\Drivers\etc\hosts) to set the domain resolution to the external ip address of your Ingress controller
EXTERNAL_IP DOMAIN.NAME
  • Use Postman to send the request to the DOMAIN.NAME and check if your Ingress controller respond with the self-signed certificate.

Additional resources:

Upvotes: 2

Related Questions