0

我是 openshift 的新手,并尝试使用 helm chart 在 openshift 上部署领事。我正在遵循领事网站上提到的步骤:https ://github.com/hashicorp/consul-k8s ,但在最后一步之后出现错误。通过错误消息,我可以理解这与 openshift 的权限有关,但无法解决问题。谁能帮我解决这个问题?

这些是安装后创建的资源。

在此处输入图像描述

这是我在运行 describe 命令时看到的错误消息:

Warning  FailedCreate  5m3s (x2014 over 8d)  statefulset-controller  create Pod consul- 
server-0 in StatefulSet consul-server failed error: pods "consul-server-0" is forbidden: 
unable to validate against any security context constraint: [provider "anyuid": 
Forbidden: not usable by user or serviceaccount, provider "nginx-ingress-scc": 
Forbidden: not usable by user or serviceaccount, provider restricted: 

.spec.securityContext.fsGroup:无效值:[]int64{1000}:1000 不是允许的组,spec.containers[0].securityContext.runAsUser:无效值:100:必须在范围内:[1000720000, 1000729999 ],提供者“nonroot”:禁止:用户或服务帐户不能使用,提供者“hostmount-anyuid”:禁止:用户或服务帐户不能使用,提供者“machine-api-termination-handler”:禁止:用户或服务不能使用serviceaccount,提供者“hostnetwork”:禁止:用户或服务帐户不能使用,提供者“hostaccess”:禁止:用户或服务帐户不能使用,提供者“node-exporter”:禁止:用户或服务帐户不能使用,提供者“特权” :禁止:用户或服务帐户无法使用]

4

0 回答 0