Tweak timings of the pre-post-sync example
This commit is contained in:
parent
e3a5ac20fc
commit
5eb3352b40
|
@ -54,8 +54,8 @@ local params = std.extVar("__ksonnet/params").components["guestbook-ui"];
|
||||||
"exec": {
|
"exec": {
|
||||||
"command": [ "sh", "-c", "exit 0" ],
|
"command": [ "sh", "-c", "exit 0" ],
|
||||||
},
|
},
|
||||||
"initialDelaySeconds": 30,
|
"initialDelaySeconds": 10,
|
||||||
"periodSeconds": 120,
|
"periodSeconds": 30,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
name: "pre-post-sync",
|
name: "pre-post-sync",
|
||||||
replicas: 1,
|
replicas: 1,
|
||||||
servicePort: 80,
|
servicePort: 80,
|
||||||
type: "LoadBalancer",
|
type: "ClusterIP",
|
||||||
},
|
},
|
||||||
"pre-sync-job": {},
|
"pre-sync-job": {},
|
||||||
"post-sync-job": {},
|
"post-sync-job": {},
|
||||||
|
|
|
@ -11,6 +11,6 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: sleep
|
- name: sleep
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
command: ["sleep", "20"]
|
command: ["sleep", "10"]
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
backoffLimit: 0
|
backoffLimit: 0
|
||||||
|
|
|
@ -11,6 +11,6 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: sleep
|
- name: sleep
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
command: ["sleep", "20"]
|
command: ["sleep", "10"]
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
backoffLimit: 0
|
backoffLimit: 0
|
||||||
|
|
Loading…
Reference in New Issue