Hi all, Short question. I have a flow stored in G...
# prefect-server
n
Hi all, Short question. I have a flow stored in GIT which I want to run on K8s. I have given the agent acces to the ENV variable PREFECT__CONTEXT__SECRETS__GITEA for my GIT key, which is populated via a secret in k8s. When running the flow I get the follwing message
Failed to load and execute Flow's environment: ValueError('Local Secret "GITEA" was not found.')
When trying the same thin with a docker agent, everything goes fine. What am I missing in my configuration. We are still on prefect 0.15.3
k
How do you add it to k8s? Could you show me?
a
n
Thnxs, I was under the assumption that the agent was responsible for pulling the flow from Git. Got the pull working at the moment, now running into SSL issues at our side
(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)')))
Is there a flag to turn the SSL certificate check off?
a
kind of, you can do:
Copy code
export CURL_CA_BUNDLE=''
export PYTHONHTTPSVERIFY='false'
more explanation is here https://discourse.prefect.io/t/how-to-disable-the-ssl-verification-when-setting-up-a-pr[…]e-verify-failed-unable-to-get-local-issuer-certificate/597
n
I rather not, but for testing =D =D. Fixed it the proper way though. Proxy thingy at our IT dep =S
👍 1
thanks for all the help by the way. Really do appreciate how active and helpfull this community is =D
❤️ 1
a
Thank you so much!