2018-02-14 18:02:35 +00:00
|
|
|
# Run in custom namespace
|
|
|
|
|
2018-02-20 14:41:17 +00:00
|
|
|
In Ark version 0.7.0 and later, you can run Ark in any namespace. To do so, you specify the
|
|
|
|
namespace in the YAML files that configure the Ark server. You then also specify the namespace when
|
|
|
|
you run Ark client commands.
|
2018-02-14 18:02:35 +00:00
|
|
|
|
|
|
|
## Edit the example files
|
|
|
|
|
2018-02-20 14:41:17 +00:00
|
|
|
The Ark repository includes [a set of examples][0] that you can use to set up your Ark server. The
|
2018-03-14 21:32:36 +00:00
|
|
|
examples place the server and backup/schedule/restore/config data in the `heptio-ark` namespace.
|
2018-02-20 14:41:17 +00:00
|
|
|
|
2018-03-14 21:32:36 +00:00
|
|
|
To run the server in another namespace, you edit the relevant files, changing `heptio-ark` to
|
2018-02-20 14:41:17 +00:00
|
|
|
your desired namespace.
|
|
|
|
|
|
|
|
To store your backups, schedules, restores, and config in another namespace, you edit the relevant
|
2018-03-14 21:32:36 +00:00
|
|
|
files, changing `heptio-ark` to your desired namespace. You also need to create the
|
|
|
|
`cloud-credentials` secret in your desired namespace.
|
2018-02-20 14:41:17 +00:00
|
|
|
|
2018-02-14 18:02:35 +00:00
|
|
|
For all cloud providers, edit `https://github.com/heptio/ark/blob/master/examples/common/00-prereqs.yaml`. This file defines:
|
|
|
|
|
|
|
|
* CustomResourceDefinitions for the Ark objects (backups, schedules, restores, configs, downloadrequests)
|
2018-02-20 14:41:17 +00:00
|
|
|
* The namespace where the Ark server runs
|
|
|
|
* The namespace where backups, schedules, restores, and the config are stored
|
2018-02-14 18:02:35 +00:00
|
|
|
* The Ark service account
|
|
|
|
* The RBAC rules to grant permissions to the Ark service account
|
|
|
|
|
|
|
|
|
|
|
|
### AWS
|
|
|
|
|
|
|
|
For AWS, edit:
|
|
|
|
|
2018-04-15 09:01:07 +00:00
|
|
|
* `https://github.com/heptio/ark/blob/master/examples/aws/10-deployment.yaml`
|
2018-02-14 18:02:35 +00:00
|
|
|
* `https://github.com/heptio/ark/blob/master/examples/aws/00-ark-config.yaml`
|
|
|
|
|
|
|
|
|
|
|
|
### GCP
|
|
|
|
|
|
|
|
For GCP, edit:
|
|
|
|
|
2018-04-15 09:01:07 +00:00
|
|
|
* `https://github.com/heptio/ark/blob/master/examples/gcp/10-deployment.yaml`
|
2018-02-14 18:02:35 +00:00
|
|
|
* `https://github.com/heptio/ark/blob/master/examples/gcp/00-ark-config.yaml`
|
|
|
|
|
|
|
|
|
|
|
|
### Azure
|
|
|
|
|
|
|
|
For Azure, edit:
|
|
|
|
|
|
|
|
* `https://github.com/heptio/ark/blob/master/examples/azure/00-ark-deployment.yaml`
|
|
|
|
* `https://github.com/heptio/ark/blob/master/examples/azure/10-ark-config.yaml`
|
|
|
|
|
2018-02-20 12:13:18 +00:00
|
|
|
### IBM
|
|
|
|
|
|
|
|
For IBM, edit:
|
|
|
|
|
2018-04-15 09:01:07 +00:00
|
|
|
* `https://github.com/heptio/ark/blob/master/examples/ibm/10-deployment.yaml`
|
2018-02-20 12:13:18 +00:00
|
|
|
* `https://github.com/heptio/ark/blob/master/examples/ibm/00-ark-config.yaml`
|
2018-02-14 18:02:35 +00:00
|
|
|
|
|
|
|
## Specify the namespace in client commands
|
|
|
|
|
|
|
|
To specify the namespace for all Ark client commands, run:
|
|
|
|
|
|
|
|
```
|
|
|
|
ark client config set namespace=<NAMESPACE_VALUE>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-20 14:41:17 +00:00
|
|
|
[0]: https://github.com/heptio/ark/tree/master/examples
|