Giter Club home page Giter Club logo

Comments (14)

hbagdi avatar hbagdi commented on May 27, 2024 2

Hello @jaygorrell,

Thanks for opening this issue, I can confirm this bug.
The issues arises because of the way ingress resources are translated into Kong Routes and Services.
We will try to fix this up soon.
PRs from community are welcome as well!

from kubernetes-ingress-controller.

hbagdi avatar hbagdi commented on May 27, 2024 2

Hello @fresh618 @alexchansun, #190 fixes this issue.
It will be merged in soon and will be available in our next release coming out later this week!

from kubernetes-ingress-controller.

hbagdi avatar hbagdi commented on May 27, 2024 1

@theissn This is not yet available in any release. The feature will be included in the upcoming 0.2.1 and 0.1.2 releases happening later this month.

from kubernetes-ingress-controller.

andrewtappert avatar andrewtappert commented on May 27, 2024

@hbagdi I'm interested in trying to fix this. Can you give a hint of what to look at?

from kubernetes-ingress-controller.

theissn avatar theissn commented on May 27, 2024

Heya!

Just tried the above example running the latest version of kong and nothing registers.

kind: Ingress
metadata:
  name: foo
spec:
  rules:
  - http:
      paths:
      - path: /foo
        backend:
          serviceName: foo
          servicePort: 80

Any ideas?

from kubernetes-ingress-controller.

slkinnison avatar slkinnison commented on May 27, 2024

I noticed that you released 0.1.2/0.2.1 this weekend (October 26, 2018). I'm using kong:0.13.1-centos, so I updated my kubernetes-ingress-controller from 0.1.0 to 0.1.2. However, much like @theissn, my Ingress controller didn't register with Kong unless I restored the host rule.

FWIW: I originally deployed Kong using https://raw.githubusercontent.com/Kong/kubernetes-ingress-controller/96b2f0b73bd19df9264ee212dae53b935c10e501/deploy/single/all-in-one-postgres.yaml

from kubernetes-ingress-controller.

hbagdi avatar hbagdi commented on May 27, 2024

@slkinnison, I used Kong 0.13.1-centos with Kong Ingress Controller 0.1.2, and it works fine.
Could you share some reproducible steps?

from kubernetes-ingress-controller.

slkinnison avatar slkinnison commented on May 27, 2024

Thanks for getting back to me so fast!

The diff of my update to all-in-one-postgres.yaml:

386c386
<         image: kong-docker-kubernetes-ingress-controller.bintray.io/kong-ingress-controller:0.1.0
---
>         image: kong-docker-kubernetes-ingress-controller.bintray.io/kong-ingress-controller:0.1.2
416c416
<   type: NodePort
---
>   type: LoadBalancer

The new echoserver's Ingress specification:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: foo-bar
  namespace: bnb
spec:
  rules:
  - http:
      paths:
      - path: /bnb2
        backend:
          serviceName: http-svc
          servicePort: 80

from kubernetes-ingress-controller.

hbagdi avatar hbagdi commented on May 27, 2024

@slkinnison,

Just to make sure, you did bump the version of your Ingress controller to 0.1.2, right? Cause that's not what I see in the diff.

from kubernetes-ingress-controller.

slkinnison avatar slkinnison commented on May 27, 2024

In the diff above the change on line 386 was to change the version from 0.1.0 to 0.1.2. Did I miss a change somewhere else in all-in-one-postgres.yaml?

from kubernetes-ingress-controller.

hbagdi avatar hbagdi commented on May 27, 2024

@slkinnison Apologies, I didn't read the diff output correctly.

I can replicate it.
It seems like you need one host based rule along with other empty host for this to work. There seems to be an error in the Ingress controller in how it is parsing the Ingress objects.

The following works:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress-test-1
  annotations:
spec:
  rules:
  - http:
      paths:
      - path: /mypath-2
        backend:
          serviceName: http-svc
          servicePort: 80
    host: foo.com
  - http:
      paths:
      - path: /mypath-2
        backend:
          serviceName: http-svc
          servicePort: 80

But, the following doesn't:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress-test-2
  annotations:
spec:
  rules:
  - http:
      paths:
      - path: /mypath-2
        backend:
          serviceName: http-svc
          servicePort: 80

from kubernetes-ingress-controller.

slkinnison avatar slkinnison commented on May 27, 2024

Thanks for digging into this. I'll adjust my settings accordingly.

from kubernetes-ingress-controller.

fresh618 avatar fresh618 commented on May 27, 2024

@hbagdi Do you have any plan for making the following Ingress works?

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress-test-2
  annotations:
spec:
  rules:
  - http:
      paths:
      - path: /mypath-2
        backend:
          serviceName: http-svc
          servicePort: 80

from kubernetes-ingress-controller.

alexchansun avatar alexchansun commented on May 27, 2024

@hbagdi Nginx-ingress works very well, do you have plans to fix this bug?
Thanks

from kubernetes-ingress-controller.

Related Issues (20)

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.