tektoncd / triggers

Event triggering with Tekton!
Apache License 2.0
558 stars 420 forks source link

How to give affinity and toleration to Tekton Eventlistner #1703

Closed ritesh-makerble closed 8 months ago

ritesh-makerble commented 9 months ago

This didn't worked for me

spec:
  serviceAccountName: github-trigger
  resources:
    kubernetesResource:
      tolerations:
        - key: "kubernetes.azure.com/scalesetpriority"
          operator: "Equal"
          value: "spot"
          effect: "NoSchedule"
        - key: "type"
          operator: "Equal"
          value: "spot-1"
          effect: "NoSchedule""
khrm commented 8 months ago

@ritesh-makerble What about this example: https://github.com/tektoncd/triggers/blob/main/examples/v1beta1/eventlisteners/eventlistener-tolerations.yaml

khrm commented 8 months ago

So try this:

spec:
  serviceAccountName: github-trigger
  resources:
    kubernetesResource:
      spec:
        template:
          spec:
            tolerations:
                - key: "kubernetes.azure.com/scalesetpriority"
                  operator: "Equal"
                  value: "spot"
                  effect: "NoSchedule"
                - key: "type"
                  operator: "Equal"
                  value: "spot-1"
                  effect: "NoSchedule""
khrm commented 8 months ago

/assign @khrm