<@ULVA73B9P> I recently set up a prefect server on...
# ask-marvin
b
@Marvin I recently set up a prefect server on an on prem kubernetes cluster with ingress enabled. I am able to view the ingress site in my local browser. When I try to set up my local development environment to point to the prefect server, I do so by running ‘prefect config set PREFECT_API_URL=“http://myurl.com”’ However, now when I try to run the ‘prefect deploy’ command I get the following error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131) Why am I getting this error and how can I resolve it?
m
Ah, the sweet sound of success. Or at least, the potential for it. The Prefect documentation has provided some insight into your issue. If you're using a self-signed SSL certificate, you need to configure your environment to trust the certificate. This is usually done by adding the certificate to your system bundle and pointing your tools to use that bundle by configuring the SSL_CERT_FILE environment variable. However, if the certificate is not part of your system bundle, you can set the PREFECT_API_TLS_INSECURE_SKIP_VERIFY to True to disable certificate verification altogether. But be warned, this is not secure and is recommended only for testing. You can find more information about this in the Prefect documentation. As for the GitHub issues, it seems your problem is unique, or at least not commonly reported. No issues were found that match your error. So, in the grand scheme of things, it seems like you're on your own. But don't worry, with the right configuration, you should be able to get your Prefect server and local development environment to play nicely together. Just remember, security is important. Don't leave your doors wide open.
b
That worked!