1 Star 0 Fork 2

Alex / install-single-master-K8s

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.en.md

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/

Repository Comments ( 0 )

Sign in to post a comment

About

两个命令从空白系统到单 master 节点 K8s 集群 -- Install a single master node K8s cluster on a blank system with two commands expand collapse
MulanPSL-1.0
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://git.oschina.net/yovon/install-single-master-K8s.git
git@git.oschina.net:yovon/install-single-master-K8s.git
yovon
install-single-master-K8s
install-single-master-K8s
master

Search

101014 b92fc32e 1850385 101014 af024cb7 1850385