Error with https login url with vault auto-auth agent

Following this on production:

The only difference is i put https url in place of http for login url for env variable VAULT_ADDR that is passed in initContainer definition.
Getting below error:

error authenticating: error="Put “https://<>:32523/v1/auth/kubernetes/login”: x509: certificate signed by unknown authority"

Probably i did not configured https at all.
Please provide inputs to do that.

Kubernetes API often uses a self signed certificate. Give it to Vault using the parameter kubernetes_ca_cert.

1 Like