{"id":18412627,"url":"https://github.com/benchkram/k8s-gateway-example","last_synced_at":"2025-08-16T09:06:43.510Z","repository":{"id":162151946,"uuid":"636687170","full_name":"benchkram/k8s-gateway-example","owner":"benchkram","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-05T14:55:29.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T00:18:55.773Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benchkram.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-05-05T12:15:17.000Z","updated_at":"2024-10-02T22:55:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"8603d1b4-8f24-413b-85a2-a2c640de1162","html_url":"https://github.com/benchkram/k8s-gateway-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/benchkram/k8s-gateway-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benchkram%2Fk8s-gateway-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benchkram%2Fk8s-gateway-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benchkram%2Fk8s-gateway-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benchkram%2Fk8s-gateway-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benchkram","download_url":"https://codeload.github.com/benchkram/k8s-gateway-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benchkram%2Fk8s-gateway-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270689907,"owners_count":24628762,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-06T03:42:51.788Z","updated_at":"2025-08-16T09:06:43.458Z","avatar_url":"https://github.com/benchkram.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How To:  Replacing Your Ingress With the Novel Kubernetes Gateways\n\nThis is the repository for the blog post [Replacing Your Ingress With the Novel Kubernetes Gateways](https://benchkram.de/blog/dev/replace-kubernetes-ingress-with-gateway-api).\n\n## Set up the Cluster with Ingress\n\n```bash\nkind create cluster --name ingress-example\nkubectl config use-context kind-ingress-example\nkubectl apply -f nginx-ingress/nginx-ingress-controller.yaml\nkubectl apply -f pods-service-manifest.yaml\nkubectl apply -f ingress-manifest.yaml\n\nkubectl get pods -n ingress-nginx\nkubectl port-forward -n ingress-nginx nginx-ingress-controller-\u003cname\u003e 8080:80\ncurl localhost:8080/service-a\ncurl localhost:8080/service-b\n```\n\n## Set up the Cluster with Gateways\n\n```bash\nkind create cluster --name gateway-example\nkubectl config use-context kind-gateway-example\nkubectl create namespace nginx-gateway\nkubectl create configmap njs-modules --from-file=nginx-gateway/httpmatches.js -n nginx-gateway\nkubectl apply -f nginx-gateway/nginx-gateway-controller.yaml\nkubectl apply -f gatewayclass-manifest.yaml\n# check it's working\nkubectl get pods -n nginx-gateway\n\nkubectl apply -f pods-service-manifest.yaml\nkubectl apply -f gateway-manifest.yaml\n\nkubectl get pods -n nginx-gateway\nkubectl port-forward -n nginx-gateway \u003cname\u003e 8080:80\ncurl localhost:8080/service-a\ncurl localhost:8080/service-b\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenchkram%2Fk8s-gateway-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenchkram%2Fk8s-gateway-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenchkram%2Fk8s-gateway-example/lists"}