3.6. 파이프라인 컨트롤러의 재동기화 기간 설정
파이프라인 컨트롤러에 대한 재동기화 기간을 구성할 수 있습니다. 재동기화 간격마다 컨트롤러가 이벤트에 관계없이 모든 파이프라인 실행 및 작업 실행을 조정합니다.
기본 재동기화 기간은 10시간입니다. 파이프라인 실행 및 작업 실행이 많은 경우 10시간마다 전체 조정이 너무 많은 리소스를 사용할 수 있습니다. 이 경우 더 긴 재동기화 기간을 구성할 수 있습니다.
사전 요구 사항
-
cluster-admin
권한으로 OpenShift Container Platform 클러스터에 로그인되어 있습니다.
프로세스
TektonConfig
사용자 지정 리소스에서 다음 예와 같이 파이프라인 컨트롤러에 대한 재동기화 기간을 구성합니다.예
Copy to Clipboard Copied! Toggle word wrap Toggle overflow apiVersion: operator.tekton.dev/v1alpha1 kind: TektonConfig metadata: name: config spec: pipeline: options: deployments: tekton-pipelines-controller: spec: template: spec: containers: - name: tekton-pipelines-controller args: - "-resync-period=24h"
apiVersion: operator.tekton.dev/v1alpha1 kind: TektonConfig metadata: name: config spec: pipeline: options: deployments: tekton-pipelines-controller: spec: template: spec: containers: - name: tekton-pipelines-controller args: - "-resync-period=24h"
1 - 1
- 이 예에서는 재동기화 기간을 24시간으로 설정합니다.