Skip to content

Commit f713299

Browse files
authored
Tolerate GPU taint (#19791)
1 parent 34a07f0 commit f713299

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

install/installer/pkg/components/registry-facade/daemonset.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
189189
RestartPolicy: corev1.RestartPolicyAlways,
190190
TerminationGracePeriodSeconds: pointer.Int64(30),
191191
InitContainers: initContainers,
192+
Tolerations: []corev1.Toleration{
193+
{
194+
Key: "gitpod.io/gpu",
195+
Operator: "Exists",
196+
Effect: "NoSchedule",
197+
},
198+
},
192199
Containers: []corev1.Container{{
193200
Name: Component,
194201
Image: ctx.ImageName(ctx.Config.Repository, Component, ctx.VersionManifest.Components.RegistryFacade.Version),

install/installer/pkg/components/ws-daemon/daemonset.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
204204
Operator: "Exists",
205205
Effect: "NoExecute",
206206
},
207+
{
208+
Key: "gitpod.io/gpu",
209+
Operator: "Exists",
210+
Effect: "NoSchedule",
211+
},
207212
}
208213

209214
podSpec := corev1.PodSpec{

0 commit comments

Comments
 (0)