Tekton Scheduler

TektonScheduler custom resource allows user to install and manage [Tekton Scheduler][Scheduler].

It is recommended to install the components through TektonConfig.

The TektonScheduler CR is as below:

apiVersion: operator.tekton.dev/v1alpha1
kind: TektonScheduler
metadata:
  name: Scheduler
spec:
  disabled: true

Pre-Requisite

  • Scheduler component internally uses Kueue for its functioning so it is required to have kueue installed before we can enable the tekton-scheduler.
  • Scheduler component also uses cert-manager so you must install the cert-manager CRDs before scheduler can be enabled.

Enable Scheduler

Scheduler component can be enabled by setting the disabled to false in TektonConfig

apiVersion: operator.tekton.dev/v1alpha1
kind: TektonScheduler
metadata:
  name: Scheduler
spec:
  disabled: false

Multi Cluster Configuration

If you are working with multi-cluster pipelines then you can enable the same from tekton scheduler config.

in multi-cluster environment a cluster can play the role of Hub or Spoke. The TektonConfig settings for Scheduler for Hub and Spoke is defined as below

Hub Cluster

apiVersion: operator.tekton.dev/v1alpha1
kind: TektonScheduler
metadata:
  name: Scheduler
spec:
  disabled: false
  multi-cluster-disabled: false
  multi-cluster-role: Hub

Note: When multi-cluster-role: Hub is configured, the operator automatically deploys the syncer-service component for multi-cluster synchronization.

Spoke Cluster

apiVersion: operator.tekton.dev/v1alpha1
kind: TektonScheduler
metadata:
  name: Scheduler
spec:
  disabled: false
  multi-cluster-disabled: false
  multi-cluster-role: Spoke  

You can install this component using TektonConfig by choosing appropriate profile.

Scheduler