https://prefect.io logo
Title
n

Naila Chennit

02/01/2023, 11:42 AM
Hi prefect community ! I try to run my flow on a kubernetes cluster that use VPC So actually i deployed my agent on that cluster, I can see that the flow get pulled but it can not create a pod on the cluster, because the prefect api requests are getting filtered. So my question is which ips should I whitelist to be able to run my flows on that cluster ?
c

Christopher Boyd

02/01/2023, 4:27 PM
Hi Naila, For the prefect agent, can you share some logs of the agent.log? Potentially, can you set the environment variable in the deployment spec :
- name: PREFECT_LOGGING_LEVEL
              value: DEBUG
Agent requests are outbound only, so just to verify that’s even an issue, you can shell into the pod, and test that you can reach it in general:
curl <https://api.prefect.cloud>
What error are you receiving that you think this is a whitelisting issue?
What is the error when creating a pod on the cluster?
n

Naila Chennit

02/07/2023, 8:30 AM
Hi Christopher, there was an issue with my k8 cluster config , putting the right IP fixed it. Thank you 😃