New RunLLM response generated:
>>>*# Question*
Hi All,
I am new to flyte. I have a query is there any way to configure permissions in flyte , so that if a user is running pyflyte to execute some workflows and tasks which are asking for huge cpu, gpu get's in paused state and only flyteadmin will be able to approve and execute.
If the user is asking for reasonable amount then he can execute on his own through pyflyte.
It would be of great help , if this use case can be applied.
# Answer
Flyte does not currently support role-based access control (RBAC) or permission configurations directly within its core system to approve or deny resource requests based on user roles. According to
this discussion, Flyte does not have built-in RBAC.
However, you can manage resource allocation using Kubernetes features. For instance, you can set up Kubernetes namespaces with resource quotas to limit CPU and GPU usage per namespace. This way, you can control resource allocation at the namespace level, but it won't provide the user-specific approval mechanism you described.
Would you like more details on configuring Kubernetes resource quotas or other potential workarounds?
Sources:
-
Flyte Discuss - Access Controls
-
Flyte GitHub Issue - Access Control
Slack Link
https://flyte-org.slack.com/archives/CP2HDHKE1/p1719992568.721619 👍 0 button 👎 0 button 💡
Hint: Mention @runllm in the thread for followups.