Browse Source
Tweak timings of the pre-post-sync example
pull/2/head
pre-post-sync-v0.2
Jesse Suen
6 years ago
No known key found for this signature in database
GPG Key ID: 90C911E8A6106562
4 changed files with
5 additions and
5 deletions
-
pre-post-sync/components/guestbook-ui.jsonnet
-
pre-post-sync/components/params.libsonnet
-
pre-post-sync/components/post-sync-job.yaml
-
pre-post-sync/components/pre-sync-job.yaml
|
|
@ -54,8 +54,8 @@ local params = std.extVar("__ksonnet/params").components["guestbook-ui"]; |
|
|
|
"exec": { |
|
|
|
"command": [ "sh", "-c", "exit 0" ], |
|
|
|
}, |
|
|
|
"initialDelaySeconds": 30, |
|
|
|
"periodSeconds": 120, |
|
|
|
"initialDelaySeconds": 10, |
|
|
|
"periodSeconds": 30, |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
|
|
@ -12,7 +12,7 @@ |
|
|
|
name: "pre-post-sync", |
|
|
|
replicas: 1, |
|
|
|
servicePort: 80, |
|
|
|
type: "LoadBalancer", |
|
|
|
type: "ClusterIP", |
|
|
|
}, |
|
|
|
"pre-sync-job": {}, |
|
|
|
"post-sync-job": {}, |
|
|
|
|
|
@ -11,6 +11,6 @@ spec: |
|
|
|
containers: |
|
|
|
- name: sleep |
|
|
|
image: alpine:latest |
|
|
|
command: ["sleep", "20"] |
|
|
|
command: ["sleep", "10"] |
|
|
|
restartPolicy: Never |
|
|
|
backoffLimit: 0 |
|
|
|
|
|
@ -11,6 +11,6 @@ spec: |
|
|
|
containers: |
|
|
|
- name: sleep |
|
|
|
image: alpine:latest |
|
|
|
command: ["sleep", "20"] |
|
|
|
command: ["sleep", "10"] |
|
|
|
restartPolicy: Never |
|
|
|
backoffLimit: 0 |
|
|
|