Загрузка...

Expose ClusterIP Services in AKS Using NGINX Ingress Controller | Complete Hands-On

Expose ClusterIP Services in AKS Using NGINX Ingress Controller | Complete Hands-On

Github link:- https://github.com/kmitsolution/AKS/blob/main/06_AKSIngress/01_Nginx-Ingress.md
In this step-by-step tutorial, I’ll show you how to set up the NGINX Ingress Controller on Azure Kubernetes Service (AKS) to expose ClusterIP services externally using an Azure LoadBalancer.

We’ll go from zero to working ingress, covering every step — from deploying the ingress controller, creating backend pods and services, to testing public access through the LoadBalancer IP.

Whether you’re new to Kubernetes ingress or looking to fix issues like “curl not working on LoadBalancer IP”, this video walks you through the exact working setup for AKS + NGINX.

🧩 What You’ll Learn:

✅ What is an Ingress Controller in AKS
✅ How to deploy NGINX Ingress Controller using the cloud manifest
✅ How to expose ClusterIP services using Ingress rules
✅ How to verify and debug your ingress setup
✅ How to access your applications externally via a LoadBalancer public IP
✅ Common mistakes and fixes (baremetal vs cloud manifests)

🧱 Commands Used in the Video:
# Deploy NGINX Ingress Controller
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.7.1/deploy/static/provider/cloud/deploy.yaml

# Create sample pods and services
kubectl run news-pod --image nginx
kubectl run mail-pod --image tomcat
kubectl expose pod news-pod --name news --type ClusterIP --port 80 --target-port 80
kubectl expose pod mail-pod --name mail --type ClusterIP --port 8080 --target-port 8080

# Apply ingress rules
kubectl apply -f ingress.yaml
🧠 Key Takeaways:

Always use the provider/cloud manifest for AKS

Match the ingressClassName with your cluster’s ingress class

Verify LoadBalancer IP with kubectl get svc -n ingress-nginx

Debug ingress behavior with kubectl logs -n ingress-nginx -l app.kubernetes.io/component=controller

🔗 Resources & Links:

Official NGINX Ingress Controller Docs: https://kubernetes.github.io/ingress-nginx

AKS Documentation: https://learn.microsoft.com/azure/aks

💬 Connect & Support

If you found this helpful, like 👍, subscribe 🔔, and share with others learning AKS & Kubernetes!
Got questions? Drop them in the comments — I reply to every one!

#AKS #NGINX #Kubernetes #IngressController #AzureKubernetesService #CloudComputing #DevOps #K8s #LoadBalancer #NGINXIngress #KubernetesTutorial #Azure #DevOpsTutorial

Видео Expose ClusterIP Services in AKS Using NGINX Ingress Controller | Complete Hands-On канала Raman Sharma
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять