Exploring CloudProvider on GKE
GKE works as a native Kubernetes Cloud Provider, which integrates with resources in Kubernetes seamlessly and allows you to provision on demand, for example, VPC routes for the network, Persistent Disk (PD) for StorageClass, L4 load balancer for Service, and L4 load balancer for ingress.
Getting ready
By default, when you create the network and launch a Kubernetes cluster in Google Cloud Platform with proper routes, containers can already talk to each other without an explicit network being set up.Beyond the resources listed previously, we don't need to set any settings explicitly in most cases. GKE will just work.
How to do it…
Let's see how convenient GKE offers about storage, network and more.
StorageClass
In Chapter 2, Walking through Kubernetes Concepts, we learned how to declare PersistentVolume
and PersistentVolumeClaim
. With dynamic provisioning, you can define a set of StorageClass
with different physical storage backends and use them in PersistentVolume...