{"id":18794197,"url":"https://github.com/yandex-cloud-examples/yc-mk8s-gateway-api-samples","last_synced_at":"2026-02-16T09:02:36.347Z","repository":{"id":270233360,"uuid":"769060808","full_name":"yandex-cloud-examples/yc-mk8s-gateway-api-samples","owner":"yandex-cloud-examples","description":"Gateway API usecases for Managed Service for Kubernetes (MK8S).","archived":false,"fork":false,"pushed_at":"2025-02-16T18:43:04.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-06-01T12:45:38.802Z","etag":null,"topics":["kubernetes","kubernetes-api","mk8s","yandex-cloud","yandexcloud"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yandex-cloud-examples.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,"zenodo":null}},"created_at":"2024-03-08T09:06:09.000Z","updated_at":"2024-03-08T09:06:59.000Z","dependencies_parsed_at":"2024-12-29T15:47:08.019Z","dependency_job_id":"b0c06468-9c17-4bf0-a566-5e2e352f0a83","html_url":"https://github.com/yandex-cloud-examples/yc-mk8s-gateway-api-samples","commit_stats":null,"previous_names":["yandex-cloud-examples/yc-mk8s-gateway-api-samples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yandex-cloud-examples/yc-mk8s-gateway-api-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-cloud-examples%2Fyc-mk8s-gateway-api-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-cloud-examples%2Fyc-mk8s-gateway-api-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-cloud-examples%2Fyc-mk8s-gateway-api-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-cloud-examples%2Fyc-mk8s-gateway-api-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yandex-cloud-examples","download_url":"https://codeload.github.com/yandex-cloud-examples/yc-mk8s-gateway-api-samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-cloud-examples%2Fyc-mk8s-gateway-api-samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29504684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T08:14:25.707Z","status":"ssl_error","status_checked_at":"2026-02-16T08:14:25.334Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["kubernetes","kubernetes-api","mk8s","yandex-cloud","yandexcloud"],"created_at":"2024-11-07T21:28:38.270Z","updated_at":"2026-02-16T09:02:36.319Z","avatar_url":"https://github.com/yandex-cloud-examples.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gateway API usecases for Managed Kubernetes\n\nThis folder contains examples of k8s manifests to set up kubernetes [gateways](https://gateway-api.sigs.k8s.io/) for Prod and Dev environments. Environments placed to different namespaces. Gateways configured to be bind only to particular namespaces for isolation. TLS secrets placed to separate namespace.\n\n## Prerequires\n\n- Managed Kubernetes Cluster in Yandex Cloud.\n- Installed and initialized [yc cli](https://cloud.yandex.com/en-ru/docs/cli/operations/install-cli).\n- Public domain [deletated to Cloud DNS](https://cloud.yandex.com/en-ru/docs/dns/concepts/dns-zone#public-zones) service by Yandex Cloud.\n\n## Gateway installation\n\n- Install Gateway API from Marketplace. In console go to Managed Service for Kubernetes -\u003e (Select your cluster) -\u003e Marketplace -\u003e Gateway API -\u003e Use.\n- Fill all necessary fields and install Gateway API.\n\n## Example of Prod and Dev gateways and environments\n\n### Create reserved IP addresses\n\n```bash\nyc vpc address create --name=prod --labels reserved=true --external-ipv4 zone=ru-central1-b # change to zone of your cluster\nyc vpc address create --name=dev --labels reserved=true --external-ipv4 zone=ru-central1-b # change to zone of your cluster\n```\n\n### Create prod and dev records to your zone\n\n```bash\nyc dns zone add-records --name my-domain --record '*.prod.example.com 60 A  \u003cip_address\u003e'\nyc dns zone add-records --name my-domain --record '*.dev.example.com 60 A  \u003cip_address\u003e'\n```\n\n### Create tls certificate (optional) and separate namespace for tls secrets\n\nCreate separate namespace for tls secrets.\n\n```bash\nkubectl create namespace gateway-api-tls-secrets\n```\n\nCreate certificate for prod gateway.\n\n```bash\nopenssl req -x509 \\\n    -newkey rsa:4096 \\\n    -keyout gateway-key-prod.pem \\\n    -out gateway-cert-prod.pem \\\n    -nodes \\\n    -days 365 \\\n    -subj '/CN=*.prod.example.com'\n\nkubectl create -n gateway-api-tls-secrets secret tls gateway-prod-tls \\\n    --cert=gateway-cert-prod.pem \\\n    --key=gateway-key-prod.pem\n```\n\nCreate certificate for dev gateway.\n\n```bash\nopenssl req -x509 \\\n    -newkey rsa:4096 \\\n    -keyout gateway-key-dev.pem \\\n    -out gateway-cert-dev.pem \\\n    -nodes \\\n    -days 365 \\\n    -subj '/CN=*.dev.example.com'\n\nkubectl create -n gateway-api-tls-secrets secret tls gateway-dev-tls \\\n    --cert=gateway-cert-dev.pem \\\n    --key=gateway-key-dev.pem\n```\n\n### Configure your IP adresses and domains\n\nReplace \u003cip_address\u003e in yaml files to real IPs created earlier and change example.com to your domains.\n\n### Apply manifests\n\n```bash\nkubectl apply prod-gw.yaml\nkubectl apply prod-app.yaml\nkubectl apply prod-route.yaml\n\nkubectl apply dev-gw.yaml\nkubectl apply dev-app.yaml\nkubectl apply dev-route.yaml\n```\n\n### Check applications\n\nCheck applications on `app.prod.example.com` and `app.dev.example.com`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyandex-cloud-examples%2Fyc-mk8s-gateway-api-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyandex-cloud-examples%2Fyc-mk8s-gateway-api-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyandex-cloud-examples%2Fyc-mk8s-gateway-api-samples/lists"}