I have created a hashicorp vault deployment and configured kubernetes auth. The vault container calls kubernetes api internally from the pod to do k8s authentication, and that c
Finally I have figured out what went wrong:
my payload.json content was wrong
it should be like this:
{
"kubernetes_host": "https://kubernetes",
"kubernetes_ca_cert":
}
Now below endpoint is working fine and returning the desire client_token
curl --request POST --data @payload2.json http://127.0.0.1:8200/v1/auth/kubernetes/login
Thanks @John for helping me to figure out the initial issue with kubernetes_host.