Kubernetes Ingress with MetalLB
Background
This page is to document the attempt of installing Kubernetes Ingress with MetalLB at AWS Cluster. Beforehand the kubernetes cluster is installed an all worker nodes has joined the master node. Refer to K8S Installation Process for installation process.
One can check the cluster nodes by using below command
kubectl get nodes
NAME STATUS ROLES AGE VERSION
kmaster Ready control-plane,master 23d v1.21.3
w1 Ready <none> 4d10h v1.22.0
w2 Ready <none> 23d v1.21.3
Below are the structured of installation process that we are going to perform
- Install Helm
- Install Kubernetes Ingress
- Apply configuration
- Check Result
Install Helm
This document using helm version v3.4.2. Start with downloading and unpack the binary release of this version.
wget https://get.helm.sh/helm-v3.4.2-linux-amd64.tar.gz tar -xzvf helm-v3.4.2-linux-amd64.tar.gz
Then, move to desire location
mv linux-amd64/helm /usr/local/bin/helm
You might need sudo to execute it, once it executed, you can add the chart repository of bitnami into the helm installation
helm repo add bitnami https://charts.bitnami.com/bitnami
Then you can check the repository content of helm
helm search repo bitnami
NAME CHART VERSION APP VERSION DESCRIPTION
bitnami/bitnami-common 0.0.9 0.0.9 DEPRECATED Chart with custom templates used in ...
bitnami/airflow 10.2.8 2.1.2 Apache Airflow is a platform to programmaticall...
bitnami/apache 8.6.0 2.4.48 Chart for Apache HTTP Server
bitnami/argo-cd 1.0.1 2.0.5 Declarative, GitOps continuous delivery tool fo...
bitnami/aspnet-core 1.3.14 3.1.18 ASP.NET Core is an open-source framework create...
bitnami/cassandra 8.0.2 4.0.0 Apache Cassandra is a free and open-source dist...
bitnami/cert-manager 0.1.12 1.5.0 Cert Manager is a Kubernetes add-on to automate...
bitnami/common 1.8.0 1.8.0 A Library Helm Chart for grouping common logic ...
bitnami/concourse 0.1.3 7.4.0 Concourse is a pipeline-based continuous thing-...
...
Getting Started with NGINX Ingress
First thing to be done, is to register the repository of NGINX Ingress into helm, update the repository, and install it through helm chart
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm repo update
helm install ingress-nginx ingress-nginx/ingress-nginx helm repo update
Response
"ingress-nginx" has been added to your repositories
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "ingress-nginx" chart repository
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈Happy Helming!⎈
External Links
1. Tutorial references {{#ev:youtube |UvwtALIb2U8 }}
2. Github Kubernetes Ingress repository :
https://github.com/kubernetes/ingress-nginx
3. Getting started document :
https://kubernetes.github.io/ingress-nginx/deploy/