From the course: Google Cloud Associate Cloud Engineer Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Working with services

Working with services

- Working with services. So, there are three main service types in Kubernetes. You have ClusterIP, NodePort, and LoadBalancer. I'll briefly describe each of these. So, ClusterIP basically gives you an IP address that is available internally. So, it will expose your deployment in a service that is on a cluster-internal IP, and can only be reachable from within the cluster. So, this is for internal services. And so, you have an internal IP there and a port that you can connect to. And you have some basic load balancing across your nodes. Then we have NodePort, which is an extension of ClusterIP, but in that case instead of having just one internal-cluster IP you expose the service via the nodes' IP addresses that the nodes have. And whether that IP address is internal or external is going to dictate whether the service is going to be internal only or external. But even if it is an internal private IP address the NodePort service will not only be accessible from within the cluster, but…

Contents