forked from sealerio/sealer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update sealer command document via cobra (sealerio#1479)
Signed-off-by: Allen Sun <[email protected]>
- Loading branch information
1 parent
0be29bc
commit 30b775b
Showing
31 changed files
with
533 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,51 @@ | ||
## sealer | ||
|
||
A tool to build, share and run any distributed applications. | ||
|
||
### Synopsis | ||
|
||
sealer is a tool to seal application's all dependencies and Kubernetes | ||
into ClusterImage by Kubefile, distribute this application anywhere via ClusterImage, | ||
and run it within any cluster with Clusterfile in one command. | ||
|
||
|
||
### Options | ||
|
||
``` | ||
--config string config file (default is $HOME/.sealer.json) | ||
--config string config file of sealer tool (default is $HOME/.sealer.json) | ||
-d, --debug turn on debug mode | ||
-h, --help help for sealer | ||
--hide-path hide the log path | ||
--hide-time hide the log time | ||
-t, --toggle Help message for toggle | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [sealer apply](sealer_apply.md) - apply a kubernetes cluster | ||
* [sealer build](sealer_build.md) - ClusterImage local build command line | ||
* [sealer check](sealer_check.md) - check the state of cluster | ||
* [sealer apply](sealer_apply.md) - apply a Kubernetes cluster via specified Clusterfile | ||
* [sealer build](sealer_build.md) - build a ClusterImage from a Kubefile | ||
* [sealer cert](sealer_cert.md) - update Kubernetes API server's cert | ||
* [sealer check](sealer_check.md) - check the state of cluster | ||
* [sealer completion](sealer_completion.md) - generate autocompletion script for bash | ||
* [sealer debug](sealer_debug.md) - Creating debugging sessions for pods and nodes | ||
* [sealer delete](sealer_delete.md) - delete a cluster | ||
* [sealer gen-doc](sealer_gen-doc.md) - Generate document for sealer CLI with MarkDown format | ||
* [sealer images](sealer_images.md) - list all ClusterImages | ||
* [sealer inspect](sealer_inspect.md) - print the image information or clusterFile | ||
* [sealer join](sealer_join.md) - join node to cluster | ||
* [sealer load](sealer_load.md) - load image | ||
* [sealer login](sealer_login.md) - login image repositories | ||
* [sealer pull](sealer_pull.md) - pull ClusterImage to local | ||
* [sealer push](sealer_push.md) - push ClusterImage to registry | ||
* [sealer rmi](sealer_rmi.md) - Remove local images by name or ID | ||
* [sealer run](sealer_run.md) - run a cluster with images and arguments | ||
* [sealer save](sealer_save.md) - save image | ||
* [sealer tag](sealer_tag.md) - tag IMAGE[:TAG] TARGET_IMAGE[:TAG] | ||
* [sealer version](sealer_version.md) - version | ||
* [sealer debug](sealer_debug.md) - Create debugging sessions for pods and nodes | ||
* [sealer delete](sealer_delete.md) - delete an existing cluster | ||
* [sealer exec](sealer_exec.md) - exec a shell command or script on specified nodes. | ||
* [sealer gen](sealer_gen.md) - generate a Clusterfile to take over a normal cluster which is not deployed by sealer | ||
* [sealer gen-doc](sealer_gen-doc.md) - generate document for sealer CLI with MarkDown format | ||
* [sealer images](sealer_images.md) - list all ClusterImages on the local node | ||
* [sealer inspect](sealer_inspect.md) - print the image information or Clusterfile | ||
* [sealer join](sealer_join.md) - join new master or worker node to specified cluster | ||
* [sealer load](sealer_load.md) - load a ClusterImage from a tar file | ||
* [sealer login](sealer_login.md) - login image registry | ||
* [sealer merge](sealer_merge.md) - merge multiple images into one | ||
* [sealer prune](sealer_prune.md) - prune sealer data dir | ||
* [sealer pull](sealer_pull.md) - pull ClusterImage from a registry to local | ||
* [sealer push](sealer_push.md) - push ClusterImage to remote registry | ||
* [sealer rmi](sealer_rmi.md) - remove local images by name | ||
* [sealer run](sealer_run.md) - start to run a cluster from a ClusterImage | ||
* [sealer save](sealer_save.md) - save ClusterImage to a tar file | ||
* [sealer search](sealer_search.md) - search ClusterImage in default registry | ||
* [sealer tag](sealer_tag.md) - create a new tag that refers to a local ClusterImage | ||
* [sealer upgrade](sealer_upgrade.md) - upgrade specified Kubernetes cluster | ||
* [sealer version](sealer_version.md) - show sealer and related versions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
## sealer cert | ||
|
||
update Kubernetes API server's cert | ||
|
||
### Synopsis | ||
|
||
Add domain or ip in certs: | ||
you had better backup old certs first. | ||
sealer cert --alt-names sealer.cool,10.103.97.2,127.0.0.1,localhost | ||
using "openssl x509 -noout -text -in apiserver.crt" to check the cert | ||
will update cluster API server cert, you need to restart your API server manually after using sealer cert. | ||
|
||
For example: add an EIP to cert. | ||
1. sealer cert --alt-names 39.105.169.253 | ||
2. update the kubeconfig, cp /etc/kubernetes/admin.conf .kube/config | ||
3. edit .kube/config, set the apiserver address as 39.105.169.253, (don't forget to open the security group port for 6443, if you using public cloud) | ||
4. kubectl get pod, to check if it works or not | ||
|
||
|
||
``` | ||
sealer cert [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--alt-names string add domain or ip in certs, sealer.cool or 10.103.97.2 | ||
-h, --help help for cert | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string config file of sealer tool (default is $HOME/.sealer.json) | ||
-d, --debug turn on debug mode | ||
--hide-path hide the log path | ||
--hide-time hide the log time | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [sealer](sealer.md) - A tool to build, share and run any distributed applications. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.