velero/docs/cli-reference
Carson A a370718fbe Run ark client container as the active user
Since the ark container runs as a non-privileged user by default there are cases where it may not be able to read some user's config files if the permissions are more restrictive. Running the ark as the active user will make sure that the config file can be used in all cases.

Signed-off-by: Carson Anderson <ca@carsonoid.net>
2017-08-04 11:30:07 -06:00
..
README.md Run ark client container as the active user 2017-08-04 11:30:07 -06:00
ark.md Initial commit 2017-08-02 13:27:17 -04:00
ark_backup.md Initial commit 2017-08-02 13:27:17 -04:00
ark_backup_create.md Initial commit 2017-08-02 13:27:17 -04:00
ark_backup_get.md Initial commit 2017-08-02 13:27:17 -04:00
ark_restore.md Initial commit 2017-08-02 13:27:17 -04:00
ark_restore_create.md Initial commit 2017-08-02 13:27:17 -04:00
ark_restore_delete.md Initial commit 2017-08-02 13:27:17 -04:00
ark_restore_get.md Initial commit 2017-08-02 13:27:17 -04:00
ark_schedule.md Initial commit 2017-08-02 13:27:17 -04:00
ark_schedule_create.md Initial commit 2017-08-02 13:27:17 -04:00
ark_schedule_delete.md Initial commit 2017-08-02 13:27:17 -04:00
ark_schedule_get.md Initial commit 2017-08-02 13:27:17 -04:00
ark_server.md Initial commit 2017-08-02 13:27:17 -04:00
ark_version.md Initial commit 2017-08-02 13:27:17 -04:00

README.md

Command line reference

The Ark client provides a CLI that allows you to initiate ad-hoc backups, scheduled backups, or restores.

The files in this directory enumerate each of the possible ark commands and their flags. Note that you can also find this info with the CLI itself, using the --help flag.

Running the client

While it is possible to build and run the ark executable yourself, it is recommended to use the containerized version. Use the alias described in the quickstart:

alias ark='docker run --rm -u $(id -u) -v $(dirname $KUBECONFIG):/kubeconfig -e KUBECONFIG=/kubeconfig/$(basename $KUBECONFIG) gcr.io/heptio-images/ark:latest'

Assuming that your KUBECONFIG variable is set, this alias takes care of specifying the appropriate Kubernetes cluster credentials for you.

Kubernetes cluster credentials

In general, Ark will search for your cluster credentials in the following order:

  • --kubeconfig command line flag
  • $KUBECONFIG environment variable
  • In-cluster credentials--this only works when you are running Ark in a pod