Skip to content
Build a production kubernetes cluster!
Branch: master
Clone or download
Latest commit e873068 Apr 21, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps fix pkg Apr 19, 2019
cmd
install
vendor
.drone.yml
.gitignore fix issue#42 Apr 11, 2019
Dockerfile add Apr 10, 2019
LICENSE add Apr 10, 2019
Note.md add .drone and note Apr 10, 2019
README.md update readme Apr 21, 2019
README_zh.md fix pkg Apr 19, 2019
main.go

README.md

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

You can’t perform that action at this time.