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 labring/kubernetes:v1.25.0 labring/helm:v3.8.2 labring/calico:v3.24.1 \
--masters,, \
--nodes, -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
imagelabring/kubernetes: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, 

add master:

$ sealos add --masters, 

Delete node

delete node:

$ sealos delete --nodes, 

delete master:

$ sealos delete --masters,  

Clean up the cluster

$ sealos reset