8000 GitHub - biz-rl/sealos: Build a production kubernetes cluster!
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

biz-rl/sealos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awesome Build Status

简体中文,老版本

离线包购买市场

sealos 1.x docs

Sealos 2.0

简体中文

Support kuberentes 1.14.0+ , you needn't keepalived and haproxy anymore!

build a production kubernetes cluster

Quick Start

Pre

  • Install and start docker
  • Downloadoffline package copy it to /root. PS: if you star sealos, you can download it free.

Install

sealos init --master 192.168.0.2 \
    --master 192.168.0.3 \
    --master 192.168.0.4 \  # masters list
    --node 192.168.0.5 \    # nodes list
    --user root \           # host user name
    --passwd your-server-password \ # host passwd
    --pkg-url /root/kube1.14.1.tar.gz # you offline package location 

Thats all!

Other flags:

 --kubeadm-config string   kubeadm-config.yaml local 
 --vip string              virtual ip (default "10.103.97.2") 

Clean

sealos clean \
    --master 192.168.0.2 \
    --master 192.168.0.3 \
    --master 192.168.0.4 \           
    --node 192.168.0.5 \              
    --user root \                    
    --passwd your-server-password

Add nodes

Using super kubeadm:

cd kube/shell && init.sh
echo "10.103.97.2 apiserver.cluster.local" >> /etc/hosts   # using vip
kubeadm join 10.103.97.2:6443 --token 9vr73a.a8uxyaju799qwdjv \
    --master 10.103.97.100:6443 \
    --master 10.103.97.101:6443 \
    --master 10.103.97.102:6443 \
    --discovery-token-ca-cert-hash sha256:7c2e69131a36ae2a042a339b33381c6d0d43887e2de83720eff5359e26aec866

Architecture

  +----------+                       +---------------+  virturl server: 127.0.0.1:6443
  | mater0   |<----------------------| ipvs nodes    |    real servers:
  +----------+                      |+---------------+            10.103.97.200:6443
                                    |                             10.103.97.201:6443
  +----------+                      |                             10.103.97.202:6443
  | mater1   |<---------------------+
  +----------+                      |
                                    |
  +----------+                      |
  | mater2   |<---------------------+
  +----------+

Every node config a ipvs for masters LB.

Then run a lvscare as a staic pod to check realserver is aviliable. /etc/kubernetes/manifests/sealyun-lvscare.yaml

About LVScare

This can care your masters ipvs rules.

About super kubeadm 简体中文,kubernetes v1.14.0+

公众号:

sealyun

About

Build a production kubernetes cluster!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.8%
  • Dockerfile 0.2%
0