-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9797 from msedzins/issue_9335
Ability to use a custom TLS certificate with the Ingress
- Loading branch information
Showing
5 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: "How to use custom TLS certificate with ingress addon" | ||
linkTitle: "Using custom TLS certificate with ingress addon" | ||
weight: 1 | ||
date: 2020-11-30 | ||
--- | ||
|
||
## Overview | ||
|
||
- This tutorial will show you how to configure custom TLS certificatate for ingress addon. | ||
|
||
## Tutorial | ||
|
||
- Start minikube | ||
``` | ||
$ minikube start | ||
``` | ||
|
||
- Create TLS secret which contains custom certificate and private key | ||
``` | ||
$ kubectl -n kube-system create secret tls mkcert --key key.pem --cert cert.pem | ||
``` | ||
|
||
- Configure ingress addon | ||
``` | ||
$ minikube addons configure ingress | ||
-- Enter custom cert(format is "namespace/secret"): kube-system/mkcert | ||
✅ ingress was successfully configured | ||
``` | ||
|
||
- Enable ingress addon (disable first when already enabled) | ||
``` | ||
$ minikube addons disable ingress | ||
🌑 "The 'ingress' addon is disabled | ||
$ minikube addons enable ingress | ||
🔎 Verifying ingress addon... | ||
🌟 The 'ingress' addon is enabled | ||
``` | ||
- Verify if custom certificate was enabled | ||
``` | ||
$ kubectl -n kube-system get deployment ingress-nginx-controller -o yaml | grep "kube-system" | ||
- --default-ssl-certificate=kube-system/mkcert | ||
``` |