前言
在测试机上用了几个月k8s感觉还是非常稳定,暂时还不敢上生产环境,写个单节点的安装教程记录分享下,安装也比较简单几个命令就完事,使用的宿主机系统版本是Centos7.6
。
准备
配置yum源
这里使用阿里云的k8s源,有工具的话也可以选用google官方提供的源。
$ wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
$ yum makecache
$ yum list |grep kubernetes
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
kubernetes.x86_64 1.5.2-0.7.git269f928.el7 @extras
kubernetes-client.x86_64 1.5.2-0.7.git269f928.el7 @extras
kubernetes-master.x86_64 1.5.2-0.7.git269f928.el7 @extras
kubernetes-node.x86_64 1.5.2-0.7