Skip to content

Commit

Permalink
adding another node to the do not use list.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed May 21, 2024
1 parent 07de6fe commit 9a22088
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/supervisor/job_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ def create_job_object(self, run: dict, job_type: JobType, job_details: dict):
# create a node affinity to avoid using the on-prem k8s-node10 node.
pod_affinity_selector = client.V1Affinity(node_affinity=client.V1NodeAffinity(
required_during_scheduling_ignored_during_execution=client.V1NodeSelector(node_selector_terms=[client.V1NodeSelectorTerm(
match_expressions=[client.V1NodeSelectorRequirement(key="kubernetes.io/hostname", operator="NotIn", values=["k8s-node10"])])])))
match_expressions=[client.V1NodeSelectorRequirement(key="kubernetes.io/hostname", operator="NotIn", values=["k8s-node02",
"k8s-node10"])])])))

# create and configure a spec section for the container
template = client.V1PodTemplateSpec(metadata=client.V1ObjectMeta(labels={"app": run_job['run-config']['JOB_NAME']}),
Expand Down

0 comments on commit 9a22088

Please sign in to comment.