How to build a custom Kubernetes Ingress Controller in Go

Click for: original source

Tutorial written by Caleb Doxsey. It documents his journey to his own Kubernetes Ingress controller. Author rcently switched from Google Kubernetes Engine (GKE) to Digital Ocean as his managed Kubernetes provider. As part of the switch author wanted to also start using a Kubernetes Ingress Controller to map incoming HTTP requests to specific services. After some frustration attempting to get the NGINX Ingress Controller working, he ended up rolling his own in an afternoon.

Even if you have no need to make your own ingress controller, the steps described below are generally useful both for Kubernetes development as well as building HTTP proxies in Go.

The tutorial covers:

  • Overview, including basic Kubernetes setup
  • Ingress Objects
  • Ingress Controllers
  • A Custom Ingress Controller

… and more. Plus each step is well explained and documented with all the code in Golang provided in the tutorial.

[Read More]

Tags programming devops web-development open-source golang