<p>I'm trying to set up a new Kubeflow deployment to use preemptible VMs. Referring to <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/preemptible-vms" rel="nofollow noreferrer">this doc</a>, I see that there is some YAML to specify preemptible nodes but I am not sure where to put it in the myriad of YAML files generated by <code>kfctl.sh</code>. Meanwhile, going through the console, I see Preemptible nodes = disabled, but there is no way to change it.</p>

<p>How do I set the Kubeflow node pools to be preemptible?</p>

ontologist
<p>The <code>kfp.gcp</code> extension module has <code>gcp.use_preemptible_nodepool()</code>.
Check the <a href="https://github.com/kubeflow/pipelines/blob/091316b8bf3790e14e2418843ff67a3072cfadc0/samples/core/preemptible_tpu_gpu/preemptible_tpu_gpu.py#L39" rel="nofollow noreferrer">preemptible sample</a>.</p>
