Could someone assist me with k8s setup for Prefect...
# ask-community
m
Could someone assist me with k8s setup for Prefect 3.0? I want to use
run_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 🧵
I've tried going the
Secret
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!