您当前的位置: 首页 > 

wespten

暂无认证

  • 0浏览

    0关注

    899博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

kubespray部署Kubernets集群

wespten 发布时间:2022-10-13 23:33:10 ,浏览量:0

一、环境配置

网络规划:

阿里云vpc:10.34.0.0/16    
cluser-ip:10.35.0.0/16
pod-ip:10.36.0.0/16

修改内核:

vi /etc/sysctl.conf

# docker
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
# swap off
vm.swappiness = 0

安装基础软件:

# 安装 git
yum -y install git

# 安装 centos 额外的yum源
yum install -y epel-release

# make 缓存
yum clean all && yum makecache

# 安装 软件
yum install -y python-pip python34 python-netaddr python34-pip ansible

# 升级 Jinja2
pip install --upgrade Jinja2
二、kubespray安装配置

下载源码:

git clone https://github.com/kubernetes-incubator/kubespray
# Install dependencies from ``requirements.txt``
pip install -r requirements.txt

修改镜像下载源:

sed -i   's/gcr\.io\/google_containers\//harbor-in
关注
打赏
1665965058
查看更多评论
立即登录/注册

微信扫码登录

0.0366s