Mars08/09/2022, 6:42 PM
?) Are there additional agent settings in 2.0 I should be aware of for running a production k8s deployment, like the work queue name? If so, do they have envvars, and where in the docs can I read about them?
apiVersion: apps/v1 kind: Deployment metadata: name: agent namespace: dev spec: selector: matchLabels: app: agent replicas: 1 template: metadata: labels: app: agent spec: containers: - name: agent image: prefecthq/prefect:2-python3.9 command: ["prefect", "agent", "start", "--tag", "k8s"] imagePullPolicy: "IfNotPresent" env: - name: PREFECT_API_URL # other env var works the same way value: xxx
Mars08/10/2022, 1:42 PM
Are there additional agent settings in 2.0 I should be aware of for running a production k8s deploymentthe answer to this question is no 🙂 you need only PREFECT_API_KEY and PREFECT_API_URL pointing to your Cloud workspace and you're good to go