Ingresses make it easy to implement TLS for a Kubernetes Service. This lab will allow you to practice your skills with Kubernetes Ingress as you add TLS termination on top of an existing Service.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Generate Self-Signed Certificates for the Service and Store Them in a Secret
Create a self-signed certificate and key for the Service. Provide a subject of
/CN=accounts.svc
for the certificate and place it in/home/cloud_user/
. Name the certificateaccounts.crt
and the keyaccounts.key
.- Create an Ingress on Top of the Service That Configures TLS Termination
The
accounts-svc
can be found in theaccounts
namespace. Create an Ingress in that same namespace that configures TLS termination for the Service. Use the certificate and key that you generated earlier. The Service listens on port80
.