ark-pre-0.10
Heptio Ark is a utility for managing disaster recovery, specifically for your Kubernetes cluster resources and persistent volumes. To take snapshots of Portworx volumes through Ark you need to install and configure the Portworx plugin.
Install Ark Plugin
Run the following command to install the Portworx plugin for Ark:
ark plugin add portworx/ark-plugin:0.3
This should add an init container to your Ark deployment to install the plugin.
Configure Ark to use Portworx snapshots
Once the plugin is installed you need to configure Ark to use Portworx as the Persistent Volume Provider when taking snapshots. To edit the config run the following command:
kubectl edit config -n heptio-ark
And set up portworx as the persistentVolumeProvider by adding the following
snippet to the config spec:
persistentVolumeProvider:
name: portworx
Using local snapshots (default)
By default, local snapshots will be created for PVCs backed by Portworx. You can explicitly configure this by specifying
local as the type in the config section:
persistentVolumeProvider:
name: portworx
config:
type: local
Using cloud snapshots (Supported from Portworx Enterprise 1.4 onwards)
To use cloud snapshots to backup your PVCs, you need to specify cloud as the type in the config section. If you have
more than one credential configured with Portworx you also need to specify the UUID of the credential using credId:
persistentVolumeProvider:
name: portworx
config:
type: cloud
# Optional, required only if Portworx is configured with more than one credential
credId: <UUID>