Easypack: 使用Ansible快速部署Kubernetes集群

本文介绍了如何利用Easypack中的Ansible脚本,快速构建Kubernetes集群,包括单机版本和一主多从多节点版本的详细步骤。涉及的操作包括事前准备(如操作系统最小化安装、Ansible和git的安装)、脚本下载、SSH设定、二进制安装脚本下载与准备,以及不同版本集群的hosts设定和安装命令。
摘要由CSDN通过智能技术生成

在这里插入图片描述
使用Easypack中提供的Ansible脚本,可以快速构建集群,这篇文章介绍一下构建单机版本集群和一主多从的集群的方法。

事前准备

  • 操作系统准备
[root@host131 ~]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
[root@host131 ~]# uname -a
Linux host131 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@host131 ~]#

最小化安装即可,无需特定设定。

  • Ansible安装准备

安装命令:yum install ansible

[root@host131 ~]# ansible --version
ansible 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值