Is it possible to setup a k8s server that support ...
# prefect-kubernetes
g
Is it possible to setup a k8s server that support both in cluster and external workpools? I my case all the workers will like in k8s, but some of the workers spin up external cluster infrastructure
k
As long as the workers can reach both the infra they're managing and the server, I don't think it matters much where they are!
g
@Kevin Grismore how do I handle the api_url config so that the internal flows use the internal srv and the external use the ingress
Do I add infrastruce overides on the workerpools?
for the external?
k
hmm that's a good point. Does it feel like a reasonable suggestion to just point them all at the ingress?
Otherwise, I think it'd work fine to set the api url env var on each worker accordingly
g
or maybe other way around default to the ingress and override for internal
ok cool. I will play with it and see what I get
k
reaching an ingress from inside the cluster isn't a thing I've tried before, but it seems like it's possible with hostAliases. With something like this you could point everything, internal and external, to the ingress