Giter VIP home page Giter VIP logo

nginx-ingress's Introduction

nginx-ingress

According to the Merriam-Webster dictionary, the meaning of ingress is the act of entering or entrance. In the context of Kubernetes, Ingress is a resource that enables clients or users to access the services which reside in a Kubernetes cluster. Thus Ingress is the entrance to a Kubernetes cluster! Let’s get to know more about it and test it out.

How to deploy and use Ingress

Now we are going to deploy the Nginx Ingress at Kubernetes in Docker Desktop. We will configure it to access an Nginx web server, a variant for Tomcat web application server and our old beloved Apache web server.

  1. Start your Docker Desktop with Kubernetes Enable. Right click at the Docker Desktop icon at the top right area of your screen (near the left in this cropped screenshot) to see that both Docker and Kubernetes are running.
  2. Clone this repository to get the required deployments YAML files.
  3. Deploy the Ingress Controller. Execute the following to deploy the Ingress Controller.
kubectl apply -f .\01-ingress-controller.yaml
  1. Execute the following to check on the deployment. The pod must be running and the Deployment must be ready.
kubectl get all -n ingress-nginx
  1. Deploy the sample applications. Execute the following to deploy the sample applications.
# Deploy the nginx webserver
kubectl apply -f .\02-nginx-webserver.yaml
# Deploy the tomcat webserver
kubectl apply -f .\03-tomcat-webappserver.yaml
# Deploy the httpd webserver
kubectl apply -f .\04-httpd-webserver.yaml
  1. Execute the following to check on the deployments. All pods must be running and all deployments must be ready.
kubectl get all
  1. Deploy the Ingress resources. Execute the following to deploy the Ingress resouces.
kubectl apply -f .\05-ingress-resouce.yaml
  1. Execute the following to check on the Ingress resources.
kubectl get ing
  1. Access the following URLs in your web browser. All URLs should bring you to the intended services.
http://demo.localdev.me
http://demo.localdev.me/tomcat/
http://httpd.localdev.me

Credit

All credit goes to Jeffry Johar on his article at End Point Dev.

nginx-ingress's People

Contributors

zul-m avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.