Is there a straightforward way to to tell tasks to...
# ask-the-community
b
Is there a straightforward way to to tell tasks to launch nodes with a particular AMI? I know "straightforward" is doing a lot of lifting in that sentence...
Or if it’s for specific tasks, maybe defining this same thing in the
@task
decorator
b
Thanks for the quick reply! what do you mean by "same thing" here? Are all of these parameters available to be defined in the decorator? I'd like some volumes already mounted, etc as I had previously set up in my ami for lambda calls
(and it is for a specific task, yes)
f
Copy code
from flytekitplugins.pod import Pod
from kubernetes.client.models import V1PodSpec

@task(
    task_config=Pod(
        pod_spec=V1PodSpec(
            node_selector={},

        )
    )
)
def your_task():
    pass
Would take a look at this
I guess you’re launching tasks as pods in k8s, right?
b
yep
f
Then you can configure things for specific tasks like that
b
awesome. I will take a look at this (tomorrow). thank you!