{"id":21727371,"url":"https://github.com/kostis-codefresh/rollouts-header-routing-example","last_synced_at":"2025-08-03T17:35:59.325Z","repository":{"id":260603747,"uuid":"866980736","full_name":"kostis-codefresh/rollouts-header-routing-example","owner":"kostis-codefresh","description":"Example with Argo Rollouts and Header based routing","archived":false,"fork":false,"pushed_at":"2024-11-01T09:40:03.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T19:43:27.689Z","etag":null,"topics":["argo","canary","devops","kubernetes","rollouts"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/kostis-codefresh.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":"2024-10-03T08:32:07.000Z","updated_at":"2024-11-01T09:40:06.000Z","dependencies_parsed_at":"2024-11-01T10:26:09.043Z","dependency_job_id":"706c246b-f6a6-4afb-a35e-ecf2bf03cdcd","html_url":"https://github.com/kostis-codefresh/rollouts-header-routing-example","commit_stats":null,"previous_names":["kostis-codefresh/rollouts-header-routing-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostis-codefresh%2Frollouts-header-routing-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostis-codefresh%2Frollouts-header-routing-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostis-codefresh%2Frollouts-header-routing-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostis-codefresh%2Frollouts-header-routing-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kostis-codefresh","download_url":"https://codeload.github.com/kostis-codefresh/rollouts-header-routing-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244706543,"owners_count":20496571,"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":["argo","canary","devops","kubernetes","rollouts"],"created_at":"2024-11-26T03:49:42.354Z","updated_at":"2025-08-03T17:35:59.307Z","avatar_url":"https://github.com/kostis-codefresh.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Static and Dynamic routing for Canaries with Argo Rollouts\n\nThis repository contains 3 examples for using Traefik 3.x with Argo Rollouts\nvia the Gateway API\n\n1. Example with just a [route](simple) \n2. Example with [static routes for preview/stable/canary](static-routing)\n3. Example with [header based routing](dynamic-routing).\n\nRead the full blog at [https://codefresh.io/blog/argo-rollouts-header-based-routing/](https://codefresh.io/blog/argo-rollouts-header-based-routing/)\n\n## Traefik setup\n\nThis process is common to both examples.\n\nInstall traefik 3.x, Argo Rollouts and the Gateway API plugin as described [traefik-setup/README.md](traefik-setup/README.md) in a local Kubernetes cluster.\n\nExpose the Traefik endpoint as Load Balancer so you can visit it via the browser.\n\n## Simple HTTP route example\n\nTo test just the Gateway API implementation of Traefik apply the manifests\nat `simple` folder. Then visit `http://localhost/example/` to see the application.\n\n## Static routing example\n\nApply the manifests in the `static-routing` folder. Then start a canary\nby editing the `rollout.yml` file and change the docker image to different tags.\n\nThen visit the 3 urls\n\n* `http://localhost/stable/` This is always old version\n* `http://localhost/canary/` This is active canary version\n* `http://localhost/preview/` This is always new  version\n\nYou can inspect the rollout with\n\n```\nkubectl argo rollouts get rollout static-rollouts-demo\n```\n\n## Dynamic routing example\n\nApply the manifests in the `dynamic-routing` folder. Then start a canary\nby editing the `rollout.yml` file and change the APP_VERSION and APP_COLOR to start a canary\n\nThen visit `http://localhost` and see that if you change the active header on the UI, the application can be forced to be part of the canary.\n\nYou can inspect the rollout with\n\n```\nkubectl argo rollouts get rollout smart-rollouts-demo\n```\n\n## Kubecon Presentation for Header Based Routing\n\nIf you prefer video format see the [Kubecon Presentation](https://www.youtube.com/watch?v=95OFqU4UjiE). \n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkostis-codefresh%2Frollouts-header-routing-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkostis-codefresh%2Frollouts-header-routing-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkostis-codefresh%2Frollouts-header-routing-example/lists"}