Hi Prefect-Experts, Can someone point me to a simp...
# ask-community
a
Hi Prefect-Experts, Can someone point me to a simple example where you show steps to deploy and schedule a flow on kubernetes cluster via
Helm
, the Prefect server also deployed to the kubernetes via Helm, now need to try-out a flow on that Prefect-server, does anyone has example/page?
j
Hi @Ajith Kumara Beragala Acharige Lal while I don’t have any example docs for this specifically the README for the helm chart goes over spinning up the server on k8s via helm https://github.com/PrefectHQ/server/tree/master/helm/prefect-server and then after you have that running and can access the server’s GraphQL API (the apollo service) the orchestration tutorial should run you through getting your flows set up https://docs.prefect.io/orchestration/tutorial/overview.html#create-a-personal-access-token I encourage others to jump in if they have more resources 🙂
a
Thank you @josh for the reply, I have already installed the prefect-server on our k8s cluster with the help of https://github.com/PrefectHQ/server/tree/master/helm/prefect-server README..... Question regarding the token - is this limited to usage of "cloud.prefect.io" ? or can i use same token to register flows on our Prefect-server (on K8S) ?🤔
j
Tokens are specifically meant to authenticate with Prefect Cloud and you do not need to use them when working with the Server
a
thanks @josh ! now the primary question is how to register a flow on the Prefect-server ( where you don't have agent running on local machine-instead a pod) - I might missing something here
m
Hello! There is an option in helm chart to create an agent, did you enabled it?
a
Hi @Mariia Kerimova, thanks for the response! I've created agent and tenant too, whats don't understand is how to deploy a workflow - is it same like without Helm
$python3 scrip_with_flow_register.py
and this script will register the flow ?