Sealctl User Guide
Sealos provides sealctl, a command-line tool for operating with Sealos and cluster nodes. It includes the following subcommands:
cert: Manages certificates for generating, viewing, and updating TLS certificates.cri: Manages Container Runtime Interface (CRI) configuration, such as Docker or containerd.hostname: Views or sets the system hostname.hosts: Manages the system's hosts file, which defines static hostname-to-IP address mappings.ipvs: Manages IP Virtual Server (IPVS) rules for load balancing and proxying.registry: Manages image repositories for storing container images in container repository format and repository management.static_pod: Manages static Pods and creates static Pod configurations.token: Generates and manages access tokens for authorizing access to Kubernetes clusters.
With these subcommands, you can conveniently manage and configure your Sealos system, enabling control over containers, image repositories, networks, and other aspects.
Sealos Dependent Commands
Add Hosts
Adds a new hosts record on the node with the specified IP address. The parameters include the IP address, hostname, and domain name. Use the
sealctl hosts addcommand.Delete Hosts
Deletes a hosts record on the node with the specified IP address. The parameters include the IP address and domain name. Use the
sealctl hosts deletecommand.Hostname
Retrieves the hostname of the node with the specified IP address. Use the
sealctl hostnamecommand.IPVS Load Balancing
Configures IPVS for load balancing on the node with the specified IP address. The parameters include the node IP address, virtual IP address, and a list of master node IP addresses. Use the
sealctl ipvscommand.Clear IPVS Rules
Clears the IPVS configuration on the node with the specified IP address. The parameters include the node IP address and virtual IP address. Use the
sealctl ipvscommand.Generate Static Pods
Deploys a static Pod (lvscare) on the node with the specified IP address. The parameters include the node IP address, virtual IP address, Pod name, image name, and a list of master node IP addresses. Use the
sealctl static-pod lvscarecommand.Manage Cluster Interact Authentication Token
Generates a token for the node with the specified IP address. The parameters include the node IP address, configuration file, and certificate key. Use the
sealctl tokencommand.Get Node's CGroup Information
Retrieves the CRI CGroup information of the node with the specified IP address. Use the
sealctl cri cgroupcommand.Get Node's CRI Socket Information
Retrieves the CRI socket information of the node with the specified IP address. Use the
sealctl cri socketcommand.Generate Self-signed HTTPS Certificates on Node
Generates certificates for the node with the specified IP address. The parameters include the node IP address, a list of alternate names, host IP address, hostname, service CIDR, and DNS domain. Use the
sealctl certcommand.Start Registry on Node
Starts the registry on the specified node for incremental image synchronization. Use the
sealctl registry servecommand.