gray-ocean-62145
08/09/2023, 12:53 PMflyte-backend
namespace - this is where the Flyte binary is deployed. I’ve also deployed this in the Flyte project/domain workspace, but the same issue happens.
apiVersion: v1
kind: PodTemplate
metadata:
name: flyte-template-test
namespace: flyte-backend
template:
spec:
containers:
- name: default
image: <http://docker.io/rwgrim/docker-noop|docker.io/rwgrim/docker-noop>
terminationMessagePath: "/dev/foo"
hostNetwork: false
Then I try and use it with a super simple test:
@task(pod_template_name="flyte-template-test")
def check() -> bool:
return True
Submit it, and it errors with
Workflow[playground:development:using_templates.template_wf.gpu_workflow] failed. RuntimeExecutionError: max number of system retry attempts [11/10] exhausted. Last known status message: failed at Node[n0]. RuntimeExecutionError: failed during plugin execution, caused by: failed to execute handle for plugin [container]: [BadTaskSpecification] PodTemplate 'flyte-template-test' does not exist
I’ve been through the permissions, and the default cluster role should have permission?
...
resources:
- podtemplates
- verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- post
- update
- watch
Does anyone have any pointers? Should be able to do some really cool stuff once I’ve got this workingcalm-zoo-68637
08/09/2023, 12:58 PMgray-ocean-62145
08/09/2023, 1:00 PMcalm-zoo-68637
08/09/2023, 1:02 PMcalm-zoo-68637
08/09/2023, 1:02 PMgray-ocean-62145
08/09/2023, 1:20 PMflyte-backend
namespace, all pretty much default as per the flyte-binary helm chart 😬calm-zoo-68637
08/09/2023, 1:27 PMgray-ocean-62145
08/09/2023, 1:27 PMgray-ocean-62145
08/09/2023, 1:30 PMhallowed-mouse-14616
08/09/2023, 3:48 PMregistered PodTemplate '%s:%s' in store
where %s:%s
is the namespace and PodTemplate name if it is added to the cache. If this doesn't exist, then something is blocking propeller from seeing it.hallowed-mouse-14616
08/09/2023, 3:48 PMgray-ocean-62145
08/10/2023, 9:59 AMhallowed-mouse-14616
08/10/2023, 2:24 PMIs there any setting that needs enabling for PodTemplates?There shouldn't be. Propeller uses a k8s resource watch to capture PodTemplate creations, updates, and deletes. Maybe you could try to emulate a watch using kubectl (something like
kubectl get --watch ...
) with the same permissions as propeller and see if the PodTemplate changes are viewable. It sounds like for some reason propeller isn't being notified of updates from the k8s apiserver.calm-zoo-68637
08/11/2023, 2:51 AMconfiguration:
inline:
plugins:
k8s:
default-pod-template-name:
gray-ocean-62145
08/11/2023, 9:51 AMhallowed-mouse-14616
08/11/2023, 12:32 PMdefault-pod-template-name
value was set. However, with the introduction of task-level PodTemplates this should be running continuously.gray-ocean-62145
08/11/2023, 12:42 PMflat-exabyte-79377
08/11/2023, 9:23 PM