GithubHelp home page GithubHelp logo

bug: Enabling discovery kubernetes services configuration doesn't list cluster existing endpoints in Dashboard Service list about apisix HOT 8 OPEN

singhajitk avatar singhajitk commented on May 30, 2024
bug: Enabling discovery kubernetes services configuration doesn't list cluster existing endpoints in Dashboard Service list

from apisix.

Comments (8)

shreemaan-abhishek avatar shreemaan-abhishek commented on May 30, 2024

Dashboard Service list

What is Dashboard Service list? Please elaborate your problem and provide more details on reproduction steps. A set of steps containing self contained minimal configurations would be appreciated.

from apisix.

singhajitk avatar singhajitk commented on May 30, 2024

Dashboard Service list

What is Dashboard Service list? Please elaborate your problem and provide more details on reproduction steps. A set of steps containing self contained minimal configurations would be appreciated.

Hi @shreemaan-abhishek, Thanks for looking into this issue.

From the Dashboard Service list, I mean, in APISIX Dashboard UI, service page is not listing any of existing Kubernetes endpoints after enabling "discovery kubernetes service" configuration. I have attached screenshot below.

Screenshot 2024-03-20 150708

from apisix.

shreemaan-abhishek avatar shreemaan-abhishek commented on May 30, 2024

can you confirm if the admin api also returns an empty result? this information is key to identify if the issue is with APISIX or just the dashboard.

from apisix.

singhajitk avatar singhajitk commented on May 30, 2024

can you confirm if the admin api also returns an empty result? this information is key to identify if the issue is with APISIX or just the dashboard.

Hi @shreemaan-abhishek ,
I did curl call for the admin api and it also returns empty list. The screenshot is attached
Screenshot 2024-03-24 153016

The configurations used for apisix is as below:

apisix-config.txt

kubernetes service discovery configuration:

discovery:
  kubernetes:
    client:
      token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
    default_weight: 50
    service:
      host: xx.xx.xx.xx
      port: "443"
      schema: https

from apisix.

hanqingwu avatar hanqingwu commented on May 30, 2024

@singhajitk , I think you confuse about apisix service and Kubernetes service endpoints. The dashboard only show apisix service "A service consists of a combination of public plugin configuration and upstream target information in a route"
I think maybe there is no admin api to list Kubernetes service endpoints yet .

from apisix.

singhajitk avatar singhajitk commented on May 30, 2024

@singhajitk , I think you confuse about apisix service and Kubernetes service endpoints. The dashboard only show apisix service "A service consists of a combination of public plugin configuration and upstream target information in a route" I think maybe there is no admin api to list Kubernetes service endpoints yet .

Hi @hanqingwu, As per document apisix/discovery/kubernetes (https://apisix.apache.org/docs/apisix/discovery/kubernetes/)
documentation, It looks like kubernetes services should get listed. The apisix services are getting listed without providing the discovery->kubernetes configuration.

@shreemaan-abhishek, Please correct me if my understanding is wrong that "kubernetes services should get listed when discovery->kubernetes configuration" is enabled ?

from apisix.

hanqingwu avatar hanqingwu commented on May 30, 2024

@singhajitk , From view source code , I don not find dump_data interface in discovery kubernetes .

from apisix.

singhajitk avatar singhajitk commented on May 30, 2024

@singhajitk , From view source code , I don not find dump_data interface in discovery kubernetes .

@hanqingwu, Thank you for looking into it.

@shreemaan-abhishek , will this feature get added ?

from apisix.

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.