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
Anna Geller
Adam Everington
11/09/2021, 3:30 PMAnna Geller
Adam Everington
11/09/2021, 3:37 PMAdam Everington
11/09/2021, 3:38 PMAnna Geller
Anna Geller
kubectl create secret generic prefectprod-postgresql --from-literal='username=YOUR_POSTGRES_USERNAME' --from-literal='password=YOUR_POSTGRES_PWD'
Anna Geller
Adam Everington
11/09/2021, 3:48 PMAdam Everington
11/09/2021, 3:49 PMAnna Geller
Adam Everington
11/09/2021, 3:50 PMAdam Everington
11/09/2021, 3:51 PMAnna Geller
Adam Everington
11/09/2021, 3:53 PMAdam Everington
11/09/2021, 3:54 PMAnna Geller
Adam Everington
11/09/2021, 4:01 PMAdam Everington
11/09/2021, 4:01 PMAnna Geller
Adam Everington
11/09/2021, 4:03 PMZanie
doesn'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!
Zanie
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