strong-airline-94938
05/24/2023, 9:35 PMaverage-finland-92144
05/24/2023, 10:04 PMflyte-binary
?strong-airline-94938
05/25/2023, 2:20 PMconfigmap
which can be read in plain text and was wondering if it was currently possible to have them stored in something like flyte-admin-secrets
?average-finland-92144
05/30/2023, 6:16 PMadditionalVolumes
in values
to mount and then reference a secretstrong-airline-94938
05/30/2023, 6:25 PMpassword
to these blocks, they are stored in plain text in the configmap
for each service. Is there a way to set the postgres password elsewhere without creating a custom secret?
# Database configuration
db:
datacatalog:
database:
port: 5432
username: postgres
host: postgres
dbname: "datacatalog"
admin:
database:
port: 5432
username: postgres
host: postgres
dbname: "flyteadmin"
average-finland-92144
05/30/2023, 6:54 PMcommon:
databaseSecret:
to reference a K8s secret and then one of the templates (secret.yaml
) will use itstrong-airline-94938
05/30/2023, 6:57 PMflyte
namespace as well, assuming it was being deployed to the flyte namespace right? If possible we want to avoid any pre or post deployment commands to helm upgrade --install flyte
average-finland-92144
05/30/2023, 7:08 PM--create-namespace
to helm upgrade
In regards to secrets, in this case they would have to be created beforehand. You could also rely on an external service to handle database passwords dynamically.
In this example, a Flyte user shares how they use ExternalSecrets
operator and AWS Secrets Manager to do it
https://github.com/alexifm/flyte-eks-deploymentstrong-airline-94938
05/30/2023, 7:12 PMvalues.yaml
and then end up as secrets via the helm deployment. I was tinkering with the idea of adding this capability but wanted to vet the existing helm charts before I went down that roadcalm-zoo-68637
08/07/2023, 6:00 PMdb-password:
kubectl describe secret db-password
Name: db-password
Namespace: flyte
Labels: <none>
Annotations: <none>
Type: Opaque
Data
====
pass.txt: 32 bytes
and in my values.yaml I have
...
common:
databaseSecret:
name: db-password
...
and I confirmed that I can use the password I get from kubectl
to authenticate in sqladmin:
kubectl get secret db-password -o jsonpath='{.data.pass\.txt}' | base64 --decode
but I still see:
kubectl logs deploy/flyteadmin -c run-migrations
time="2023-08-07T17:55:25Z" level=info msg="Using config file: [/etc/flyte/config/cluster_resources.yaml /etc/flyte/config/db.yaml /etc/flyte/config/domain.yaml /etc/flyte/config/remoteData.yaml /etc/flyte/config/server.yaml /etc/flyte/config/storage.yaml /etc/flyte/config/task_resource_defaults.yaml]"
2023/08/07 17:55:28 /go/pkg/mod/gorm.io/gorm@v1.24.1-0.20221019064659-5dd2bb482755/gorm.go:206
[error] failed to initialize database, got error failed to connect to `host=<http://flyteadmin.postgres.database.usgovcloudapi.net|flyteadmin.postgres.database.usgovcloudapi.net> user=flyteadmin database=flyteadmin`: server error (FATAL: password authentication failed for user "flyteadmin" (SQLSTATE 28P01))
calm-zoo-68637
08/07/2023, 6:00 PMaverage-finland-92144
08/08/2023, 10:40 AMflyte-binary
chart, you can follow the instructions here to leverage a pre created K8s secretcalm-zoo-68637
08/08/2023, 12:01 PMcalm-zoo-68637
08/08/2023, 12:01 PMFlyte enables production-grade orchestration for machine learning workflows and data processing created to accelerate local workflows to production.
Powered by