Skip to content

Commit c7aa773

Browse files
committed
add readme
Signed-off-by: ghostloda <[email protected]>
1 parent af9b5ab commit c7aa773

File tree

1 file changed

+107
-0
lines changed

1 file changed

+107
-0
lines changed

lifecycle/README.md

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
---
2+
sidebar_position: 0
3+
keywords: [Sealos, cloud operating system, Kubernetes clusters, cloud-native applications, cluster management, container management, image management, cluster images, Sealos user guide, Rootfs cluster images]
4+
description: Explore Sealos, a unified cloud OS for managing Kubernetes clusters and cloud-native apps. Learn about cluster management, containers, and images with our comprehensive user guide.
5+
---
6+
7+
# Kubernetes Lifecycle Management
8+
9+
Sealos provides a powerful set of tools that allow users to easily manage the entire lifecycle of a cluster.
10+
11+
## Features
12+
13+
With Sealos, you can install a bare Kubernetes cluster without any components. Additionally, Sealos can assemble various
14+
upper-layer distributed applications on top of Kubernetes using cluster image capabilities, such as databases, message
15+
queues, and more.
16+
17+
Sealos not only allows you to install a single-node Kubernetes development environment but also enables you to build
18+
production-grade highly available clusters with thousands of nodes.
19+
20+
Sealos offers features like cluster scaling, backup and recovery, and cluster release. It provides an excellent
21+
Kubernetes runtime experience even in offline environments.
22+
23+
## Key Features
24+
25+
- ARM support. Offline packages v1.20 and above support integration with both containerd and Docker.
26+
- Provides 99-year certificates and supports cluster backup and upgrade.
27+
- Does not rely on Ansible, HAProxy, or Keepalived. It is a standalone binary tool with zero dependencies.
28+
- Provides offline installation. Different versions of Kubernetes only require different cluster images.
29+
- High availability is achieved through localLB based on IPVS, which consumes fewer resources and provides stability and
30+
reliability, similar to kube-proxy implementation.
31+
- Automatically recognizes image names using image-cri-shim, making offline delivery more convenient.
32+
- Almost compatible with all x86_64 architectures that support systemd.
33+
- Easy addition/deletion of cluster nodes.
34+
- Trusted by tens of thousands of users in production environments, stable and reliable.
35+
- Supports cluster images, allowing you to customize and combine the cluster components you need, such as OpenEBS
36+
storage + database + MinIO object storage.
37+
- Uses the SDK of Buildah to standardize the image format, fully compatible with OCI standards.
38+
39+
## Running a Kubernetes Cluster with Sealos
40+
41+
Running a Kubernetes cluster with Sealos is straightforward. Just follow these steps:
42+
43+
```bash
44+
$ curl -sfL https://raw.githubusercontent.com/labring/sealos/v4.3.0/scripts/install.sh \
45+
| sh -s v4.3.0 labring/sealos
46+
# Create a cluster
47+
$ sealos run labring/kubernetes:v1.25.0-4.2.0 labring/helm:v3.8.2 labring/calico:v3.24.1 \
48+
--masters 192.168.64.2,192.168.64.22,192.168.64.20 \
49+
--nodes 192.168.64.21,192.168.64.19 -p [your-ssh-passwd]
50+
```
51+
52+
[![asciicast](https://asciinema.org/a/519263.svg)](https://asciinema.org/a/519263?speed=3)
53+
54+
## Running Distributed Applications on the Cluster
55+
56+
With the `sealos run` command, you can run various distributed applications on the cluster, such as databases, message
57+
queues, AI capabilities, and even enterprise-level SaaS software. For example:
58+
59+
```shell
60+
# MySQL cluster
61+
$ sealos run labring/mysql-operator:8.0.23-14.1
62+
63+
# Clickhouse cluster
64+
$ sealos run labring/clickhouse:0.18.4
65+
66+
# Redis cluster
67+
$ sealos run labring/redis-operator:3.1.4
68+
```
69+
70+
## Customizing the Cluster
71+
72+
For cluster images not available in the Sealos ecosystem, users can easily build and customize their own cluster images.
73+
For example:
74+
75+
[Building an Ingress Cluster Image](/developer-guide/lifecycle-management/quick-start/build-ingress-cluster-image.md)
76+
77+
You can also customize your own Kubernetes cluster:
78+
79+
Sealfile:
80+
81+
```shell
82+
FROM kubernetes:v1.25.0
83+
COPY flannel-chart .
84+
COPY mysql-chart .
85+
CMD ["helm install flannel flannel-chart", "helm install mysql mysql-chart"]
86+
```
87+
88+
```shell
89+
sealos build -t my-kubernetes:v1.25.0 .
90+
sealos run my-kubernetes:v1.25.0 ...
91+
```
92+
93+
## Frequently Asked Questions
94+
95+
**Is Sealos a Kubernetes installation tool?**
96+
97+
Installation and deployment are basic functions of Sealos, similar to the boot module in a single-node operating system.
98+
Sealos' boot module effectively manages the lifecycle of Kubernetes in any scenario.
99+
100+
**What are the differences between Sealos, Rancher, and KubeSphere?**
101+
102+
Sealos is designed with the philosophy of "simplifying complexity, freely assembling, and simplicity as the ultimate
103+
goal." Sealos leverages the capabilities of Kubernetes to provide users with exactly what they need in a simple way.
104+
Users may not necessarily need Kubernetes; what they need is specific functionality.
105+
106+
Sealos is highly flexible and does not impose additional burdens on users. Its form depends on user requirements and the
107+
applications being installed. The core of Sealos is distributed applications, and all applications are treated equally.

0 commit comments

Comments
 (0)