<p>Good afternoon, colleagues.
Please tell me.
I set up the k8s+vault integration according to the instructions: <a href="https://www.hashicorp.com/blog/injecting-vault-secrets-into-kubernetes-pods-via-a-sidecar" rel="nofollow noreferrer">https://www.hashicorp.com/blog/injecting-vault-secrets-into-kubernetes-pods-via-a-sidecar</a></p>
<p>But I have a test and production Kubernetes cluster and only one Vault.
Is it possible to integrate one Vault with multiple Kubernetes clusters?</p>
<p>Find parameter: authPath: &quot;auth/kubernetes&quot;, mayby for second cluster make:
authPath: &quot;auth/kubernetes2&quot; .. etc</p>

Andrew Kaa
<p>It's possible what needs to be done:</p>
<pre><code>helm install vault hashicorp/vault \
    --set &quot;injector.externalVaultAddr=http://external-vault:8200&quot; --set &quot;authPath=auth/kubernetesnew&quot;

vault auth enable -path kubernetesnew kubernetes
..

vault write auth/kubernetesnew/role/k8s-name-role \
    bound_service_account_names=k8s-vault-sa \
    bound_service_account_namespaces=k8s-vault-namespace \
    ttl=24h
</code></pre>
