Issue i am facing is, vault-agent-init sidecar container managed to be injected but its never in a “ready” state. from the vault-agent-init logs, i can see it’s having difficulty communicating to Vault server.
I am having the EXACT same problem. I’m working through the same tutorial and get stuck at the same spot, although I’m not using minicube but rather a fresh 5-node (3x master, 2x worker) k3s cluster.
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
orgchart-7457f8489d-w5xwc 1/1 Running 0 4m55s
orgchart-798cbc6c76-xxc8t 0/2 Init:0/1 0 3m59s
vault-0 1/1 Running 0 8m47s
vault-agent-injector-6f87dd499-qswnt 1/1 Running 0 8m47s
The log output from the vault-agent-init container also has the below error
The problem was that I had two instances of Vault in my cluster (not minikube). Each Vault injector uses a mutating webhook, which is a cluster level resource. So the webhook for the first instance was interfering with the webhook of my new instance.
I found the problem by adding the following annotation and seeing in the logs that the Vault Address was for the wrong namespace.
vault.hashicorp.com/log-level: "debug"
I temporarily resolved the issue by deleting the first webhook.
I am getting this erro when I try this on vault-0 container.
Error writing data to auth/kubernetes/config: Error making API request.
URL: PUT http://127.0.0.1:8200/v1/auth/kubernetes/config
Code: 400. Errors:
* missing client token
Hi Prashant, I have done as it is the getting started guide, but same issue. I tried on azure kubernetes and also on kind.You could try on kind and check
This works but i guess we do not need issuer. only kubernetes_host, token_reviewer_jwt, kubernetes_ca_cert and disable_iss_validation needs to be provided.