main
ROOT /
pages /
retry-job.md
23 lines | ISO-8859-1 | 816 bytes

Usage Scenario

Retry jobs upon Kubernetes worker node error

How to Set Up

In section Retry Upon Failure of the job, configure Retry Condition to detect appropriate worker node error. For instance on Google Kubernetes Engine, if a node goes down the error message will normally contains such line:

Error from server: Get https://<ip address>:<port>/containerLogs/k8s-test-53/job/main?follow=true&timestamps=true: EOF

Or this line:

Error from server: Get https://<ip address>:<port>/containerLogs/k8s-test-49/job/main?follow=true&timestamps=true: ssh: rejected: connect failed (Connection refused)

So we can write the retry condition as below:

"Error Message" contains "Error from server" and ("Error Message" contains "EOF" or "Error Message" contains "Connection refused")
Please wait...
Page is in error, reload to recover