Abhishek Amralkar

Apr 4, 2021

2 min read

Kubernetes Multi TLS certificate termination with Nginx Ingress

Photo by Viktor Forgacs on Unsplash

What is Multiple TLS certificate termination?

What is Kubernetes ingress?

  1. Nginx Ingress
  2. Ambassador
  3. Traefik

Lets Begin

Prerequisites:

  1. SSL Certificates
  2. Certificates Private Keys
  3. We will assume you are running Nginx Ingress in Kubernetes cluster to route traffic to pods.

Creating Kubernetes TLS Secrets:

  • Convert the SSL certificate file to base64
cat yourSSL.crt | base64
  • Convert the SSL private key file to base64
cat yourSSLKey.crt | base64
kubectl apply -f yourSSLSecret.yaml -n namespace
kubectl apply -f yourIngress.yaml -n myapp
curl -k https://api.abhishekamralkar.pvt