How to use custom TLS certificate with ingress addon

Overview

  • This tutorial will show you how to configure custom TLS certificatate for ingress addon.

Tutorial

  • Start minikube
  1. $ minikube start
  • Create TLS secret which contains custom certificate and private key
  1. $ kubectl -n kube-system create secret tls mkcert --key key.pem --cert cert.pem
  • Configure ingress addon
  1. $ minikube addons configure ingress
  2. -- Enter custom cert(format is "namespace/secret"): kube-system/mkcert
  3. ingress was successfully configured
  • Enable ingress addon (disable first when already enabled)
  1. $ minikube addons disable ingress
  2. 🌑 "The 'ingress' addon is disabled
  3. $ minikube addons enable ingress
  4. 🔎 Verifying ingress addon...
  5. 🌟 The 'ingress' addon is enabled
  • Verify if custom certificate was enabled
  1. $ kubectl -n ingress-nginx get deployment ingress-nginx-controller -o yaml | grep "kube-system"
  2. - --default-ssl-certificate=kube-system/mkcert

Last modified July 29, 2021: fix casing for Tuturials| replaced arrow with blank space | top level box color change to blue ( as per the asthetics) when selected (23a4cd3f0)