Hi, I create an helm chart with Pulumi and need to...
# kubernetes
b
Hi, I create an helm chart with Pulumi and need to access one LB service created from it. How should I go about this? In general, is it possible to get a k8s service in a Pulumi program? Actually I do this:
Copy code
export const hostname = ambassador.getResourceProperty("v1/Service", "ambassador", "status")
but status is not found. Where as with
Copy code
kubectl get svc ambassador -o yaml
I get an output with a status. Is it normal that pulumi does not find the info juste after the creation of the chart?
b
you would need to do this inside an apply so that you get the version when the chart is finished: something like:
Copy code
export const hostname = ambassador.getResourceProperty("v1/Service", "ambassador", "status").apply(status => status.loadBalancer.ingress[0].ip);