https://pulumi.com logo
#kubernetes
Title
# kubernetes
l

limited-rainbow-51650

09/30/2020, 3:33 PM
I’m adding two TS
exports
to my Pulumi project from a k8s
Service
resource but only a single output is created:
Copy code
exports.temporalFrontendEndpoint = temporal_frontendService.spec.externalName;
exports.temporalFrontEndName = temporal_frontendService.metadata.name;
results in:
Copy code
--outputs:--        
  + temporalFrontEndName: "temporal-frontend-vw2qfr65"
Any idea why the
externalName
is not created as an output?
b

billowy-army-68599

09/30/2020, 3:35 PM
This is usually because the value is nil, can you double check that field exists via kubectl?
l

limited-rainbow-51650

09/30/2020, 3:36 PM
I’m naively thinking this would give me the
<servicename>.<namespace>.svc.cluster.local
address. I’m probably wrong. Any idea which field would give me that kubedns name?
Or do I have to calculate this myself? E.g.
Copy code
pulumi.interpolate `${temporal_frontendService.metadata.name}.${temporal_frontendService.metadata.namespace}.svc.cluster.local:7233`
5 Views