Code Monkey home page Code Monkey logo

Comments (6)

jkandasa avatar jkandasa commented on August 25, 2024 1

Hi @jsteenb2 thanks to reach us. from v0.68.0 we have add new field called options, with options you can achieve this. https://tekton.dev/docs/operator/tektonconfig/#additional-fields-as-options

apiVersion: operator.tekton.dev/v1alpha1
kind: TektonConfig
metadata:
  name: config
spec:
  pipeline:
    options:
      deployments:
        tekton-pipelines-controller:
          spec:
            template:
              spec:
                affinity:
                  nodeAffinity:
                    requiredDuringSchedulingIgnoredDuringExecution:
                      nodeSelectorTerms:
                        - matchExpressions:
                          - key: kubernetes.io/os
                            operator: NotIn
                            values:
                              - windows
                          - key: node-role.kubernetes.io/restricted-egress
                            operator: In
                            values:
                              - ''
                nodeSelector:
                tolerations:
                  - effect: NoSchedule
                    key: node-role.kubernetes.io/restricted-egress
                    operator: Exists
                topologySpreadConstraints:

However the priorityClassName NOT in the options. I will include that. thanks!

from operator.

jsteenb2 avatar jsteenb2 commented on August 25, 2024 1

would be great to see an example of what the pod_template woudl look like integrating into this. The options field was opaque in its structure to me. I never would have guessed I could have done what you outlined above. Extending the docs here would be immensely helpful 🙏

from operator.

jkandasa avatar jkandasa commented on August 25, 2024 1

@jsteenb2 you have to add the entry to each deployment separately in the options.

from operator.

jsteenb2 avatar jsteenb2 commented on August 25, 2024

ohhh interesting, thank you! I'll give this a shot today 👍

from operator.

jsteenb2 avatar jsteenb2 commented on August 25, 2024

@jkandasa , is there a way to set the affinity and tolerations for all deployments? Or do we have to list them all out separately in the options? I'm using yaml references, but it feels suboptimal having to map this to each individually.

from operator.

jsteenb2 avatar jsteenb2 commented on August 25, 2024

gotcha, that's less than ideal, but workable on our end

from operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.