{"id":19724018,"url":"https://github.com/vs4vijay/kong","last_synced_at":"2026-05-16T00:38:49.855Z","repository":{"id":142961481,"uuid":"280416716","full_name":"vs4vijay/kong","owner":"vs4vijay","description":"🦍 Kong API Gateway","archived":false,"fork":false,"pushed_at":"2023-12-15T17:49:47.000Z","size":350,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-11T23:29:47.847Z","etag":null,"topics":["api","api-gateway","api-management","k8s","katacoda","katacoda-scenarios","kong","kong-api","kong-api-gateway","kong-gateway","kong-plugin","kubernetes","kubernetes-deployment"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vs4vijay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-17T12:19:13.000Z","updated_at":"2022-01-27T22:45:21.000Z","dependencies_parsed_at":"2024-11-11T23:28:04.685Z","dependency_job_id":"d220ce7f-194f-47f8-aac0-da8433ea6b2f","html_url":"https://github.com/vs4vijay/kong","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vs4vijay%2Fkong","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vs4vijay%2Fkong/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vs4vijay%2Fkong/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vs4vijay%2Fkong/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vs4vijay","download_url":"https://codeload.github.com/vs4vijay/kong/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233376729,"owners_count":18667064,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-gateway","api-management","k8s","katacoda","katacoda-scenarios","kong","kong-api","kong-api-gateway","kong-gateway","kong-plugin","kubernetes","kubernetes-deployment"],"created_at":"2024-11-11T23:24:14.532Z","updated_at":"2025-10-27T19:33:45.749Z","avatar_url":"https://github.com/vs4vijay.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kong\n\nTry at KataCode: https://katacoda.com/vs4vijay/scenarios/kong-with-kubernetes\n\n## Getting Start\n\n### Kong with Docker\n\n- Run Kong with Postgres DB: \n```\ndocker-compose up\n```\n- Run with Konga UI:\n```\ndocker-compose -f docker-compose.yml -f docker-compose.konga.yml up\n```\n- Stop Kong\n```\ndocker-compose down\n```\n\n### Kong with Kubernetes\n\n- Acts as north-south traffic gateway\n- Declarative configuration\n- DB-less\n\nInstallation:\n```shell\nkubectl apply -f https://bit.ly/k4k8s\n\nkubectl get services -n kong\n\nexport PROXY_IP=$(kubectl get -o jsonpath=\"{.status.loadBalancer.ingress[0].ip}\" service -n kong kong-proxy)\n```\n\nTry Sample Service:\n```shell\nkubectl apply -f https://bit.ly/echo-service\n\n\nkubectl apply -f - \u003c\u003cDOC\napiVersion: configuration.konghq.com/v1\nkind: KongPlugin\nmetadata:\n  name: viz-request-id\nconfig:\n  header_name: viz-request-id\nplugin: correlation-id\nDOC\n\n\nkubectl apply -f - \u003c\u003cDOC\napiVersion: configuration.konghq.com/v1\nkind: KongPlugin\nmetadata:\n  name: viz-rate-limit\nconfig:\n  minute: 5\n  limit_by: ip\n  policy: local\nplugin: rate-limiting\nDOC\n\n\nkubectl apply -f - \u003c\u003cDOC\napiVersion: extensions/v1beta1\nkind: Ingress\nmetadata:\n  name: demo\n  annotations:\n    konghq.com/plugins: viz-request-id, viz-rate-limit\nspec:\n  rules:\n  - http:\n      paths:\n      - path: /demo\n        backend:\n          serviceName: echo\n          servicePort: 80\nDOC\n\n```\n\nNotes:\n- Kong Plugins can be applied to k8s Ingress or Service\n- Can use `KongClusterPlugin` for cluster-level resources\n\nReferences:\n- https://github.com/Kong/kubernetes-ingress-controller\n- https://github.com/Kong/kubernetes-ingress-controller/blob/master/docs/guides/getting-started.md\n- https://github.com/Kong/kubernetes-ingress-controller/blob/master/docs/guides/using-external-service.md\n- https://www.konglabs.io/get-started-with-kong-free-access/\n\n\n---\n\n## Screenshots\n\n### Konga UI\n\n![Konga UI](/.screenshots/konga_ui.png)\n\n---\n\n### Development Notes\n\n```shell\n\nkubectl apply -f https://bit.ly/k8s-httpbin\n\nkubectl patch service ext-httpbin -p '{\"metadata\":{\"annotations\":{\"konghq.com/plugins\":\"viz-rate-limit\"}}}'\n\nkubectl annotate service httpbin konghq.com/plugins=viz-request-id\n\nkubectl apply -f - \u003c\u003cDOC\n\nDOC\n\nhttps://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml\n\nhttps://github.com/kubernetes/examples/tree/master/guestbook-go\n\nhttps://bit.ly/k4k8s\nhttps://bit.ly/echo-service\nhttps://bit.ly/k8s-redis\nhttps://bit.ly/k8s-httpbin\nhttps://bit.ly/kong-ingress-dbless\n\n\n#####################\n# Inline HTTP Server\n\n## Using Python\npython -m SimpleHTTPServer\npython3 -m http.server\n\n## Using Bash\nwhile true; do nc -l -p 8000 -c 'echo -e \"HTTP/1.1 200 OK\\n\\n $(date)\"'; done\nwhile true; do echo -e \"HTTP/1.1 200 OK\\n\\n $(date)\" | nc -l localhost 8000; done\n\n## Using Ruby\nruby -run -e httpd . -p 8000\n\n## Using PHP\nphp -S localhost:8000\n#####################\n\nexport PROXY_IP=$(kubectl get -o jsonpath=\"{.spec.clusterIP}\" service -n kong kong-proxy)\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvs4vijay%2Fkong","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvs4vijay%2Fkong","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvs4vijay%2Fkong/lists"}