- curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
- curl -L https://github.com/etcd-io/etcd/releases/download/v3.4.20/etcd-v3.4.20-linux-amd64.tar.gz -o /tmp/etcd-v3.4.20-linux-amd64.tar.gz
-
-
##### 纯手动部署
可以很好理解组件之间的交互以及基本概念
生产不推荐
无法维护
无法保证参数配置最佳
参考文档:https://github.com/kelseyhightower/kubernetes-the-hard-way
################################################### Kubeadm安装Kubernetes 1.13准备工作 注意:Kubernetes所有节点操作 ##############################
### 基础环境介绍:
系统:CentOS 7.6 64bit (Infrastructure server)
内核: Linux 3.10.0-957.el7.x86_64
系统盘:100G
网卡:仅主机
机器数量: 3台
CPU:2核
内存:推荐4G内存,最少2G
docker:docker-ce-18.06.1.ce-3.el7.x86_64
注意:配置主机名、IP地址、网关、DNS均为静态获取
### hosts表:
172.16.11.229 master01
172.16.11.230 node01
### 关闭firewalld
systemctl disable firewalld.service
[root@vj-ecs-03 ~]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[root@vj-ecs-03 ~]#
### 关闭SELinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
[root@vj-ecs-03 ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
### 关闭swap
临时关闭:swapoff -a
永久关闭:注释掉/etc/fstab下的swap一行
### 重启机器
[root@vj-ecs-02 ~]# swapoff -a
### 配置本地yum源
【参考后一个文章详细】