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

Lucien Fregosi

07/19/2022, 9:29 AM
Hi I have a question regarding prefect running on kubernetes through helm template deployment. I have troubleshooting connecting the prefect UI with the apollo server. I use a clusterIp service to be able to communicate between the pods. I’m running a service on top of apollo with cluster IP
10.1.70.59
. When I exec the ui pod I can succesfully reach
curl 10.1.70.59:4200/graphql
However within the Prefect UI I can’t connect to the URL. Any idea why ?
m

Mathijs Carlu

07/19/2022, 12:28 PM
Because it's your browser that makes those requests, thus from outside of your cluster
l

Lucien Fregosi

07/19/2022, 1:26 PM
Hmm same result with
apolloApiUrl: <http://localhost:4200/graphql>
or either
apolloApiUrl: <http://10.1.70.59:4200/graphql>
From what I understood with your message the request is made through the browser (how could it even work with localhost ??) but it would be better to make the request within the cluster with private ips. The thing is I would be able to reach the apollo with a public url based on my domain but we protect any domain URL with our google SSO (that means that the UI is not authorized to make the request to apollo server)
m

Mathijs Carlu

07/19/2022, 2:06 PM
If you check your browser developer console, you'll see that the browser is making requests to <apolloApiUrl>. This means your api should be exposed to the public internet for the UI to be able to work. If you only temporarily need the UI, you could port-forward all traffic to/from graphql to your localhost, but it's of course not an ideal solution
l

Lucien Fregosi

07/19/2022, 4:49 PM
Ok indeed not ideal .. Is it a feature planned in prefect side to support communication between ui and server through a kubernetes services ?
m

Mathijs Carlu

07/20/2022, 5:49 AM
As they are releasing prefect 2.0 next week (https://prefect-community.slack.com/archives/CKNSX5WG3/p1658270821320139), I don't think many features are still coming for prefect 1
l

Lucien Fregosi

07/20/2022, 7:16 AM
Hmm interesting !! 👍 Is there any helm template provided ? Or at least a docker image ?
m

Mathijs Carlu

07/20/2022, 7:22 AM
l

Lucien Fregosi

07/20/2022, 7:24 AM
incredible thanks @Mathijs Carlu i will give a try for sure
👍 1
@Mathijs Carlu Communication between API and Agent is still on the public internet with a public URL between api & agent ?
m

Mathijs Carlu

07/20/2022, 9:54 AM
Yes, I assume that authentication/authorization is not on the roadmap for server, as they provide that through prefect cloud ('premium' version)
9 Views