我正在尝试使用 HashiCorp Vault。我看到在整个变异过程完成后,我的 screts 在我的应用程序 pod 中的路径 /vault/secrets 处结束。
但我希望我的 secret 位于不同的位置。我尝试直接在 YAML 中更改卷挂载,但没有成功。
请推荐。
最佳答案
您需要在 Kubernetes list 中添加注释:
annotations:
vault.hashicorp.com/secret-volume-path: "wherever/you/want"
Vault 文档中对此进行了描述: https://www.vaultproject.io/docs/platform/k8s/injector/annotations#vault-hashicorp-com-secret-volume-path
关于kubernetes - 如何更改我的 secret 在应用程序 pod 中结束的路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62926910/