https://prefect.io logo
Title
g

gayle tan

09/20/2021, 3:42 AM
Hi, I have deployed prefect-server via Helm charts and configured a K8s agent for an on-prem server. I’m seeing that the Kubernetes has 0 submittable runs and i cant seem to trigger a quick run of the demo file. is there any additional config required when submitting/registering a flow, when i set the prefect config?
[server]
  endpoint = "<http://myserver.name/backend>"
  [server.ui]
  endpoint = "<http://myserver.name/>"
  apollo_url= "http:/myserver.name/backend"
[ui]
  endpoint = "<http://myserver.name>"
k

Kevin Kho

09/20/2021, 3:58 AM
Hey @gayle tan, were you able to register a flow and see it in the UI? I think you want:
[server]
  [server.ui]
    apollo_url = "<http://YOUR_MACHINES_PUBLIC_IP:4200/graphql>"
but I guess you directed
backend
to that?
For the agent/registration it would be:
[server]
endpoint = "YOUR_MACHINES_PUBLIC_IP:4200/graphql"
And then do
prefect backend server
also, otherwise you'll hit Prefect cloud
g

gayle tan

09/20/2021, 5:57 AM
Hi, Yes, the flows are registered. i realised that i had to add labels(to the agent and the flow) and it seems to run. Although i was wondering whether it’s possible to overwrite the default labels when you submit the job thru the script
a

Amanda Wee

09/20/2021, 6:32 AM
You can set the labels on the flow by setting its run config: https://docs.prefect.io/orchestration/flow_config/run_configs.html#labels The default label you're referring to might be the one set by
LocalAgent
by default. You can read more about it and how to disable the default here: https://docs.prefect.io/orchestration/agents/local.html#labels I just set the same label on the local agent and the flows designated for that agent instead.
:upvote: 2
k

Kevin Kho

09/20/2021, 1:41 PM
You can
add_default_labels=False
to Storage if you are using Local Storage