https://pulumi.com logo
#golang
Title
# golang
b

boundless-telephone-98269

02/13/2022, 5:08 PM
The reason why I need
clusterIP
to be of type
pulumi.StringPtrOutput
instead of
pulumi.AnyOutput
is because I'm passing it on into the environment variable of a kubernetes pod.
a

astonishing-solstice-53645

02/13/2022, 5:26 PM
Is the pod and service in the same namespace? Kubernetes by default passes in services ip as env vars with a feature called service links.
b

boundless-telephone-98269

02/13/2022, 7:53 PM
Ah, this approach also works!
🎉 1
7 Views