Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 2.33 KB

File metadata and controls

54 lines (35 loc) · 2.33 KB

Setup Nginx Ingress using Bitnami Helm Chart

This document describes how to manually install Nginx Ingress using Bitnami Nginx Ingress Helm Chart with TLS support. For more on customizing and configuring the it please go to Bitnami Nginx Ingress Helm Chart Documentation

Add Helm Repo

helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
kubectl create namespace ingress

The commands above creates a namespace for ingress and add Bitname Helm Repository

Create Certificates

You need to create certificates for the domain you want to access the services for your cluster. I use mkcert to generate this signed certificates and install CA root in my computer. In this case the certificate matches *.devship.localhost domains. See mkcert doc for more info.

ℹ️ I use dnsmasq to resolve all domains for *.localhost to 127.0.0.1 Please check dnsmasq documentation to setup and configure it for your OS

Create TLS Secrets

Execute the following command to create TLS secret in your cluster under ingress namespace

kubectl create secret tls nginx-server-certs --key certs/devship.localhost-key.pem --cert certs/devship.localhost.pem --namespace ingress

Install Nginx Ingress Controller

  1. Create a file called ingress-override.yaml to configure helm chart to use nginx-server-certs as the default-ssl-certificate with following content
extraArgs:
  default-ssl-certificate: "ingress/nginx-server-certs"
  1. Install Nginx Ingress controller in ingress namespace by executing the following command
helm install --namespace ingress -f ingress-override.yaml ingress bitnami/nginx-ingress-controller 

Test Your Ingress

Check the file dockerhub.yaml example manifest and change the values according to your need and then execute the following command

kubectl apply -f ./dockerhub-nginx.yaml

Now go to https://nginx.devship.localhost and you should see Nginx default welcome page!!