首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Coredns无法部署

Coredns无法部署
EN

Stack Overflow用户
提问于 2019-07-05 16:01:59
回答 1查看 499关注 0票数 0

我已经安装了一个集群,但似乎无法将核心配置为运行。当我执行kubectl describe replicaset -n kube-system:时,我收到以下消息

代码语言:javascript
复制
Error creating: pods "coredns-7945fb857d-" is forbidden: unable to validate against any pod security policy: [pod.metadata.annotations[seccomp.security.alpha.kubernetes.io/pod]: Forbidden:  is not an allowed seccomp profile. Valid values are runtime/default pod.metadata.annotations[container.apparmor.security.beta.kubernetes.io/coredns]: Forbidden: AppArmor profile must be set pod.metadata.annotations[container.seccomp.security.alpha.kubernetes.io/coredns]: Forbidden:  is not an allowed seccomp profile. Valid values are runtime/default spec.containers[0].securityContext.capabilities.add: Invalid value: "NET_BIND_SERVICE": capability may not be added

有人能给我指个方向吗?

EN

回答 1

Stack Overflow用户

发布于 2019-07-05 20:53:45

可能由于Pod Security Policy的原因,甚至没有创建coreDNS pod

强制执行

PodSecurityPolicies (...)但是不授权任何策略都会阻止在集群中创建pods。

在此特定情况下,会抱怨Seccomp注释中的配置文件无效:

pod的seccomp.security.alpha.kubernetes.io/

:禁止:不是允许的seccomp配置文件。

您可以检查here a list of valid profilesexample of a custom one

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56898966

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档