Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.
Open
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 deploy/k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
serviceAccountName: node-termination-handler
affinity:
nodeAffinity:
# Restrict to GPU nodes or preemptible nodes
# Restrict to GPU nodes or preemptible nodes or spot nodes
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
Expand All @@ -46,6 +46,9 @@ spec:
- matchExpressions:
- key: cloud.google.com/gke-preemptible
operator: Exists
- matchExpressions:
- key: cloud.google.com/gke-spot
operator: Exists
containers:
# TODO: Update to an official image once the build is automated via GCB.
- image: k8s.gcr.io/gke-node-termination-handler@sha256:aca12d17b222dfed755e28a44d92721e477915fb73211d0a0f8925a1fa847cca
Expand Down