Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewing nothing when using Kong Ingress #9

Open
cronventis opened this issue Jan 18, 2021 · 9 comments
Open

Viewing nothing when using Kong Ingress #9

cronventis opened this issue Jan 18, 2021 · 9 comments
Labels
bug Something isn't working

Comments

@cronventis
Copy link

I was trying to visualize my cluster. we are using KongIngress and the cluster was added propperly..
Even when klicking on edit (view mode only) the konfig gets loaded and all services are listed..
But I can only see the Kong Logo in the "view" part... No errors anywhere..

@nikirago
Copy link
Contributor

Hi, you have exposed the admin api of the controller/gateway? What version of Kong Ingress controller are you using? Are you saying the config is showing properly in declarative viewer but not the map? If so, there is something in the map that is breaking the javascript? What does the javascript console say in the browser? Can you share the resulting HTML of the map view (minus anything that would be private)

@cronventis
Copy link
Author

cronventis commented Jan 19, 2021

  1. What exactly do you mean by controller/gateway?
  2. KongIngress = kong:2.2.1-alpine
  3. That is correct
  4. There are no js errors in the console
    image
  5. The canvas element is there, but except the monkey.. There is nothing else:
    image
  6. And this is the Config:
    image

@nikirago
Copy link
Contributor

One last thing, can you share the kongmap cluster config json (minus sensitive data)? Happy to jump on a zoom to help live.

@nikirago
Copy link
Contributor

This could also be related to an issue w/ the new vis-network version that was released that broke some elements of the map. Will be updating the docker image in the next 24 hours to fix.

@nikirago
Copy link
Contributor

Hi @cronventis . Can you pull the latest image from dockerhub and verify if the problem is now resolved related to #10?

@cronventis
Copy link
Author

Nope, still not working.
how would you like to get in contact so you can take a closer look?

@nikirago
Copy link
Contributor

If you are not comfortable leaving your email here, please do so on the contact form on https://www.yes-interactive.com/ and reference this issue and I will get back to you via email. we can schedule a zoom call to figure out what's going on.

Is the admin API generating content? meaning, are there are the /routes and /services endpoints showing any data? It looks like nothing is being returned (ie, if there is nothing configured in Kong as far as ingress rules/routes and services then the map will just show the Kong logo). A good test is to apply a sample ingress configuration like https://github.com/yesinteractive/dadjokes/blob/master/examples/dadjokes_kong_for_k8s.yaml and then reload map)

@nikirago nikirago added the bug Something isn't working label Jan 22, 2021
@nikirago
Copy link
Contributor

Issued was identified to be related to a trailing slash in the admin api configuration. Will update kongmap to trim trailing slashes. Re-labeled as a bug.

@nikirago
Copy link
Contributor

nikirago commented Jul 7, 2021

Didn't have time to get this in but updated docs to note that admin api can not have trailing slash in the config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants