Skip to content

Commit

Permalink
Merge pull request #488 from georgetown-cset/add-gke-toleration
Browse files Browse the repository at this point in the history
Add toleration for parat node pool
  • Loading branch information
rggelles authored Sep 12, 2024
2 parents fb4971f + 9caa9bc commit 43215c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion company_linkage/parat_data_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
get_post_success,
)
from dataloader.scripts.populate_documentation import update_table_descriptions
from kubernetes.client import models as k8s

bucket = DATA_BUCKET
initial_dataset = "parat_input"
Expand Down Expand Up @@ -106,6 +107,7 @@
image=f"us.gcr.io/{PROJECT_ID}/parat",
get_logs=True,
startup_timeout_seconds=300,
tolerations=[k8s.V1Toleration(key="parat", operator="Equal", value="true")],
# see also https://cloud.google.com/composer/docs/how-to/using/using-kubernetes-pod-operator#affinity-config
affinity={
"nodeAffinity": {
Expand All @@ -121,7 +123,8 @@
}]
}
}
}
},
annotations={"cluster-autoscaler.kubernetes.io/safe-to-evict": "true"},
)

# load aggregated_organizations to BigQuery
Expand Down

0 comments on commit 43215c0

Please sign in to comment.