Professional Documents
Culture Documents
Introduction
In this lab we will see how to use NginX-based Kubernetes Ingress Controllers to make
Kubernetes services available to the outside world. We will demonstrate how three applications
share the same IP address and port, while ingress rules decide, which URL pattern is routed to
which application.
Objectives:
• Install Nginx Controller
• Install Ingress Service
• Create Apps
• Access Apps via Nginx Ingress
Flowchart:
1.1 Let us clone the git repository which contains manifests required for this exercise, by executing the
below command.
1.2 Let us view the NginX controller mainfest, by executing the below command.
# cat -n ~/k8s-ingress/mandatory.yaml
1.3 Let us create the mandatory elements, by executing the below command.
1.5 Let us view the manifest for Ingress service, by executing the below command.
# cat -n ~/k8s-ingress/ingress-service.yaml
Output:
1.8 Let us view the manifest for webapp - deployment & service, by executing the below
command.
# cat -n ~/k8s-ingress/webapp1.yaml
Output:
1.10 Let us view the ingress manifest, by executing the below command.
# cat -n ~/k8s-ingress/webapp-ingress.yaml
Output:
1.13 Let us access the application webapp1, by executing the below command.
1.14 Let us access the application webapp2, by executing the below command.
1.15 Let us access the application webapp2, by executing the below command.
1.16 Let us access the application via nodeport service, let us capture the nodeport by
executing below command.
Output:
Output: