Browse Source

readme

master
Vladimir Smagin 6 months ago
parent
commit
bdff58836e
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      README.md

+ 9
- 1
README.md View File

@ -98,6 +98,8 @@ apiVersion: blindage.org/v1alpha1
kind: CronOp
metadata:
name: mycron
labels:
my-application: python-app
spec:
image: "python:3"
annotations:
@ -108,7 +110,7 @@ spec:
- name: print-test
annotations:
logger: do-not-log
commands: ['python','-c', 'print("doing nothing")']
commands: ['python','-c', 'print("testtesttest")']
schedule: "* * * * *"
```
@ -124,12 +126,18 @@ apiVersion: blindage.org/v1alpha1
kind: CronOp
metadata:
name: mycron
labels:
app: python
service: testing-cron
spec:
image: "python:3"
tasks:
- name: print-test
commands: ['python','-c', 'print("doing nothing")']
schedule: "* * * * *"
- name: hello
commands: ['python','-c', 'print("hello world hourly")']
schedule: "0 * * * *"
```
If you delete this resource operator will delete CronJobs and Jobs.


Loading…
Cancel
Save