Vault join won't work in Kubernetes

I am setting up Vault on raft storage backend in Kubernetes with the Helm chart. It stands up 3 nodes in the statefulset and I can successfully unseal the vault. However, when I run the join command to join the other two pods to the raft cluster, I am receiving this error. Why is it looking to 127.0.0.1 instead of the address I specify?

Error joining the node to the Raft cluster: Error making API request.

URL: POST http://127.0.0.1:8200/v1/sys/storage/raft/join
Code: 500. Errors:

* failed to join raft cluster: failed to join any raft leader node
global:
  enabled: true
server:
  extraLabels:
    app: vault
    version: 1.8.0
  dataStorage:
    enabled: true
    storageClass: px-ha-db
  ha:
    enabled: true
    replicas: 3
    raft:
      enabled: true
ui:
  enabled: true

Take a look at my previous post from earlier today. I had similar problems, but I managed to get it working. I also posted my complete helm values file as well as a few commands.

It’s late here, so I’ll see if I can help you tomorrow at some point :slight_smile: meanwhile take a look at my values file and see if you’re missing something… perhaps something wrong with your listener or VAULT_ADDR etc.