kubekey
kubekey copied to clipboard
Failed to init OS: initOS.sh /bin/bash: Operation not permitted
What is version of KubeKey has the issue?
1.2.1
What is your os environment?
CentOS Linux release 7.8.2003 (Core)
KubeKey config file
all-in-one.
A clear and concise description of what happend.
all-in-one 模式下 使用root用户执行命令: ./kk create cluster --with-kubernetes v1.21.5 --with-kubesphere v3.2.1 -y
执行到Configuring operating system ... 时,
echo xxxxxxxx...xxxx base64 -d > /tmp/kubekey/initOS.sh && chmod +x /tmp/kubekey/initOS.sh
/bin/bash: Operation not permitted: Process exited with status 1 node=172.16.103.157
WARN[23:18:17 CST] Task failed ...
WARN[23:18:17 CST] error: interrupted by error
Error: Failed to init OS: interrupted by error
如图:
手动执行echo xxxxxxxx...xxxx base64 -d > /tmp/kubekey/initOS.sh && chmod +x /tmp/kubekey/initOS.sh 能执行成功,但没有用,当再次执行create cluster时,又会覆盖掉。 现在这个情况下,应该怎么办呢?
Relevant log output
No response
Additional information
No response
我在一台全新的环境中可以跑起来了,但是前面的那台环境是什么情况呢
centos默认的没有开启user namespace grubby --args="user_namespace.enable=1" --update-kernel="$(grubby --default-kernel)" 执行后要reboot 就可以了