Automatically suspend Kubernetes CronJobs prior to restoring them into a cluster.
To build the plugin, run
$ make
To build the Docker image, run
$ make container
This builds an image tagged as github.com/tuusberg/velero-plugin-suspend-cronjobs:latest
. If you want to specify a different name or version/tag, run:
$ IMAGE=your-repo/your-name VERSION=your-version-tag make container
To push the image to a Docker repository, run
$ make push
To deploy your plugin image to a Velero server:
- Make sure your image is pushed to a registry that is accessible to your cluster's nodes.
- Run
velero plugin add <registry/image:version>
. Example with a dockerhub image:velero plugin add velero/velero-plugin-example
.
-
Make sure your image is pushed to a registry that is accessible to your cluster's nodes.
-
Add the plugin to your Velero Helm chart's
values.yaml
:velero: initContainers: - name: velero-plugin-suspend-cronjobs image: tuusberg/velero-plugin-suspend-cronjobs:latest imagePullPolicy: Always volumeMounts: - name: plugins mountPath: /target