menu
arrow_back

Deploy a Web App on GKE with HTTPS Redirect using Lets Encrypt

Deploy a Web App on GKE with HTTPS Redirect using Lets Encrypt

1 jam 7 Kredit

GSP269

Google Cloud Self-Paced Labs

Introduction

GKE does not provide a managed HTTPS offering, so it can be a bit daunting trying to take on the task of obtaining a valid TLS certificate without prior experience. You will need to find a Certificate Authority (CA) to provide a browser-trusted certificate and you need a way to manage those certificates.

With Let's Encrypt, you have access to a free, automated, and open certificate authority (CA), run for the public's benefit. Let's Encrypt provides a browser-trusted certificate for your web services. In combination with cert-manager, a Kubernetes add-on, the management and issuance of TLS certificates from Let's Encrypt will be completely automated.

Since GKE also lacks built-in HTTP to HTTPs redirect for Google Cloud Load Balancers (GCLB), an NGINX ingress will be deployed to handle HTTP to HTTPs redirect.

What you will build

In this lab, you're going to deploy a containerized web app in a GKE cluster with HTTPS using a browser-trusted TLS certificate and NGINX to route all HTTP traffic to HTTPS. Google Cloud Endpoints is used for its ability to dynamically provision DNS entries under cloud.goog DNS domain.

What you'll learn

In this lab you'll learn how to do the following:

  • Deploy a containerized web app

  • Set up an NGINX ingress for HTTP to HTTPS redirect

  • Install a cert-manager into a cluster to automate getting TLS/SSL certificates

  • Deploy/modify an ingress with TLS enabled

What you'll need

  • A recent version of Chrome is recommended
  • Basic knowledge of Linux CLI and gcloud

This lab is focused on GKE deployment and management. Non-relevant concepts and code blocks are glossed over and are provided for you to simply copy and paste.

Bergabunglah dengan Qwiklabs untuk membaca tentang lab ini selengkapnya... beserta informasi lainnya!

  • Dapatkan akses sementara ke Google Cloud Console.
  • Lebih dari 200 lab mulai dari tingkat pemula hingga lanjutan.
  • Berdurasi singkat, jadi Anda dapat belajar dengan santai.
Bergabung untuk Memulai Lab Ini
Skor

—/100

Allocate a Static IP

Jalankan Langkah

/ 10

Create a Kubernetes Engine Cluster

Jalankan Langkah

/ 20

Install Helm

Jalankan Langkah

/ 15

Install NGINX Ingress

Jalankan Langkah

/ 10

Deploy "Hello World" App

Jalankan Langkah

/ 25

Set Up HTTPS

Jalankan Langkah

/ 20