https://github.com/danielec7/kubecron
Utilities to manage kubernetes cronjobs. Run a CronJob manually for test purposes. Suspend/unsuspend a CronJob
https://github.com/danielec7/kubecron
cronjob kubernetes
Last synced: 3 days ago
JSON representation
Utilities to manage kubernetes cronjobs. Run a CronJob manually for test purposes. Suspend/unsuspend a CronJob
- Host: GitHub
- URL: https://github.com/danielec7/kubecron
- Owner: danielec7
- License: mit
- Created: 2017-12-13T11:06:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-08T01:22:56.000Z (about 2 years ago)
- Last Synced: 2025-08-14T10:15:35.434Z (about 2 months ago)
- Topics: cronjob, kubernetes
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 51
- Watchers: 2
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
kubecron
========A small utility to do things not currently possible with kubectl.
At the moment the following commands are implemented:
- run
- Running CronJobs immediately for testing purposes.
- suspend
- Suspend a CronJob
- unsuspend
- Unsuspend a CronJob**Installation**
Download a release or
```bash
go get github.com/iJanki/kubecron
```**Usage**
```bash
kubecron run cronjobname
```It also accepts context and namespace flags as kubectl
```bash
kubecron --context=default-cluster -n default run cronjobname
```**Usage as kubectl plugin**
Rename the kubecron executable into kubectl-cron and place it
in your $PATH```bash
mv kubecron /usr/local/bin/kubectl-cron
```Run it like this:
```bash
kubectl cron run cronjobname
```License
-------This library is licensed under the MIT License - see the `LICENSE` file for details