【发布时间】:2019-10-31 17:24:16
【问题描述】:
如何在不使用持久卷 (PV) 的情况下在 openshift 中部署 hashcorp vault?
在openshift集群中作为普通用户(不是集群管理员),需要部署vault server。我关注了URL,但它在 vault.yaml 文件中有持久卷(/vault/file),这需要我的帐户创建持久容器的权限,但我的帐户没有足够的权限。所以我删除了 vault-config.json 中的光伏安装路径,如下所示,但我看到了以下错误。
{"backend":
{"file":
{"path": "/tmp/file"}
},
...
...
}
是否可以在没有 PV 的情况下创建 vault 服务器,比如像普通用户一样使用本地文件路径(/tmp/file)作为后端存储?
在没有 PV 的情况下在 openshift 中部署 vault 以部署 hashcorp vault 的替代方法是什么?
下面是pv运行时的错误,
--> Scaling vault-1 to 1
--> FailedCreate: vault-1 Error creating: pods "vault-1-" is forbidden: unable to validate against any security context constraint: [spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed]
error: update acceptor rejected vault-1: pods for rc 'dev-poc-environment/vault-1' took longer than 600 seconds to become available
【问题讨论】:
-
您可以使用 raft 代替,但它只是预览版:vaultproject.io/docs/configuration/storage/raft.html。
标签: openshift hashicorp-vault persistent-volumes openshift-enterprise