This blog was written by me after a long gap of close to 7 months. Many reasons including busy work schedule, some health issues in the middle and a little bit of laziness contributed to this. I hope to be a more active blogger going forward.
In this blog series, I will cover the following topics:
The first blog in this series will talk about GKE default IP address management.
Following are the Kubernetes abstractions that needs IP addresses:
- Node IP address – Assigned to individual nodes. The node ip address is assigned from the VPC subnet range.
- Pod IP address – Assigned to individual pods. All containers within a single pod share same IP address.
- Service IP address- Assigned to individual service
By default, “/14” address gets allocated for cluster IP range. Pod and service IP addresses comes out this pool. “/24” address that comes out of the cluster IP range gets assigned to each individual node and is used for pod IP allocation. “/20” address that comes out of the cluster IP range gets assigned for Kubernetes services. The user has a choice to select cluster IP range when creating the cluster.
To illustrate some of the above points, I have created a 3 node Kubernetes cluster with IP aliasing disabled. By default, VPC native clusters(ip aliasing enabled) is disabled and has to enabled manually. In the future GKE release, VPC native clusters will be the default mechanism.
Cluster output:
Continue reading VPC native GKE clusters – IP address management →