https://pulumi.com logo
#general
Title
# general
s

straight-fireman-55591

08/16/2023, 12:28 PM
hi, how can I deploy nginx to kubernetes, get external IP from google cloud of that loadbalancer and attach a domain to that IP? Currently I deploy nginx using
kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release>
but I can't find a way to get the IP address from within pulumi itself. I can use python or other way but I though
kubernetes.core/v1.ServiceList
or similar could describe a kubernetes service.
d

dry-keyboard-94795

08/16/2023, 12:37 PM
How are you creating the IP address currently?
s

straight-fireman-55591

08/16/2023, 12:40 PM
I don't it's assigned automatically. I can create one in pulumi, use that in helm value and then use it again to attach to a domain? Did I just answer my own question ?
d

dry-keyboard-94795

08/16/2023, 12:40 PM
🙂
You'll be able to use this to create the IP in GCP: https://www.pulumi.com/registry/packages/gcp/api-docs/compute/globaladdress/
s

straight-fireman-55591

08/16/2023, 12:43 PM
thank you , was just reading it 🙂
4 Views