Posts

Showing posts with the label ingress controller

Using Kubernetes Ingress to navigate traffic to Services

Image
Introduction In the previous article, I introduced the basic concepts of Kubernetes Ingress , and how to use Ingress along with related components ( Nginx Ingress Controller and cert-manager ) to automatically issue TLS certificates when deploying HTTPS applications . In this article, I'll show you how to define rules in Ingress to route traffic to different Services based on your needs. Prepare Docker Image First, you'll need a Docker image to get started. You can either use two different Docker images or follow my next instructions to prepare a Docker image . Here's a code block to create a NodeJS server that displays a title based on an environment variable input: import express from 'express' const port = 3000 const title = 'This is NodeJS Typescript Application' const app = express () app . get ( '/' , ( _ , res ) => { res . send (( process ?. env ?. TITLE ?? title ) + '! Current time is ' + Date . now ()) ...

Deploying HTTPS with Kubernetes Nginx Ingress and Cert Manager

Image
Introduction This article will guide you through using Nginx Ingress Controller and Cert Manager on Kubernetes (K8s) to automatically issue TLS (Transport Layer Security) certificate . To follow along, you'll need: Basic knowledge of Google Kubernetes Engine for cluster initialization Understanding of K8s Deployment, Service to deploy applications Familiarity with Helm for installing necessary charts. Ingress Ingress is a Kubernetes resource used to manage external access to Services within a cluster . It acts like a traffic router, allowing you to define routing configurations to efficiently manage incoming traffic to Services . Ingress Controller An Ingress Controller is a distinct component from Ingress itself. There are various types of Ingress Controllers , each capable of different deployments. However, their main function is to manage and deploy according to Ingress rules . When requests reach Ingress, the Ingress Controller uses these defined rules to route traffic...