-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b54048
commit 5e6a2ad
Showing
4 changed files
with
12 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: CronWorkflow | ||
metadata: | ||
name: hello-world | ||
name: &app py-test | ||
spec: | ||
schedule: "* * * * *" | ||
timezone: "Europe/London" # Default to local machine timezone | ||
startingDeadlineSeconds: 0 | ||
concurrencyPolicy: "Replace" # Default to "Allow" | ||
successfulJobsHistoryLimit: 4 # Default 3 | ||
successfulJobsHistoryLimit: 1 | ||
failedJobsHistoryLimit: 4 # Default 1 | ||
suspend: false # Set to "true" to suspend scheduling | ||
workflowSpec: | ||
entrypoint: whalesay | ||
entrypoint: *app | ||
templates: | ||
- name: whalesay | ||
- name: *app | ||
container: | ||
image: docker/whalesay:latest | ||
command: [cowsay] | ||
args: ["🕓 hello world. Scheduled on: {{workflow.scheduledTime}}"] | ||
image: 192.168.7.210:5000/py-test:0.0.1 | ||
imagePullPolicy: Always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: CronWorkflow | ||
metadata: | ||
name: py-test | ||
name: &app py-test | ||
spec: | ||
schedule: "*/10 * * * *" | ||
schedule: "* * * * *" | ||
timezone: "Europe/London" # Default to local machine timezone | ||
startingDeadlineSeconds: 0 | ||
concurrencyPolicy: "Replace" # Default to "Allow" | ||
successfulJobsHistoryLimit: 4 # Default 3 | ||
successfulJobsHistoryLimit: 1 | ||
failedJobsHistoryLimit: 4 # Default 1 | ||
suspend: false # Set to "true" to suspend scheduling | ||
ttlStrategy: | ||
secondsAfterCompletion: 10 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished | ||
secondsAfterSuccess: 5 # Time to live after workflow is successful | ||
secondsAfterFailure: 5 # Time to live after workflow fails | ||
workflowSpec: | ||
entrypoint: py-test | ||
entrypoint: *app | ||
templates: | ||
- name: py-test | ||
- name: *app | ||
container: | ||
image: 192.168.7.210:5000/py-test:0.0.1 | ||
imagePullPolicy: Always |