rich-painting-81385
08/21/2024, 1:33 PMaverage-finland-92144
08/21/2024, 3:23 PMdefaultIamRole
for each project-domainrich-painting-81385
08/21/2024, 3:35 PMcluster_resources:
customData:
- production:
- defaultIamRole:
value: arn:aws:iam::<account>:role/FlyteWorkers
- staging:
- defaultIamRole:
value: arn:aws:iam::<account>:role/FlyteWorkers
- development:
- defaultIamRole:
value: arn:aws:iam::<account>:role/FlyteWorkers
rich-painting-81385
08/21/2024, 3:36 PMrich-painting-81385
08/21/2024, 3:51 PMapiVersion: v1
kind: ServiceAccount
metadata:
name: default
namespace: '{{ namespace }}'
labels:
foo: baz
but these aren’t showing up either
#kc get sa -n nscheck3-development default -o yaml
apiVersion: v1
kind: ServiceAccount
metadata:
creationTimestamp: "2024-08-21T15:46:32Z"
name: default
namespace: nscheck3-development
resourceVersion: "300961693"
uid: af9f4f6f-73f2-4c9e-9014-fc2486bd28f7
so it seems like this template isn’t actually being used?rich-painting-81385
08/21/2024, 3:52 PMaverage-finland-92144
08/21/2024, 4:18 PMaverage-finland-92144
08/21/2024, 4:20 PMrich-painting-81385
08/22/2024, 8:38 AMflyte-binary-7c9598cf97-zpdrq flyte ERROR 2024/08/21 16:03:59 Could not cast sv to map[string]interface{}; key=%!s(MISSING), st=%!v(MISSING), tt=%!v(MISSING), sv=%!v(MISSING), tv=%!v(MISSING) default-for-task-types=[]interface {} map[string]interface {}=[map[container:container] map[container_array:K8S-ARRAY]] map[container:container container_array:k8s-array sidecar:sidecar]=<nil>
I don’t think the issue is missing permissions in the cluster role as the default
service account is created in the new namespaces, so the flyte binary service account has the correct permissions to do thatrich-painting-81385
08/22/2024, 8:40 AMrich-painting-81385
08/22/2024, 8:46 AMrich-painting-81385
08/22/2024, 8:59 AMaverage-finland-92144
08/22/2024, 4:41 PMdefault-for-task-types
maprich-painting-81385
09/02/2024, 9:23 AMaverage-finland-92144
09/03/2024, 5:55 PMdefault-for-task-types
it's a section that should match what you have enabled in enabled-plugins
. the config depends on what you plan to use
could you share this section of your particular values file?
https://github.com/flyteorg/flyte/blob/61e75da759bbbdaa0cfd3ccbff0cd495fcfc5910/charts/flyte-binary/eks-starter.yaml#L65-L75rich-painting-81385
09/04/2024, 8:42 AMtasks:
task-plugins:
default-for-task-types:
- container: container
- container_array: K8S-ARRAY
enabled-plugins:
- container
- sidecar
- K8S-ARRAY
- agent-service
ERROR 2024/09/04 08:39:33 Could not cast sv to map[string]interface{}; key=%!s(MISSING), st=%!v(MISSING), tt=%!v(MISSING), sv=%!v(MISSING), tv=%!v(MISSING) default-for-task-types=[]interface {} map[string]interface {}=[map[container:container] map[container_array:K8S-ARRAY]] map[container:container]=<nil>
rich-painting-81385
09/04/2024, 8:43 AMsidecar
and agent-service
entries in the default-for-task-types
section?rich-painting-81385
09/04/2024, 8:44 AMrich-painting-81385
09/04/2024, 8:54 AMaverage-finland-92144
09/04/2024, 4:34 PMagent-service
is needed if you're using any of the available Flyte Agents and sidecar
I think is used with Flyte copilot in sidecar mode.
AFAICT if you set something in default-for-task-types
it should be present under enabled-plugins
, the other way is not requiredrich-painting-81385
09/11/2024, 2:32 PM