Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add toleration for parat node pool #488

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading