k8 by examples
  • k8
  • k8-byexamples-monorepo
  • AWS to GCP Proxy
  • Ingress + TLS Termination
  • Docker
  • HAproxy
  • Troubleshooting
  • Windows
  • Commands
  • Kubernetes Specs
    • Namespaces
    • Deployments
    • InitContainers
    • Ingress
    • Services
    • Storage
      • PersistentVolumeClaims
      • StorageClass
  • Tools
    • kubectl
      • Credentials
    • Port Scanning
  • Resources
    • Curated Resources List
    • Community
    • Contact Me
    • Ingress Controller + LetsEncrypt
  • K8-BYEXAMPLES
    • IngressController+LetsEncrypt
Powered by GitBook
On this page
  • Install cert-manager (optional)
  • Clone the k8-byexamples-ingress-controller repository
  • Install the ingress controller
  • Create Ingress Resource & Certificate Request
  1. K8-BYEXAMPLES

IngressController+LetsEncrypt

Install cert-manager (optional)

git clone https://github.com/mateothegreat/k8-byexamples-cert-manager
cd k8-byexamples-cert-manager
make install

Clone the k8-byexamples-ingress-controller repository

git clone https://github.com/mateothegreat/k8-byexamples-ingress-controller​
cd k8-byexamples-ingress-controller
git submodule update --init

Install the ingress controller

Now we can install the ingress controller and it's resources (RBAC, Deployment, Service) with the following command:

make install LOADBALANCER_IP=35.200.108.203

Create Ingress Resource & Certificate Request

We need an Ingress Resource which maps our hostname (and/or paths) to a specific service. We will also create a "Certificate Request" Resource which will request an SSL certificate to be issued from LetsEncrypt.org by means of our cert-manager deployed pod.

make issue HOST=<yourdomain.com> SERVICE_NAME=<service> SERVICE_PORT=<port>

Now you will be able to access your service via the hostname and/or LOADBALANCER_IP (above).

PreviousIngress Controller + LetsEncrypt

Last updated 6 years ago