https://pulumi.com logo
#getting-started
Title
# getting-started
q

quaint-pharmacist-79538

08/18/2022, 1:53 PM
Hello Pulumi, Im looking for a solution to get my public Ip from Kubernetes ingress ? Something like :
Copy code
let service = Service.get("my-release-nginx-ingress")
let myIp = service.status.loadBalancer.ingress[0].ip
But : the service "my-release-nginx-ingress" was not created by pulumi, it was already here. Any tips for me ?
b

billowy-army-68599

08/18/2022, 3:42 PM
have you tried that? it should work if you set the
Service.get
to the right service name
q

quaint-pharmacist-79538

08/19/2022, 6:02 AM
you should give 2 params :
I do not know my pulumi ID because is an external element?
b

billowy-army-68599

08/19/2022, 2:15 PM
It should be namespace/service name
5 Views