Skip to content

Commit

Permalink
Merge pull request #56 from galasa-dev/add-node-tolerations
Browse files Browse the repository at this point in the history
Add node affinity and toleration conditions and doc
  • Loading branch information
Tom-Slattery authored Nov 26, 2024
2 parents e910832 + 39e86bd commit 9ae859c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
8 changes: 8 additions & 0 deletions charts/ecosystem/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ data:
# engine_memory_limit: "300"
run_poll: "5"
run_poll_recheck: "2"
#
# Label of k8s node that Galasa test pods should be scheduled on preferrentially
galasa_node_preferred_affinity: "{{ .Values.k8sNodePreferredAffinity }}"
#
# List of node toleration conditions
galasa_node_tolerations: "{{ .Values.k8sNodeTolerations }}"


#
# The name of the Kubernetes Secret that stores the encryption-related keys,
# so that test pods can decrypt credentials where necessary
Expand Down
30 changes: 29 additions & 1 deletion charts/ecosystem/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ galasaVersion: "0.38.0"
# Name of the galasa service which will be shown as the title of the web user interface page.
# Any bookmarks taken by users in their browsers will also receive this name.
# Making this name distict helps users identify which Galasa service they are using.
# If they are all called the same thing, users with access to multiple systems may find that
# If they are all called the same thing, users with access to multiple systems may find that
# confusing.
# It is RECOMMENDED that this value is changed to be unique,
# For example: Galasa Service XYZ
Expand Down Expand Up @@ -48,6 +48,34 @@ maxEngines: "10"
galasaWebUiImage: "galasa-ui"
#
#
#
# Optional. The label of a Kubernetes node that the engine controller should
# have an affinity for. If possible, the engine controller will schedule
# Galasa runs on this node.
#
# Example value: "galasa-engines"
#
k8sNodePreferredAffinity: ""
#
#
#
# Optional. The definition of a Kubernetes node taint toleration behaviour.
# You may wish to prevent other workloads from being scheduled on your dedicated
# Galasa k8s nodes. This can be achieved by tainting the Galasa k8s nodes. If this
# has been done, you will need to define a toleration for your Galasa pods so that
# they can schedule on the tainted nodes.
#
# The value should define a node label, an operator and a condition.
#
# Example value: "galasa-engines=Exists:NoSchedule"
#
# In the above example, any node which has the label "galasa-engines" with a
# "NoSchedule" taint should be tolerated, resulting in the Galasa test pods
# having exclusive access to run on this node.
#
k8sNodeTolerations: ""
#
#
# The pull policy to be used for the Galasa images, only useful for Galasa development purposes
#
pullPolicy: "IfNotPresent"
Expand Down

0 comments on commit 9ae859c

Please sign in to comment.