RKE 安装kubernetes报错

执行 rke up 安装集群

报错如下:


WARN[0000] Failed to set up SSH tunneling for host [172.20.101.167]:
Can‘t retrieve Docker Info: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info: Unable to access the Docker socket (/var/run/docker.sock).
Please check if the configured user can execute `docker ps` on the node, and if the SSH server version is at least version 6.7 or higher.
If you are using RedHat/CentOS, you can‘t use the user `root`.
Please refer to the documentation for more instructions. Error: ssh: rejected: administratively prohibited (open failed)

报错内容提示

大致意思说:
1:Centos 系统,不能用root 执行docker 命令;
2:Sshd 服务版本不能低于 6.7;

解决办法:

创建用户并且添加到docker组

groupadd docker
useradd rancher -G docker
echo "123456" | passwd --stdin rancher

或者将现有的一个账户加入到docke组;

usermod ptmind -G docker 

注意修改:

nodes:
  - address: 172.20.101.157 #集群节点的地址

    user: ptmind              #使用哪个用户执行安装命令   <=== 修改用户

原文地址:https://blog.51cto.com/michaelkang/2433787

时间: 2024-08-30 15:21:38

RKE 安装kubernetes报错的相关文章

通过RKE 安装kubernetes

通过RKE 安装kubernetes 作者: 张首富 时间: 2019-02-13 个人博客: www.zhangshoufu.com QQ群: 895291458 集群节点说明 我们这边需要4台机器,系统全都是centos7.5 10.0.0.99 MKE.kuber.com 10.0.0.100 master.kuber.com 10.0.0.101 node101.kuber.com 10.0.0.102 node102.kuber.com 安装前参数调整(所有机器上操作) sudo se

Ceph安装QEMU报错:User requested feature rados block device configure was not able to find it

CentOS6.3中,要想使用Ceph的block device,需要安装更高版本的QEMU. 安装好ceph后,安装qemu-1.5.2 # tar -xjvf qemu-1.5.2.tar.bz2 # cd qemu-1.5.2 # ./configure --enable-rbd 一定要加上--enable-rbd选项,这样qemu才能支持rbd协议. 这一步可能会报错: ERROR: User requested feature rados block device configure

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED 问题描写叙述 使用pip依照virtualenv报错,例如以下: pip install virtualenv Collecting virtualenv /opt/python27/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An

CentOS安装过程报错

Unable to read group information from repositories.  This is a problem with the generation of your install tree 网上搜到说是bug http://bbs.linuxtone.org/thread-16947-1-1.html 个人解决办法:把boot大小由200改为1024安装不报错

安装MySQL-python报错error: command &#39;gcc&#39; failed with exit status 1

[[email protected] MySQL-python-1.2.3]# python setup.py install function) .... _mysql.c:133: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function) _mysql.c:380: error: '_mysql_ConnectionObject' has no member named 'connection' _mysql.c:382

Centos安装fabric 报错:error: ‘FFI_DEFAULT_ABI’ undeclared (first use in this function)

Centos安装fabric 报错: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function) 需要安装libffi-devel Debian或Ubuntu需要安装 libffi-dev

python27(32位)安装模块报错“error: Unable to find vcvarsall.bat”

1)首先,下载一个Microsoft Visual C++ Compiler for Python 2.7的补丁,下载地址在这里: http://www.microsoft.com/en-us/download/details.aspx?id=44266 2) 然后下载安装VS2008(对应VER9.0),如果电脑上安装的是VS2010(对应VER10.0), 可以在VS命令行下执行:SET VS90COMNTOOLS=%VS100COMNTOOLS% 如果你安装的是 2012 版(对应VER1

CentOS 6安装KVM后安装虚拟机报错

安装KVM在配置完桥接网卡后,安装虚拟机报错. 附有CentOS 6安装KVM文档,和安装过程截图,可否有人能看出其中问题所在,小女子不胜感激.

安装nghttp2 报错error: Libtool library used but &#39;LIBTOOL&#39; is undefined

nghttp2 报错error: Libtool library used but 'LIBTOOL' is undefined 如果重新安装libtool和autoconf升级到2.69后,还是报错, 则进行下面的操作: 1,查看aclocal的路径 aclocal --print-ac-dir 显示/usr/local/share/libtool/m4 ls看看里面没有m4文件. 则copy /usr/share/libtool/m4里面的m4文件到此目录下. 2,cd到nghtt2目录 执