Adam Everington
11/09/2021, 3:00 PMhelm install prefectprod prefecthq/prefect-server -n prod --set agent.enabled=true --set postgresql.postgresqlUsername=admin%40my-server --set postgresql.postgresqlPassword=p%40ssword123 --set postgresql.externalHostname=<http://my-server.postgres.databases.azure.net|my-server.postgres.databases.azure.net> --set postgresql.useSubChart=false
when looking at my pods I'm getting the followingAnna Geller
11/09/2021, 3:28 PMAdam Everington
11/09/2021, 3:30 PMAnna Geller
11/09/2021, 3:34 PMAdam Everington
11/09/2021, 3:37 PMAnna Geller
11/09/2021, 3:45 PMkubectl create secret generic prefectprod-postgresql --from-literal='username=YOUR_POSTGRES_USERNAME' --from-literal='password=YOUR_POSTGRES_PWD'
Adam Everington
11/09/2021, 3:48 PMAnna Geller
11/09/2021, 3:50 PMAdam Everington
11/09/2021, 3:50 PMAnna Geller
11/09/2021, 3:53 PMAdam Everington
11/09/2021, 3:53 PMAnna Geller
11/09/2021, 3:59 PMAdam Everington
11/09/2021, 4:01 PMAnna Geller
11/09/2021, 4:02 PMAdam Everington
11/09/2021, 4:03 PMZanie
11/09/2021, 6:03 PMdoesn't this encourage you to create bad code by sticking as much into a single task as possible?You can game the system and put as much into a single task as you'd like. This doesn't really change your developer experience though, you can still split code into functions that are called within that task. This doesn't have to be bad code. Rolling things into a single task just affects the granularity at which Prefect is orchestrating your code. This is why it's a good metric for cost—it directly corresponds to the value we are providing. If you don't need your orchestration / visibility and can get away with fewer tasks, great. If you need fine-grained orchestration and visibility, you may eventually have to pay for it, but hopefully there's a clear benefit for your $$. And as Anna mentioned, the free tier should get you far!
postgresql-password
and the secret name can be anything but must be set in existingSecret
.
See https://github.com/PrefectHQ/server/blob/master/helm/prefect-server/values.yaml#L52-L57