Michael Kang
01/23/2024, 5:45 AMprefect server
and prefect worker
on my company’s kubernetes using the official helm charts but having some problems. can someone help me to resolve the issues?
chart: https://github.com/PrefectHQ/prefect-helm/tree/main
prefect-server prefect 1 2024-01-22 20:40:27.215408 -0800 PST deployed prefect-server-2024.1.19 2.14.16
prefect-worker prefect 1 2024-01-22 20:58:28.255938 -0800 PST deployed prefect-worker-2024.1.19 2.14.16
Michael Kang
01/23/2024, 5:46 AMworker:
apiConfig: selfHosted
selfHostedApiConfig:
apiUrl: "<https://prefect.company.com/api>"
uiUrl: "<https://prefect.company.com/>"
I’m getting this error.
helm upgrade --install -f k8s/prefect-worker/values.yaml -f k8s/prefect-worker/values.dev.yaml --wait --namespace prefect our-prefect-worker prefect/prefect-worker
Release "our-prefect-worker" does not exist. Installing it now.
Error: execution error at (prefect-worker/templates/_helpers.tpl:74:94): A Prefect Cloud Account ID is required (worker.selfHostedApiConfig.accountId)
Michael Kang
01/23/2024, 5:50 AMcloud
only feature:
https://docs.prefect.io/latest/guides/host/#differences-between-a-self-hosted-prefect-server-and-prefect-cloudMichael Kang
01/23/2024, 5:52 AMworker:
apiConfig: selfHosted
selfHostedApiConfig:
apiUrl: "<https://prefect.company.com/api>"
uiUrl: "<https://prefect.company.com/>"
accountId: xxxxxxx-xxxx-xxxx-xxxx-xxxxxx
workspaceId: xxxxxxx-xxxx-xxxx-xxxx-xxxxxx
then the chart gets installed
+ helm upgrade --install -f k8s/prefect-worker/values.yaml -f k8s/prefect-worker/values.dev.yaml --wait --namespace prefect our-prefect-worker prefect/prefect-worker
Release "our-prefect-worker" does not exist. Installing it now.
NAME: our-prefect-worker
LAST DEPLOYED: Mon Jan 22 21:41:55 2024
NAMESPACE: prefect
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Check Prefect worker connections in the prefect UI at "<https://prefect.company.com//account/xxxxxxx-xxxx-xxxx-xxxx-xxxxxx/workspace/xxxxxxx-xxxx-xxxx-xxxx-xxxxxx>"
Michael Kang
01/23/2024, 5:53 AMprefect.exceptions.PrefectHTTPStatusError: Client error '403 Forbidden' for url '<https://prefect.company.com/api/accounts/xxxxxxx-xxxx-xxxx-xxxx-xxxxxx/workspaces/xxxxxxx-xxxx-xxxx-xxxx-xxxxxx/work_pools/onec-k8s-work-pool>'
Michael Kang
01/23/2024, 5:54 AMMichael Kang
01/23/2024, 5:54 AMJamie Zieziula
01/23/2024, 1:31 PMMichael Kang
01/23/2024, 8:23 PMserver
configs