启用了SELINUX的Kubernetes Secrets的权限被拒绝

启用了SELINUX的Kubernetes Secrets的权限被拒绝,第1张

概述我按照kubernetes文档来管理我的应用程序的秘密. http://kubernetes.io/v1.1/docs/user-guide/secrets.html 当pod启动时,kubernetes会在正确的位置安装密钥,但是应用程序无法读取文档中描述的秘密数据. root@quoter-controller-whw7k:/etc/quoter# whoamirootroot@quote 我按照kubernetes文档来管理我的应用程序的秘密.

http://kubernetes.io/v1.1/docs/user-guide/secrets.html

当pod启动时,kubernetes会在正确的位置安装密钥,但是应用程序无法读取文档中描述的秘密数据.

root@quoter-controller-whw7k:/etc/quoter# whoamirootroot@quoter-controller-whw7k:/etc/quoter# ls -lls: cannot access local.py: Permission denIEdtotal 0-????????? ? ? ? ?            ? local.pyroot@quoter-controller-whw7k:/etc/quoter# cat local.py cat: local.py: Permission denIEd

这有什么问题?

SElinux配置了强制模式

SEliNUX =强制执行措施

Docker使用以下命令启动

/usr/bin/docker daemon --registry-mirror=http://mirror.internal:5000 --selinux-enabled --insecure-registry registry.internal:5555 --storage-driver devicemapper --storage-opt dm.fs=xfs --storage-opt dm.thinpooldev=/dev/mapper/atomicos-docker--pool --bip=10.16.16.1/24 --mtu=8951
解决方法 根据原子问题跟踪器,SElinux和Kubernetes Secrets存在已知问题,请参阅 ISSUE-117. 总结

以上是内存溢出为你收集整理的启用了SELINUX的Kubernetes Secrets的权限被拒绝全部内容,希望文章能够帮你解决启用了SELINUX的Kubernetes Secrets的权限被拒绝所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1018117.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存