Relative Content

Tag Archive for javascriptkuberneteskubernetes-service

how to get the external ip of a kubernetes service in javascript?

I’m writing an api to create game servers that run in kubernetes. I need to create an endpoint that creates a deployment and a service and then returns the service’s external ip.
I can create both succesfully and if I run kubectl get svc after hiting the endpoint I see this: