1 Star 0 Fork 2

Alex / install-single-master-K8s

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.en.md 2.04 KB
一键复制 编辑 原始数据 按行查看 历史
atompi 提交于 2021-10-29 16:46 . update: 1.21.6 with cilium

install-single-master-K8s

Description

Install a single master node K8s cluster on a blank system with two commands.

Support for CentOS 7.

Support K8s v1.21.0 or later.

Software Architecture

Single master node, deploy quickly with kubeadm, use cilium as a CNI plugin (without kube-proxy). HA deployment for production environment please redirect to Prod-K8S-HA-Installer

Installation

  1. init node - pre_reboot (The server will be restarted automatically when it is finished.)
# 6 parameters:
host_name=k8smaster
host_ip=192.168.3.53
net_gateway=192.168.3.1
net_prefix=24
nic_name=ens33
name_server=192.168.3.231

bash pre_reboot.sh $host_name $host_ip $net_gateway $net_prefix $nic_name $name_server
  1. init node - post_reboot
# 6 parameters:
containerd_version=1.4.11
kubernetes_version=1.21.6
private_hub=hub.atompi.cc
hub_username=atompi
hub_password=123456
docker_mirror=pooj3a7i.mirror.aliyuncs.com

bash post_reboot.sh $containerd_version $kubernetes_version $private_hub $hub_username $hub_password $docker_mirror
  1. init master node and finish installation
# 6 parameters:cpe_host="kube-apiserver.atompi.cc"
cpe_port=6443
private_registry_host=hub.atompi.cc
kubernetes_version=1.21.6
pod_subnet=10.244.0.0/16
service_subnet=10.96.0.0/12

bash ./init_cluster.sh $cpe_host $cpe_port $private_registry_host $kubernetes_version $pod_subnet $service_subnet

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Gitee Feature

  1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
  2. Gitee blog blog.gitee.com
  3. Explore open source project https://gitee.com/explore
  4. The most valuable open source project GVP
  5. The manual of Gitee https://gitee.com/help
  6. The most popular members https://gitee.com/gitee-stars/
1
https://gitee.com/yovon/install-single-master-K8s.git
git@gitee.com:yovon/install-single-master-K8s.git
yovon
install-single-master-K8s
install-single-master-K8s
master

搜索帮助