Flannel: Centos node join ubuntu master Permission denied

Created on 3 May 2017  路  2Comments  路  Source: coreos/flannel

I run join command on centos minon, the flannel container create faild.
master is ubuntu
kubernetes 1.6.2
flannel 0.7.1

docker logs cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conf cp: can't create '/etc/cni/net.d/10-flannel.conf': Permission denied

Most helpful comment

setenforce 0 resolved my problem.

All 2 comments

Hi @insoz . The flannel daemon needs permissions to write to that directory. You can change the permissions with chmod

setenforce 0 resolved my problem.

Was this page helpful?
0 / 5 - 0 ratings