This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.37.4. 최대 기간 설정
작업
을 정의할 때 activeDeadlineSeconds
필드를 설정하여 최대 기간을 정의할 수 있습니다. 이는 초 단위로 지정되며 기본적으로 설정되어 있지 않습니다. 설정하지 않으면 최대 기간이 적용되지 않습니다.
최대 기간은 시스템에서 첫 번째 Pod가 예약되는 시점부터 계산되며 작업을 활성 상태로 유지할 수 있는 기간을 정의합니다. 전체 실행 시간을 추적하며 완료 횟수(작업 실행에 필요한 Pod 복제본 수)와 관련이 없습니다. 지정된 타임아웃에 도달하면 OpenShift Container Platform에서 작업을 종료합니다.
다음 예제에서는 activeDeadlineSeconds
필드를 30분으로 지정하는 작업의
일부를 보여줍니다.
spec: activeDeadlineSeconds: 1800
spec:
activeDeadlineSeconds: 1800