Hello everyone. I am Helm based deployment of Pref...
# ask-community
m
Hello everyone. I am Helm based deployment of Prefect. Setup is done with k8s agent for job propagation. I am confused for about how to go and load the files inside the platform. I see it supports Gitlab storage. But is there a way to sync the code to Prefect with CI?
k
Hey @Mexson Fernandes, are you asking how to get files to Prefect? You won’t see files here in the UI. You
register
a flow, and then it shows up here. The Flow would specify that the storage used is Gitlab storage. When the flow runs, it would retrieve it from the Gitlab storage and then run it. Syncing the code to Prefect means that you would use the CI to register the flows that live in Python scripts once there is a change. It would be a matter of using the Prefect CLI commands to register
prefect register …
. Maybe this thread has links that can help you.
m
oka with this I can create Gitlab CI to register the flow.
this means I need RBAC for CI tool to manage flows
k
You need to authenticate the CI tool yep.
1
m
how can I enable RBAC in k8s ?
options are disabled
k
RBAC is a Cloud feature
m
oka. So I cannot grab the token also ? API token to run something
k
If you use Server, no authentication is required.
m
yeah