Can vault-helm postStart script only be executed in vault-0 pod?

I have a postStart script that runs
vault operator init and vault operator unseal but the behavior is that each pod goes through this process. Can I limit it to just vault-0 pod executes this script, so that the other pods can join the raft cluster after the initial init and unseal?

Is there any good examples of post vault automation?

I have this same question. I can’t even get my postStart script to run. I’d love to know how this functions in relation to several pods in a replicaset.

Just saw this reply.

I ended up creating a CronJob which execs into vault-0 and runs the script. That was the workaround for me.