如何在 Kubeflow Kale 中指定任务 pod 资源

How to specify task pod resources in Kubeflow Kale

是否可以为使用 Kale 创建的 kubeflow 管道中的任务指定 pod 资源(内存和 CPU 请求和限制)?

为了提供更多细节,在使用 DSL 编写 python 中的 kubflow 管道时,我可以按如下方式指定任务 pod 资源:

    task1 = (
        train_op(...)
        .set_memory_request('600M')
        .set_memory_limit('1200M')
        .set_cpu_request('700m')
        .set_cpu_limit('1400m')
    )

是否可以对羽衣甘蓝做同样的事情?

据我所知,Kale 无法为 kubeflow 管道中的每个任务设置 pod 资源请求和限制。最好的选择是设置 default resources for the namespace,这将为 kubeflow 管道中的所有任务设置 pod 请求和限制。