There are several ways how you can configure that.
CLI
prefect backend server
This will update the backend.toml
file to “server” as well:
Note that “cloud” is the default.
Using an environment variable
export PREFECT__BACKEND="server"
In a Kubernetes YAML manifest
When deploying to Kubernetes, you can do:
You need to add the following environment variables:
env:
- name: PREFECT__BACKEND
value: server
- name: PREFECT__CLOUD__AGENT__AUTH_TOKEN
value: ''
- name: PREFECT__CLOUD__API
value: "http://some_ip:4200/graphql" # paste your GraphQL Server endpoint here