Managing multiple web applications within a Kubernetes cluster can become complex, especially when each application requires its own deployment, service, and configurations. In addition, exposing these applications to external traffic efficiently while maintaining a clear structure can be challenging. Traditional load balancers often lack the flexibility needed for intricate routing configurations.
This repo addresses these challenges by demonstrating how to implement Context Path Based Routing using Ingress in Azure AKS. Context Path Based Routing allows you to route incoming traffic to different services based on the path of the URL. This not only simplifies the management of multiple applications but also enhances the overall accessibility and organization of your services.
-
Web App Deployment Simplification: We provide Kubernetes manifest files for three web applications, each with its deployment and service configurations.
-
MySQL Integration: A comprehensive setup for a web application with MySQL, including a persistent volume claim (PVC), configuration map, deployment, service, and secret management.
-
Ingress for Context Path Based Routing: Ingress Nginx to efficiently route traffic based on context paths, making it easier to expose multiple services through a single entry point.
k apply -R -f kube-manifests/
k get pods
k get svc
k get ingress
k get allk delete -f kube-manifests/