Skip to main content

Kubernetes life cycle management

Stand alone installation kuberentes

# sealos version must >= v4.1.0
$ sealos run labring/kubernetes:v1.25.0 labring/helm:v3.8.2 labring/calico:v3.24.1 --single

Cluster installation kubernetes

$ sealos run kubernetes:v1.25.0 labring/helm:v3.8.2 labring/calico:v3.24.1 \
--masters 192.168.64.2,192.168.64.22,192.168.64.20 \
--nodes 192.168.64.21,192.168.64.19 -p [your-ssh-passwd]

Parameter Description:

Parameter nameParameter value exampleParameter description
--masters192.168.0.2kubernetes master node address list
--nodes192.168.0.3kubernetes node node address list
--ssh-passwd[your-ssh-passwd]ssh login password
imagekubernetes:v1.25.0kubernetes image

Execute the above command directly on a clean server without any extra effort to start a highly available kubernetes cluster.

Install various distributed applications

sealos run labring/helm:v3.8.2 # install helm
sealos run labring/openebs:v1.9.0 # install openebs
sealos run labring/minio-operator:v4.4.16 labring/ingress-nginx:4.1.0 \
labring/mysql-operator:8.0.23-14.1 labring/redis-operator:3.1.4 # oneliner

Such highly available mysql redis, etc. are all available, so you don't need to care about all dependencies.

Add node

add node :

$ sealos add --nodes 192.168.64.21,192.168.64.19 

add master:

$ sealos add --masters 192.168.64.21,192.168.64.19 

Delete node

delete node :

$ sealos delete --nodes 192.168.64.21,192.168.64.19 

delete master:

$ sealos delete --masters 192.168.64.21,192.168.64.19  

clean up the cluster

$ sealos reset