Book Image

Google Cloud Platform Administration

By : Ranjit Singh Thakurratan
Book Image

Google Cloud Platform Administration

By: Ranjit Singh Thakurratan

Overview of this book

On-premise data centers are costly to manage. If you need a data center but don’t want to deal with a physical one, Google Cloud Platform (GCP) is the solution. With GCP, you can build, test, and deploy applications on Google’s infrastructure. Google Cloud Platform Administration begins with GCP fundamentals, with the help of which you will deploy your first app and gain an understanding of Google Cloud architecture and services. Furthermore, you will learn how to manage Compute, networking, and storage resources. As you make your way through the book, you will learn how to track and manage GCP’s usage, monitoring, and billing access control. You will also be able to manage your GCP's access and permissions. In the concluding chapters, you will explore a list of different developer tools for managing and interacting with the GCP platform. By the end of this book, you will have learned how to effectively deploy workloads on GCP.
Table of Contents (11 chapters)

Configuring cluster networking

Now that we have a cluster deployed with three nodes and a deployment with varying number of pods, let's look at how to expose these pods so we can access our application. Kubernetes services are exposed by using a load balancer. Load balancing allows your cluster services to be available on a single IP address. In Kubernetes, you create internal load balancers, which make it easier for you to expose your services between GCP applications, if needed.

For our exercise here, exposing the deployed pods to the internet is easy. If you noticed, we had deployed the nginx images as our workloads. Let's look at exposing this to the internet so we can access our pods:

  1. Open up your workload and click on Expose:
  1. You will see the next screen that allows you to map an external port to an internal port. This internal port is the port your application...