Skip to content

Commit 368ffb8

Browse files
committed
Add safe-to-evict annotations to DRA installers
1 parent 744e5b3 commit 368ffb8

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

autoscaling/custom-compute-classes/dra/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ For the GPUs we will use in this example, the following command is sufficient:
9191

9292
```console
9393
kubectl apply -f https://raw.githubusercontent.com/GoogleCloudPlatform/container-engine-accelerators/master/nvidia-driver-installer/ubuntu/daemonset-preloaded.yaml
94+
kubectl patch daemonset nvidia-driver-installer -n kube-system -p \
95+
'{"spec":{"template":{"metadata":{"annotations":{"cluster-autoscaler.kubernetes.io/safe-to-evict":"true"}}}}}'
9496
```
9597

9698
The container toolkit is installed via a DaemonSet:

autoscaling/custom-compute-classes/dra/nvidia-container-toolkit-installer.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ spec:
2525
app: nvidia-container-toolkit-installer
2626
template:
2727
metadata:
28+
annotations:
29+
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
2830
labels:
2931
app: nvidia-container-toolkit-installer
3032
spec:

0 commit comments

Comments
 (0)