Mauricio Cruz
11/13/2024, 8:12 PMrun_namespaced_job
from prefect-kubernetes
, but I'm worried about the step where I have to upload the KubernetesClusterConfig
to the Prefect Cloud UI. Image 1 shows the UI for adding a new KubernetesCredentials
block. There's no field where I can enter my kubeconfig
file and have it be encrypted and not stored in plain text. If I click on the +
button to create a KubernetesClusterConfig
, a pop up shows up where I supposedly have to enter the kubeconfig
file. Image 2 is a simulation of me adding the creds (which would be from a kubeconfig
file), granting access to my staging cluster. Image 3 shows that two blocks were created. If I click on the "dummy" KubernetesClusterConfig
block, you can see that the contents are being stored in plain text - which is not good. Am I overlooking something here?
I have a follow up that I'll post in the 🧵Mauricio Cruz
11/13/2024, 8:14 PMSecret
block route. I'd read the secret inside my flow, then feed that into KubernetesClusterConfig.from_file
. What's strange to me is - why can't I just import the contents of the secret as a yaml
or json
directly into KubernetesClusterConfig
? The only API available is from_file
which seems very cumbersome (I'd have to do something like a tempfile
).
Honestly I feel like I might be missing something super obvious here... Any help is appreciated, tks!