Alias IP Ranges (Google Cloud)

334 views
Skip to first unread message

Rayan Pasta

unread,
Nov 2, 2017, 4:59:23 PM11/2/17
to gce-discussion
Hello,
Google documentation says that If you have multiple services running on a VM, you may want to assign each one a different internal IP address. You can do this with Alias IP ranges.
I'm new to networking and I have followed the steps on the below document and created Alias IP Ranges, but I couldn't figure out how to assign an application to the internal ip that I have created?
Thank you,
Message has been deleted

Karthick (Cloud Platform Support)

unread,
Nov 3, 2017, 4:52:05 PM11/3/17
to gce-discussion

Hello Rayan


Alias IPs are useful to containerized deployments in GCP[1][2]. It allows you to choose a range of private IP address(es) when you want a VM to host multiple containers that require routable IP addresses.

As I am not clear of your use case of your applications, if it is your webserver, at once Alias IP range is added, you should specify the IP or domain within the host configuration of your webserver. So when you request the internal IP you will be redirected to the "VirtualHost" pointed to the IP. You can follow this guide [3] for examples.


In case you have particular questions on Kubernetes applications, you can always refer to the appropriate discussion forum [4]


[1] https://cloud.google.com/container-engine/docs/ip-aliases

[2] https://cloud.google.com/compute/docs/alias-ip/

[3] https://httpd.apache.org/docs/2.4/vhosts/examples.html

[4] https://groups.google.com/forum/#!searchin/kubernetes-users/ip$20aliases|sort:date/kubernetes-users/mW6LGb9lIZM/ReMkgODxAwAJ



Reply all
Reply to author
Forward
0 new messages