Has anyone had success using the Helm charts to ru...
# prefect-kubernetes
a
Has anyone had success using the Helm charts to run both the OSS server edition and add a k8s work pool? Using https://github.com/PrefectHQ/prefect-helm/tree/main/charts/prefect-server and https://github.com/PrefectHQ/prefect-helm/tree/main/charts/prefect-worker respectively. The server starts fine and the API is accesible but the worker is in a crash loop that looks like it is getting a unexpected/bad response from the server API. Error in snippet
Starting a worker from local machine with
prefect worker start --pool 'testing'
worked fine as expected Helm value config is pretty sparse:
Copy code
worker:
  apiConfig: server
  config:
    workPool: testing
    http2: false
    name: abc
  serverApiConfig:
    apiUrl: <http://prefect-server.prefect.svc.cluster.local:4200>
    uiUrl: 
  image:
    debug: True
j
The apiUrl should follow the following format:
Copy code
http://<prefect-server-service-name>.<namespace>.svc.cluster.local:<prefect-server-port>/api
I think you’re just missing
/api
at the end of the defintion
a
Ah. Thought it must be something straightforward. Will give that a go. Thanks
j
np!
a
and it works 🚀
Maybe could add the
/api
to the readme here https://github.com/PrefectHQ/prefect-helm/blob/main/charts/prefect-worker/README.md?plain=1#L147 Just to save the next person
j
it is defined in the values file already, but i’ll see about adding it there as well.