Skip to content

klaushofrichter/Minikube-and-LetsEncrypt

Repository files navigation

Minikube and Let's Encrypt

This repository contains sources for a related medium.com article with more details. It explains how to connect a local Minikube cluster to the public Internet and generate a Let's Encrypt certificate.

To use the shell script directly, change the first few environment variables to meet your needs:

export PUBLICURL="your.domain.com"
export CERTLEVEL="stage"  # use "stage" or "prod"
export EMAIL="your.email@emailprovider.com"

After adjusting the variables above in the script, call it and wait for 10 minutes... you may have a certificate generated that can be reused :-) Checkout details at medium.com.

Prerequisites

  • A domain name that you control and that can map to your network.
  • A Linux PC with Ubuntu 20.04.
  • Minikube version 1.19+ or better.
  • virtualbox.

Updates

  • May 7, 2021: There is a followup repository available here that shows how to add OAuth2 authentication to this Kubernetes application.

About

This shows how to expose a Minikube cluster to the public internet and install Let's Encrypt certificates for HTTPS.

Topics

Resources

Stars

Watchers

Forks

Languages