Kubernetes Ingress Resources | Using Ingress resources to expose your application

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 103

  • @baliharko9972
    @baliharko9972 2 ปีที่แล้ว +1

    This helped tremendously! Thank you!

  • @tiagofeliciano322
    @tiagofeliciano322 3 ปีที่แล้ว +1

    Thanks for the great content! Just subscribed to you
    Keep up the awesome work

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว +1

      Hey 👋 Tiago,
      Thank you so much. I appreciate it.

  • @zhrgci
    @zhrgci 2 ปีที่แล้ว +1

    ingress-nginx-controller's external ip is just stuck on pending. Anybody else have that problem?

    • @viveksinghggits
      @viveksinghggits  2 ปีที่แล้ว

      How is your Kuberenetes cluster provisioned?

    • @zhrgci
      @zhrgci 2 ปีที่แล้ว

      @@viveksinghggits Not sure what that means but I use a k3d cluster with a deployment.yaml and was following this until it was stuck on external ip pending.
      Also it shows more when I type in get all:
      svclb-ingress-nginx-controller-946hb 0/2 Pending 0 3m18s
      ingress-nginx-admission-patch--1-qlvs2 0/1 Completed 0 3m18s
      ingress-nginx-admission-create--1-wm5hw 0/1 Completed 0 3m18s
      ingress-nginx-controller-5849c9f946-wv6l8 1/1 Running 0 3m18s

  • @ColourfulBrain29
    @ColourfulBrain29 2 หลายเดือนก่อน

    Sir, I have a multiple microservices how can i access all the microservices with DNS through ingress. Please help 🙏 🙏 me I have stuck on it from long days

  • @RashidKhan-ss7em
    @RashidKhan-ss7em 5 หลายเดือนก่อน

    Sir how can i access for domain i have add domain i am accessing within cluster but i can't access in external world in my domain what i should add in dns for access my application in my domain

  • @feezankhattak1573
    @feezankhattak1573 2 ปีที่แล้ว +1

    Thanks for the video, But how can can we route if the service is on the other namespace and ingress resource is on other. I try this service:
    name: restapi.other-ns
    port:
    number: 8080
    it gives me error

    • @viveksinghggits
      @viveksinghggits  2 ปีที่แล้ว

      Hi Feezan,
      I don't think we can refer a service that is in another namespace.

  • @thenicalvines2976
    @thenicalvines2976 ปีที่แล้ว +1

    i am ayush verma come from a small village i am in 3rd year i m able to understabd it hats off teACHER LIKE YOU

    • @viveksinghggits
      @viveksinghggits  ปีที่แล้ว

      Hi Ayush,
      I am glad the videos were helpful. Please dont hesitate to reach out to me if you want to discuss things in general. The link is on my website.

  • @nanigopaldas6189
    @nanigopaldas6189 3 ปีที่แล้ว +2

    Hi Vivek, It is a good content. Great work ! I am trying to do the curl to the internal IP/path of the ingress , but not getting any response from application. Application is configured already. Could you tell the reason?

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      Can you please explain it a bit more, if you are accessing one application from another application that is in the same cluster, you won't need ingresses.
      You can easily use clusterIP kind of service.
      Or is it something else that you are trying to do.

  • @beduduriharishreddy4542
    @beduduriharishreddy4542 2 ปีที่แล้ว +1

    What ip do we use to look inside application from outside, service ip or ingress ip

    • @viveksinghggits
      @viveksinghggits  2 ปีที่แล้ว

      Hi,
      If we are trying to connect to the application from another application that is inside the same kubernetes cluster we, most of the times, use cluster ip type of service to communicate. I would like to emphasize, not the ip but service name.
      Ingresses have separate use cases that I have covered in another video.

  • @minhthinhhuynhle9103
    @minhthinhhuynhle9103 2 ปีที่แล้ว

    Your explaination makes me fuzzy because you don't organize the article before publishing it. You can try note down the words and reading from it. Or either trim the videos and add correction to video.
    For example: 25:20 > Where is the "Application is not Listening to @#(*@&#!&#!" ? We don't like Implicit Understanding.

    • @viveksinghggits
      @viveksinghggits  2 ปีที่แล้ว +1

      Hi 👋,
      I am sorry to hear that but I don't trim the videos down because I want people to see me fail and then recover from that failure. I think this is also helpful in learning how to debug things.
      The timestamp that you mentioned, has the thing that that I actually wanted to showcase. Things didn't even fail there. I was showcasing pathType exact and showed the demo explaining the same.
      Thank you for the feedback though, please don't hesitate to post if you have some more.

  • @vrushabh_kulye7060
    @vrushabh_kulye7060 ปีที่แล้ว

    can you make a video on.. how to expose using nodeport of private Kubernete cluster..
    actually I'm facing issue, I was able to create nodeport service.. but when i tried to paste nodeport ip and port on the new web browser, it is saying "site is not reachable"

    • @viveksinghggits
      @viveksinghggits  ปีที่แล้ว

      If the node's IP is reachable publicly and you dont have any other restrictions on cluster, things should work.

  • @thenicalvines2976
    @thenicalvines2976 ปีที่แล้ว +1

    I was lucky my internet working well and i found your video now i can save lots of mb not for searchoing here and there 15rupay bach gaye

  • @zaibakhanum203
    @zaibakhanum203 2 ปีที่แล้ว

    Hi vivek,
    I have deployed ingress controller (AWS load balancer controller ) I can able to access the web ui using the web url but when trying to login the website using my credentials getting error can u please help

    • @viveksinghggits
      @viveksinghggits  2 ปีที่แล้ว

      Hi,
      It looks like this is very specific to the problem that you are trying to solve. So, because of unavailability of context, I don't think I would be able help.

  • @Mohammed-co3ux
    @Mohammed-co3ux ปีที่แล้ว

    Hi Vivek Thanks for the great content. I have a query i don't want to expose my application to the public through ingress but still I need ingress to expose the service to the private network how to do it?

    • @viveksinghggits
      @viveksinghggits  ปีที่แล้ว

      Is your client outside of the cluster or running inside of the cluster?

  • @ajitpaljat1868
    @ajitpaljat1868 3 ปีที่แล้ว +1

    Hi, I have one ingress in default namespace and 3 services are in diffrent namespaces , how to forward this traffic on path basis.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      Hey,
      To refer a service from ingress the service needs to be in the same namespace.
      If your service is in different namespace, you will have to create ingress in that namespace.

  • @R-Kannada-DevOps
    @R-Kannada-DevOps 2 ปีที่แล้ว

    Hi Vivek , i have one strange requirement , My One of the api path will start from static/ and task/ but in path type i need to mention only one path selection because i have same contaxt in anothe apply too so how can i done this

    • @viveksinghggits
      @viveksinghggits  2 ปีที่แล้ว

      Hi Raghu,
      Can you please elaborate a bit more. What do mean by mention only one path selection.
      Also, does your api start with static/ or task/

  • @arashjavanshour9286
    @arashjavanshour9286 ปีที่แล้ว

    I am on minikube environment and I have deployed ingress controller and deployed nginx app but the ingress controller's service which is of type LoadBalancer is not given any external IP address and stays in mode. So when I create Ingress component I can not access that nginx app through web browser. Can you help please please?

    • @viveksinghggits
      @viveksinghggits  ปีที่แล้ว +1

      Hi Arash,
      Ingresses are going to work only on the environments where a load balancer can be created dynamically. So, its not going to work on minikube. You should try any cloud provider and things would work.

    • @arashjavanshour9286
      @arashjavanshour9286 ปีที่แล้ว

      @@viveksinghggits Thank you for your response 👍

  • @rinkeshgala
    @rinkeshgala 2 ปีที่แล้ว +1

    Is there any use case where in we would prefer to use load balancer service over ingress ?

    • @viveksinghggits
      @viveksinghggits  2 ปีที่แล้ว +1

      That's a good question, I can't think of a lot of scenarios right now. But one is, let's says you don't have to use path based routing and want to rely on cloud providers load balancers to do the forwarding.

  • @kumars799
    @kumars799 3 ปีที่แล้ว +1

    I found this video very informative. Great work!!!!
    It will be great if you can make video on how we can assign one static-ip to a namespace, and for all outgoing traffic from a pod of a given namespace.
    Thanks

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      Hey Sourabh,
      I am not sure if we can assign one static IP to the namespace. Would you mind sharing the use case that you have or a link where you read about this.

  • @mohammedashfaq3892
    @mohammedashfaq3892 3 ปีที่แล้ว +1

    Hi Vivek we are trying to expose the nginx via the ingress, but when trying the functional test with the DNS or ip address the connection is not establishing, getting connection failed.
    Note:- recently we had changed the dns name.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      Hi,
      You can try to check the logs of the ingress controller to see what's happening there.
      Also I am assuming you are accessing the application using external IP of the load balancer service.

    • @mohammedashfaq3892
      @mohammedashfaq3892 3 ปีที่แล้ว

      @@viveksinghggits your are correct but when I’m trying external IP address it’s working getting 200 success code, but I’m using the actual dns ip it getting 404 error

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      404 simply means that you are not specifying correct resource path, I don't think the problem is related to k8s. Can you verify which resource path your application is running at, and try that in the URL.

    • @mohammedashfaq3892
      @mohammedashfaq3892 3 ปีที่แล้ว

      @@viveksinghggits when i tried the url in browser it say cert issue

  • @matinpathan5186
    @matinpathan5186 ปีที่แล้ว

    Vivek i can't able to find the lib in helm chart how can i search, if i want to install in my system and spin the pods in my system how can i do it

    • @viveksinghggits
      @viveksinghggits  ปีที่แล้ว

      What do you mean by lib in helm?

    • @matinpathan5186
      @matinpathan5186 ปีที่แล้ว

      @@viveksinghggits In above video at 7.44 you install from " helm install lib -n lib viveks/Library "

    • @viveksinghggits
      @viveksinghggits  ปีที่แล้ว

      It looks like the helm chart that i have published is not working properly somehow. I will try to fix that.

  • @adityajoshi3360
    @adityajoshi3360 3 ปีที่แล้ว +1

    Hi Vivek,
    I am facing an issue. When i am specifying the path as /apis i am getting "Cannot GET /apis/get" , ingress is not able to reach my service but when i change the path as / in the ingress resource its working fine.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      Hi Aditya,
      I am suspecting there is something wrong with either the endpoint that you exposed your application on, or the path that you are specifying in the ingress resource.
      I would recommend re-checkijg those.
      Let me know if you find them to be correct.

    • @adityajoshi3360
      @adityajoshi3360 3 ปีที่แล้ว +1

      @@viveksinghggits I resolved the issue, i had to specify the complete path in my application

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      Cool 😎

  • @sudheerk406
    @sudheerk406 2 ปีที่แล้ว +1

    Clear cut expanation. Thanks.

  • @ramprasad_v
    @ramprasad_v 2 ปีที่แล้ว +1

    Good explanation. Thanks 👍

  • @kylacolumns
    @kylacolumns ปีที่แล้ว

    Hi Vivek! I had a doubt regarding the resource config. In my org, we are using Couchbase db and on the login page of couchbase itself, it uses more than 5-6 different paths after the IP (/couchbase, /ui, /pools, /abc etc.). I cannot separate it via hosts and currently I have to go through each page and get all the paths and define it in ingress separately.
    I cannot also define path as "/" for couchbase since other applications get affected by it. Is there any possible solution or easier method for it?

    • @viveksinghggits
      @viveksinghggits  ปีที่แล้ว

      Hmm, that’s an interesting question. Unfortunately I don’t have an answer on top of my head. Sorry about that.

  • @nagachaitanyab3363
    @nagachaitanyab3363 3 ปีที่แล้ว

    Hi Vijay
    Thank you for the great content.
    Im exploring on deploying a Ingress controller on kubernetes cluster which is on VMware.
    Since there is no load balancer, how do i install it?
    Could you please give me some insight.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว +1

      Hey Naga,
      Per my current understanding if we have to get nginx ingress working we will have to make sure we are able to create load balancer kind of service on the cluster.
      If not automatically, manually atleast.
      If we are not able to do that even manually, I will have to explore what are the other options.
      Name is Vivek by the way 🤣

    • @nagachaitanyab3363
      @nagachaitanyab3363 3 ปีที่แล้ว

      @@viveksinghggits Thank you for the quick response.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      No problem 😊

    • @nagachaitanyab3363
      @nagachaitanyab3363 3 ปีที่แล้ว

      @@viveksinghggits suppose if i have a cluster which i can access through nodeport eg : ip : 30234. I don't want to access with some name eg ip: /chaitanya
      What are the possible ways to do.?

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว +1

      You can access that using node IP and port combination for any of the nodes.
      But the problem is which particular node IP you are going to share with clients.
      Not an ideal way to expose your application.

  • @Solidux2
    @Solidux2 2 ปีที่แล้ว +1

    Gracias bro. Me fue de gran ayuda

    • @viveksinghggits
      @viveksinghggits  2 ปีที่แล้ว

      Hey,
      Thank you, I am glad it was helpful.

  • @Tay74514
    @Tay74514 ปีที่แล้ว

    I love you man

  • @amjds1341
    @amjds1341 2 ปีที่แล้ว +1

    Great explanation

  • @g-luu
    @g-luu 2 ปีที่แล้ว

    Nicely explained. Earned yourself a subscriber. Thank you.

  • @kksaxena1550
    @kksaxena1550 3 ปีที่แล้ว

    Hello sir please make a video how we can access private registry docker using kuberneters

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว +1

      Sure, I will make a video about that soon.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว +1

      Hi KK,
      I have just uploaded a video that explains how we can run images that are available on private container registry. Here is the link
      th-cam.com/video/XE76fyM9XyE/w-d-xo.html

  • @ranganath5527
    @ranganath5527 3 ปีที่แล้ว +1

    Excellent content

  • @gauravbalyan5395
    @gauravbalyan5395 ปีที่แล้ว

    Hi Vivek, this was one of the detailed explanation I have seen on the rules of Ingress resource.

  • @prateekshrivastava5813
    @prateekshrivastava5813 3 ปีที่แล้ว

    Hi Vivek,
    Can you please help in understanding how, the address of the ingress is decided? I am running a minikube, server, the ingress address is always set to 127.0.0.1. Under what cases , it would be different ? Thank you.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว +1

      Hi Prateek,
      We will have to see what are some of the solutions out there, to get ingress working on these environments where we can't have an external IP created. I think there are some solutions like metallb, but I have not explored that.
      But if we talk about the clusters that are setup on cloud environments, when we install an ingress controller, a load balancer is created on the cloud environment and IP of the load balancer is how the external IP is generated.

    • @prateekshrivastava5813
      @prateekshrivastava5813 3 ปีที่แล้ว +1

      @@viveksinghggits thank you. That's all I wanted to know how it work in real world scenario. You answerd that a LB ip would be created.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      Thank you Prateek.

  • @farukabdullah2607
    @farukabdullah2607 3 ปีที่แล้ว

    hello Vivek Sir, i have watched this video ....explanation is simple it is very helpful. I need one help. after doing practice , i read k8s docs about ingress ... below side i show Ingress Class ... I want to try this ingressclass also. when i type kubectl get ingressclass , error message is :- the server doesn't have a resource type "ingressclass" . How can i add ingressclass resource to my bare metal K8s cluster.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      Which version of kubernetes are you on?

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      There are chances that ingressclass resource was introduced in the later version of kubernetes.

    • @farukabdullah2607
      @farukabdullah2607 3 ปีที่แล้ว +1

      @@viveksinghggits k8s 1.9

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      IngressClass resource was introduced quite recently in version 1.18 and that is the reason you are not able to see that in your cluster.

  • @hinupurthakur
    @hinupurthakur 3 ปีที่แล้ว

    Hey Vivek, The video is quite detailed and really good. Could you please tell me which software are you using to record your videos?

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว +1

      Hey Nupur,
      I am just using OBS to record the things, I don't actually edit the video.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว +1

      Thank you for the appreciation 🙏

  • @muralithumalapalli9766
    @muralithumalapalli9766 3 ปีที่แล้ว +1

    Hello Vivek,Can you please make a video on core dns and node local dns please.
    Thank you so much for explaining everything that is needed.
    Thank you so much.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว +1

      Hi Murali,
      I am planning to make a playlist on Kubernetes networking, I think that is going to cover a lot of these things.

  • @bharanidharanselvaraj1498
    @bharanidharanselvaraj1498 3 ปีที่แล้ว

    Hi Vivek
    Thank you for the video.
    When i deploy ingress from helm chart - so the default type is loadbalancer, But external ip is not getting assigned in kubernetes cluster for that ingress service - What could be the reason for it?

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      Hi 👋,
      Where are you deploying the ingress controller, it looks like load balancer is not being created and that is the reason external IP is not being assigned.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว +1

      If we are on cloud provided clusters, the load balancer gets created automatically.

    • @bharanidharanselvaraj1498
      @bharanidharanselvaraj1498 3 ปีที่แล้ว

      Thanks Vivek,so I don't have external lb?

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว +1

      Yes, It looks like load balancer is not being created.

    • @bharanidharanselvaraj1498
      @bharanidharanselvaraj1498 3 ปีที่แล้ว +1

      Thanks Vivek for the reply ,So i m using onpremise kube cluster and using an external lb in onpremise, in that case it is not assigning to the ingress service.

  • @vjpuente
    @vjpuente 3 ปีที่แล้ว

    Great Video Thanks

  • @Fayaz-Rehman
    @Fayaz-Rehman 3 ปีที่แล้ว +1

    Thank you for the good stuff - I did not know that we can run ingress resources without specifying ingressClass or annotation - Also could you make a video about installing ingress controller on bare metal with out using Helm charts.

    • @viveksinghggits
      @viveksinghggits  3 ปีที่แล้ว

      Hey, thats a good point Fayaz, in case of bare metal we will have to somehow setup the load balancer manually because in that case we won't have a cloud controller manager running.
      One of the responsibilities of cloud controller manager is to look for LoadBalancer service and create Cloud Load Balancer.
      If we talk about the way we installed we didn't actually use helm, we just applied some manifests file in the cluster.
      Let me know if this helps, or there is something else that we should discuss about.