Questions tagged [kong]

Kong is a cloud-native, fast, scalable, and distributed Microservice Abstraction Layer (also known as an API Gateway or API Middleware). Made available as an open-source project in 2015, its core values are high performance and extensibility. Actively maintained, Kong is widely used in production at companies ranging from startups to Global 5000 as well as government organizations.

Kong is an open-source (under Apache Version 2.0 license) management layer for Microservices and APIs, delivering high performance and reliability. Built on top of NGINX, Kong can be fully operated with a simple and easy to use RESTful API.

It provides an easy way to add extra functionality to APIs and microservices through the use of Kong Plugins.

741 questions
4
votes
1 answer

Slots in the loadbalancer algorithm?

Upon going through the documentation of `kong' api gateway, there's concept called slots in upstream servers. I did't get the meaning of that. Please share the knowledge of that.
pandiaraj
  • 580
  • 1
  • 6
  • 18
4
votes
1 answer

Dockererized Kong on windows giving "An invalid response was received from the upstream server"

Please help me as I am getting "An invalid response was received from the upstream server" error on getting the data from REST endpoint using Dockerized Kong. REST service that I am trying to access using Kong is running on my localhost. Kong…
Kamal Verma
  • 115
  • 1
  • 1
  • 10
4
votes
1 answer

Kong API gateway v0.11.0 upstream_url

We are trying to set up a plugin that depends on the headers of the request, proxy it to an specific host. Ex. curl -H 'Env: foo' http://127.0.0.1:8000/poc -> https://foo.example.com/poc curl -H 'Env: bar' http://127.0.0.1:8000/poc ->…
4
votes
1 answer

Need help about Kong and OAuth with self-managed user-database

I need to use Kong and OAuth to build a web app and some other APIs. Now I have: A server for Kong. A server storages User Information such as id, username, password. Named it as User-Database. I need to: The web app and some others are going to…
Catscarlet
  • 518
  • 1
  • 5
  • 20
4
votes
1 answer

Kong for a single service that has public and private resources

Once you enable an auth plugin for a service all its resources requires authentication, what if I want to whitelist some resources and expose them publicly.
sel_space
  • 187
  • 2
  • 12
4
votes
0 answers

Kong Request Transformer, dynamic value, taken from Redis

I need to implement this security mechanism based on Oauth 2.0 and JWT for my micro services, based on what explained here: http://nordicapis.com/how-to-control-user-identity-within-microservices/ I use Kong (getting.org). At some point, according…
Cokorda Raka
  • 4,375
  • 6
  • 36
  • 54
4
votes
4 answers

Kong: Running Mashape Kong fails on Mac OS X

Today I installed Kong (API Management Layer) on my Mac OS X (Yosemite 10.10.5). I used the .pkg file which is available here. I followed the installation instructions and everything was successful. I also installed Cassandra using the information…
Kamalakannan J
  • 2,818
  • 3
  • 23
  • 51
3
votes
1 answer

kong error using deck: cannot create or update 'services' entities when not using a database

I have set up kong in dbless mode on RHEL by following the below documentation https://docs.konghq.com/gateway/latest/install-and-run/rhel/ Kong gateway is successfully started. Below are the configurations I added in kong.conf file where database…
Jahanzaib
  • 121
  • 2
  • 9
3
votes
1 answer

kong gateway add headers

I want to add some headers to my incoming rest api requests with kong gateway. In the kong admin UI, I set these parametes : config.add.headers: myheader: $(consumer_id) myheader is a name for new header and I want to set variable of consumer_id…
pheshmati
  • 53
  • 1
  • 5
3
votes
2 answers

Is there way how to setup wildcard certificate in Kong-Ingress-Controller to be used in each Ingress?

Is there way how to setup wildcard certificate in Kong-Ingress-Controller to be used in each Ingress? I have Kong installed from chart: $ helm repo add kong https://charts.konghq.com $ helm repo update $ helm install kong/kong --generate-name --set…
Simon21
  • 43
  • 5
3
votes
1 answer

Kong {"message":"no Route matched with those values"}

I had tried https://docs.konghq.com/getting-started-guide/2.1.x/expose-services/ as well I have locally Server: kong/2.2.1 I am able to register service and router both but when I am calling the kong to redirect its giving below error. service…
NIRAJ KUMAR
  • 163
  • 1
  • 1
  • 11
3
votes
1 answer

Using Kong's key-auth and session plugin together

I am new to Kong and have a setup with the key-auth plugin enabled. So when I go to https://localhost:32443 I get {"message":"No API key found in request"}. If I specify an apikey I get the homepage of the application but it is blank. The first…
Sean Barry
  • 61
  • 2
  • 6
3
votes
2 answers

Hi I'm trying to get client real-ip to restrict some access at pod on kubernetes environemnt

Hi I'm trying to get client real-ip to restrict some access at pod. But unfortunately I'm always getting 10.244.1.1 at every pod. I have tried with https://kubernetes.io/docs/tutorials/services/source-ip/ but unfortunately no luck. Please help. I'm…
3
votes
2 answers

k8s Ingress with Kong - Plugin Application and Configuration via cURL vs YAML

I'm trying to use a Kong plugin for k8s ingress customization. Specifically, i'm using the Kong ingress controller and the "request-transformer-advanced" plugin (Reference: https://docs.konghq.com/hub/stone-payments/kong-plugin-url-rewrite/) The…
CoderOfTheNight
  • 944
  • 2
  • 8
  • 21
3
votes
3 answers

Cannot Remove all evicted pods in all Kubernetes namespaces Cronjob

My Kubernetes cluster has memory pressure limits that I need to fix (at a later time). There are sometimes anywhere from a few evicted pods to dozens. I created a Cronjob spec for clearing up the evicted pods. I tested the command inside and it…