You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a paragraph mentioning `restartPolicy` needs to be set to `Never` for successful job completion.
Signed-off-by: Renato L. de F. Cunha <[email protected]>
Signed-off-by: Renato L. de F. Cunha <[email protected]>
Copy file name to clipboardExpand all lines: daprdocs/content/en/operations/hosting/kubernetes/kubernetes-job.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,12 @@ To address this issue the Dapr sidecar has an endpoint to `Shutdown` the sidecar
14
14
15
15
When running a basic [Kubernetes Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/) you will need to call the `/shutdown` endpoint for the sidecar to gracefully stop and the job will be considered `Completed`.
16
16
17
-
When a job is finish without calling `Shutdown` your job will be in a `NotReady` state with only the `daprd` container running endlessly.
17
+
When a job is finished without calling `Shutdown`, your job will be in a `NotReady` state with only the `daprd` container running endlessly.
18
18
19
-
Be sure and use the *POST* HTTP verb when calling the shutdown API.
19
+
Stopping the dapr sidecar will cause its readiness and liveness probes to fail in your container because the dapr sidecar was shutdown.
20
+
To prevent Kubernetes from trying to restart your job, set your job's `restartPolicy` to `Never`.
21
+
22
+
Be sure to use the *POST* HTTP verb when calling the shutdown HTTP API.
20
23
21
24
```yaml
22
25
apiVersion: batch/v1
@@ -37,7 +40,7 @@ spec:
37
40
restartPolicy: Never
38
41
```
39
42
40
-
You can also call the `Shutdown` from any of the Dapr SDK
43
+
You can also call the `Shutdown` from any of the Dapr SDKs
0 commit comments