forked from vmware-tanzu/velero
-
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.
Signed-off-by: Carlisia <[email protected]>
- Loading branch information
Carlisia
committed
Feb 3, 2020
1 parent
21264a1
commit 96197bf
Showing
1 changed file
with
8 additions
and
8 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,23 +1,23 @@ | ||
# Run in custom namespace | ||
# Customize namespaces in Velero | ||
|
||
You can run Velero in any namespace. | ||
The Velero installation and backups by default are run in the `velero` namespace. However, it is possible to customize it. | ||
|
||
First, ensure you've [downloaded & extracted the latest release][0]. | ||
### 1) Customize the namespace on the cluster | ||
|
||
Then, install Velero using the `--namespace` flag: | ||
During [the Velero installation][0], use the `--namespace` flag to inform Velero where to run. | ||
|
||
```bash | ||
velero install --bucket <YOUR_BUCKET> --provider <YOUR_PROVIDER> --namespace <YOUR_NAMESPACE> | ||
``` | ||
|
||
### 2) Customize the namespace for operational commands | ||
|
||
|
||
## Specify the namespace in client commands | ||
|
||
To specify the namespace for all Velero client commands, run: | ||
To have namespace consistency, specify the namespace for all Velero operational commands same as the namespace used to install Velero: | ||
|
||
```bash | ||
velero client config set namespace=<NAMESPACE_VALUE> | ||
``` | ||
|
||
Alternatively, you may use the glogal `--namespace` flag with any operational command to tell Velero where to run. | ||
|
||
[0]: basic-install.md#install-the-cli |