我在试着安装Kubernetes。
配置详细信息:
控制器
工人
我使用我的coreos-kubernetes叉来安装控制器和工作人员(https://github.com/kfirufk/coreos-kubernetes)。
控制器节点运行良好,但是工作节点在试图对kubernetes告诉它执行的每个映像运行rkt时会抱怨permission denied。
例如:
Mar 11 21:34:58 coreos-3.tux-in.com kubelet-wrapper[10203]: E0311 21:34:58.654536 10203 pod_workers.go:184] Error syncing pod ac3615637dcb614ace172dc5c5dd85f3, skipping: failed to SyncPod: failed to run [prepare --quiet --pod-manifest /tmp/manifest-kube-proxy-192.168.1.3-986457484 --stage1-name=coreos.com/rkt/stage1-fly]: fork/exec /usr/bin/rkt: permission denied有什么想法吗?
发布于 2017-03-11 21:57:19
这是个简单的问题。
我指出kubelet.service使用包含以下内容的/opt/bin/host-rkt运行rkt:
#!/bin/sh
# This is bind mounted into the kubelet rootfs and all rkt shell-outs go
# through this rkt wrapper. It essentially enters the host mount namespace
# (which it is already in) only for the purpose of breaking out of the chroot
# before calling rkt. It makes things like rkt gc work and avoids bind mounting
# in certain rkt filesystem dependancies into the kubelet rootfs. This can
# eventually be obviated when the write-api stuff gets upstream and rkt gc is
# through the api-server. Related issue:
# https://github.com/coreos/rkt/issues/2878
exec nsenter -m -u -i -n -p -t 1 -- /usr/bin/rkt "$@"而且没有可执行文件的许可。就这样..。一个简单的chmod +x /opt/bin/host-rkt解决了这个问题:)
https://stackoverflow.com/questions/42740925
复制相似问题