Giter VIP home page Giter VIP logo

ingress's Introduction

๐Ÿ“ Table of Contents

๐Ÿง About

  • add whatever you want ( but i suggest that you check the ingress nginx documentation )

๐Ÿ Getting Started

These instructions will help you setup ingress nginx on you kubernetes cluster you must have acess to kubernetes cluster and have kubectl and helm insstaled on your machine .

Prerequisites

You need to install the fellowing software in order to get the ingress nginx up and running :

  • Helm.
  • kubectl .

installing kubectl

  • Download the latest release with the command:
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256" 

  • Install kubectl :
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

  • Test to ensure the version you installed is up-to-date:
kubectl version --client

installing Helm Kubernetes packege ma

  • Download the latest release with the command:
 curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
  • Give it the right acess :
chmod 700 get_helm.sh

  • install helm
./get_helm.sh

  • Test to ensure the version you installed is up-to-date:
helm  -- help 

๐Ÿ installing ingress nginx controller using helm

to install ingress nginx on your kubernetes cluster with helm you just need to run the fellowing cammands :

  • first you need to create namespace that hold all the related ingress resources :
kubectl create ns ingress-nginx

  • second add the the ingress nginx repo :
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx

  • update your repos
helm repo update

  • install ingress nginx with the default params
helm install ingress-nginx ingress-nginx/ingress-nginx -n ingress-nginx

to checke the installation of ingress nginx run the fellowing :

kubectl get all  -n ingress-nginx

that should return the realted resources

Testing the ingress nginx

you can find the k8s folder attached to this article that have resource for simple web api deployment to test if the ingress is working just run the fellowing cammand :

kubectl apply -f k8s

and now visit on the browser on ip adress of the cluster (if you are n local you should use localhost) you can see message "Hello World!"

to remove the deployment just run

kubectl delete  -f k8s

uninstall ingress nginx

just run the cammand

helm uninstall ingress-nginx

ingress's People

Watchers

Messlleka Abdellah 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.