-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cfe821c
commit 7e65201
Showing
27 changed files
with
240 additions
and
90 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
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,57 @@ | ||
--- | ||
MTPE: windsonsea | ||
Date: 2024-04-08 | ||
--- | ||
|
||
# Offline Clipper Script User Manual | ||
|
||
The offline package contains offline resources for all products of DCE 5.0. However, in actual usage, | ||
customers may not need to deploy all products. Therefore, the offline package clipper script | ||
`offline/utils/offline-clipper.sh` in installer v0.16.0 provides the `offline-clipper.sh` script | ||
to trim the offline package. This allows customers to decide which products' offline resources to use based on their actual needs. | ||
|
||
## Prerequisites | ||
|
||
- Clipper is only for GProduct. Before clipping, you need to understand which GProducts are included | ||
and their corresponding product codes. Refer to the information in the `components` section of | ||
the [product list file manifest.yaml](../commercial/manifest.md). | ||
|
||
- The `kubean`, `ghippo`, and `kpanda` components must exist, meaning these three components will be retained by default. | ||
|
||
## Operating Guide | ||
|
||
- If the input is an offline package tarball and the output is an offline package tarball, for example, to keep the `insight` component: | ||
|
||
```shell | ||
offline-clipper.sh --in-tar-path ./offline-v0.15.0-amd64.tar --out-tar-path ./offline.tar --enable-only insight | ||
``` | ||
|
||
- If the input is the `offline` directory extracted from the offline package and the output is the source directory of the extracted offline package, for example, to keep the `insight` component: | ||
|
||
```shell | ||
offline-clipper.sh --offline-path ./offline --enable-only insight | ||
``` | ||
|
||
- If the input is an offline package tarball and the output is the extracted offline package directory, for example, to trim only the `insight` component: | ||
|
||
```shell | ||
offline-clipper.sh --in-tar-path ./offline-v0.15.0-amd64.tar --disable-only insight | ||
``` | ||
|
||
- If the input is the offline package directory and the output is an offline package tarball, for example, to keep the `insight` and `skoala` components: | ||
|
||
```shell | ||
offline-clipper.sh --offline-path ./offline --out-tar-path ./offline.tar --enable-only insight,skoala | ||
``` | ||
|
||
- View the names of trimmable components: | ||
|
||
```shell | ||
offline-clipper.sh --offline-path ./offline -l | ||
``` | ||
|
||
- View the help document: | ||
|
||
```shell | ||
offline-clipper.sh -h | ||
``` |
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,40 @@ | ||
# Backup and Restore of Bootstrap Node | ||
|
||
This article describes the backup and restore of the kind cluster in the bootstrap node. | ||
|
||
## Backup Overview | ||
|
||
Installer v0.16.0 supports backup and restore of the kind cluster in the bootstrap node. Currently, the following information is backed up: | ||
|
||
1. Two important files: [clusterConfig.yaml](../commercial/cluster-config.md), | ||
[manifest.yaml](../commercial/manifest.md) | ||
|
||
The information in clusterConfig.yaml and manifest.yaml is stored in the configmap of the kind cluster. | ||
|
||
```shell | ||
root@my-cluster-installer-control-plane:/# kubectl get -n default cm | ||
NAME DATA AGE | ||
clusterconfig-1710711049 1 4h46m | ||
kube-root-ca.crt 1 4h46m | ||
manifest-1710711049 1 4h46m | ||
``` | ||
|
||
2. All data of the kind cluster | ||
|
||
The data of the kind cluster is mounted on the host machine at `/home/kind`, | ||
and the data of etcd is mounted at `/home/kind/etcd`. Do not delete any files | ||
in this directory. | ||
|
||
!!! note | ||
|
||
The mount directory can be defined in clusterconfig.yaml with | ||
`spec.tinderKind.resourcesMountPath`, and the default is `/home/kind`. | ||
|
||
## Restore | ||
|
||
Since the above backup is enabled by default for users, in case the kind cluster | ||
is accidentally deleted or lost, you can run the installer command: | ||
|
||
```shell | ||
./offline/dce5-installer cluster-create -c ./offline/sample/clusterConfig.yaml -m ./offline/manifest.yaml -j1,2 | ||
``` |
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.