SAP-archive / karydia

Kubernetes Security Walnut
Other
77 stars 10 forks source link

Add option in "values.yaml" for Affinity, Tolerations, and Priorityclassname #262

Closed Neumann-Nils closed 4 years ago

Neumann-Nils commented 4 years ago

Description

This PR allows the following values to be defined under key setup in the values.yaml:

  1. podAntiAffinityWeight - single value. For example:

    podAntiAffinityWeight: 100
  2. affinity - fully customizable. For example:

    affinity:
    podAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
      - labelSelector:
          matchExpressions:
          - key: security
            operator: In
            values:
            - S1
        topologyKey: failure-domain.beta.kubernetes.io/zone
  3. priorityClassName - single value. For example:

    priorityClassName: high-priority
  4. tolerations - fully customizable. For example:

    tolerations:
    - key: "example-key"
    operator: "Exists"
    effect: "NoSchedule

These changes does not change the default behavior, but gives the user more flexibility in adapting the Karydia deployment.

Checklist

Before submitting this PR, please make sure: