- A Cloud Guru
Add TLS to a Kubernetes Service with Ingress
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.
Table of Contents
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.svcfor the certificate and place it in
/home/cloud_user/. Name the certificate
accounts.crtand the key
Create an Ingress on Top of the Service That Configures TLS Termination
accounts-svccan be found in the
accountsnamespace. 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 port
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.