DevOps Classroomnotes 14/May/2023

Ingress

  • To understand concept of ingress Refer Here
  • In k8s we have 3 major objects which will help in ingress (layer 7 loadbalancing)
    • ingress
    • ingressController: This is a third party implementation Refer Here
    • ingressClass
  • K8s doesnot have controller for ingress.
  • Lets create four simple applicatons Refer Here for changes done
  • Create docker image and push them to registry
  • For this classroom purpose i will be using nginx-ingress-controller Refer Here
  • Our implementation:
    Preview
  • lets install nginx-ingress controller using helm
helm repo add nginx-stable https://helm.nginx.com/stable
helm repo update
helm upgrade --install ingress-nginx ingress-nginx \
             --repo https://kubernetes.github.io/ingress-nginx \
             --namespace ingress-nginx --create-namespace

Preview
* After last command we see output which better copy to some notepad
* Now execute the following command to watch for external ip to nginx ingress controller kubectl --namespace ingress-nginx get services -o wide -w ingress-nginx-controller
Preview
* Get ingress classes and there should be nginx ingress class from helm chart
Preview
* lets deploy application and services. Refer Here for the changes
Preview
Preview
* Refer Here for the manifest file for ingress
* Now create ingress object
Preview
* Get external ip of ingress controller using kubectl --namespace ingress-nginx get services -o wide -w ingress-nginx-controller
Preview
Preview
* Refer Here for official docs of ingress

Node autoscaler

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner