https://prefect.io logo
#prefect-server
Title
# prefect-server
n

Niels Prins

03/28/2022, 1:21 PM
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

Kevin Kho

03/28/2022, 1:49 PM
How do you add it to k8s? Could you show me?
a

Anna Geller

03/28/2022, 2:04 PM
n

Niels Prins

03/29/2022, 7:48 AM
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

Anna Geller

03/29/2022, 9:26 AM
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

Niels Prins

03/29/2022, 1:02 PM
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

Anna Geller

03/30/2022, 10:19 AM
Thank you so much!
5 Views