Skip to content

Commit

Permalink
reformat and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
balchua committed Aug 22, 2018
1 parent 8b92517 commit 6209655
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ Pair this tool with kubernetes `CronJob` to automatically stop or start a `Deplo
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: boink-stopper
name: nginx-starter
namespace: test
spec:
schedule: "*/1 * * * *"
#this is in UTC
schedule: "46 6 * * *"
startingDeadlineSeconds: 10
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
Expand All @@ -88,7 +91,7 @@ Pair this tool with kubernetes `CronJob` to automatically stop or start a `Deplo
- name: boink
image: boink:1.0
command: ["/boink"]
args: ["--namespace","test", "--label", "app=nginx", "--action" , "stop"]
args: ["--namespace","test", "--label", "app=nginx", "--action" , "start"]
restartPolicy: OnFailure
```
Expand Down
1 change: 1 addition & 0 deletions manifest/nginx-cron-starter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: nginx-starter
namespace: test
spec:
#this is in UTC
schedule: "46 6 * * *"
startingDeadlineSeconds: 10
concurrencyPolicy: Forbid
Expand Down
1 change: 1 addition & 0 deletions manifest/nginx-cron-stopper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: nginx-stopper
namespace: test
spec:
#this is in UTC
schedule: "43 6 * * *"
startingDeadlineSeconds: 10
concurrencyPolicy: Forbid
Expand Down

0 comments on commit 6209655

Please sign in to comment.