Every MetaKube Kubernetes cluster comes with Heptio Ark installed and configured automatically. Ark gives you tools to back up and restore your Kubernetes cluster resources. Which means you can take backups of your cluster and restore in case of loss or replicate your production environment for development and testing environments. Backups are automatically stored in a SysEleven Stack Object Storage bucket on a different cloud region than your cluster.
This Tutorial gives you an example how to use Ark to create a backup and restore from it.
If a Kubernetes cluster is deleted, the backups created for this will remain in the SysEleven Stack Object Storage. If you are sure that you don't need these backups anymore, you can delete them manually:
Install and configure S3cmd as described in the SysEleven Stack documentation. The region is
s3.cbk.cloud.syseleven.net. Your credentials can be retrieved with
openstack ec2 credentials list. We create two S3 buckets for every cluster. One bucket is used for ark and one for restic. To list all available buckets run:
Pick the buckets with the cluster id, that you want to delete and run:
s3cmd rb s3://metakube-cluster-backup-clusterId-ark --recursive s3cmd rb s3://metakube-cluster-backup-clusterId-restic --recursive