Skip to content

Automatically suspend Kubernetes CronJobs prior to restoring them into a cluster.

License

Notifications You must be signed in to change notification settings

tuusberg/velero-plugin-suspend-cronjobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

velero-plugin-suspend-cronjobs

Automatically suspend Kubernetes CronJobs prior to restoring them into a cluster.

Building the plugin

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

Deploying the plugin

To deploy your plugin image to a Velero server:

Using Velero CLI

  1. Make sure your image is pushed to a registry that is accessible to your cluster's nodes.
  2. Run velero plugin add <registry/image:version>. Example with a dockerhub image: velero plugin add velero/velero-plugin-example.

Using Helm

  1. Make sure your image is pushed to a registry that is accessible to your cluster's nodes.

  2. 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

About

Automatically suspend Kubernetes CronJobs prior to restoring them into a cluster.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published