本文介绍了Kubernetes的多个秘密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在同一秘密卷中为kubernetes pod蓝图安装多个秘密,但不接受.
I'm trying to mount several secrets in the same secret-volume for a kubernetes pod blueprint, but it's not accepted.
尝试过,无法创建:
"spec": {
"volumes": [
{
"name": "secret-volume",
"secret": [
{ "secretName": "secret1" },
{ "secretName": "secret2" },
{ "secretName": "secret3" }
]
}
就像这样,它将覆盖它们:
Like this it will just override them:
"volumes": [
{
"name": "secret-volume",
"secret": { "secretName": "secret1" },
"secret": { "secretName": "secret2" },
"secret": { "secretName": "secret3" }
}
]
有什么方法可以在同一卷中装入机密列表吗?还是目前只有1个秘密/卷?
Is there any way to mount a list of secrets in the same volume ?Or only 1 secret / volume at the moment?
谢谢
推荐答案
每个秘密卷仅允许一个秘密
Only one secret is allowed per secret volume
这篇关于Kubernetes的多个秘密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!