{"id":15988719,"url":"https://github.com/fbiville/go-http2-istio","last_synced_at":"2025-04-04T22:23:25.953Z","repository":{"id":144735145,"uuid":"174982016","full_name":"fbiville/go-http2-istio","owner":"fbiville","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-12T15:58:53.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T07:12:24.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/fbiville.png","metadata":{"files":{"readme":"README.adoc","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":"2019-03-11T11:00:08.000Z","updated_at":"2019-03-12T15:58:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"3829eddf-148b-43b2-b611-d598246dbd98","html_url":"https://github.com/fbiville/go-http2-istio","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/fbiville%2Fgo-http2-istio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbiville%2Fgo-http2-istio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbiville%2Fgo-http2-istio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbiville%2Fgo-http2-istio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fbiville","download_url":"https://codeload.github.com/fbiville/go-http2-istio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256857,"owners_count":20909364,"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":[],"created_at":"2024-10-08T04:20:56.526Z","updated_at":"2025-04-04T22:23:25.909Z","avatar_url":"https://github.com/fbiville.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Istio experiments\n\nThis repo experiments with Istio and dynamic routing.\n\n== Server image\n\nTIP: Make sure Istio is installed in your target Kubernetes cluster.\n\nThe server is packaged in a Docker container.\nJust run:\n\n```console\n $ docker build . -t my-http2-server\n $ docker push REPO/USER/my-http2-server\n```\n\n== Experiments\n\nTIP: Make sure to update link:./k8s/pod.yml[the pod] to reference your Docker image.\n\n=== Goal\n\nThe experiment aims to verify that several `VirtualService` resources can be defined for the same application.\n\nIn this experiment, we define a misconfigured link:./k8s/istio-routes.yml[`VirtualService`] (`vsvc`) that matches incoming traffic by a specific `Authority` HTTP header value\nand re-routes it to a port. The link:./k8s/service.yml[`Service`] referenced by this `vscv` does NOT listen to the redirected port.\n\nWe define another link:./k8s/istio-routes-extra.yml[`VirtualService`] that matches by `Content-Type` header value and also re-routes traffic to a\nport. This time, though, the `link:./k8s/service-extra.yml[`Service`] referenced by this `vscv` actually listens to the redirected port.\n\nlink:./k8s/test.sh[The test script] properly deletes and recreates the resources and sends three HTTP requests:\n\n 1. one that includes both the proper `Authority` and `Content-Type` values\n 1. one that includes only the `Authority value`\n 1. one that includes only the `Content-Type value`\n\nThe first one MAY succeed, it depends on Istio's link:https://istio.io/help/ops/traffic-management/deploy-guidelines/#multiple-virtual-services-and-destination-rules-for-the-same-host[nondeterministic cross-resource rule merge order].\n\nThe second one MUST always fail.\n\nThe third one MUST always succeed.\n\n\n=== Run\nYou can run:\n\n```console\n $ cd k8s\n $ ./test.sh\n```\n\nTIP: You can also observe the non-deterministic outcome of the first request by running the script in\na loop: `for i in {1..5}; do echo \"=== Try $i ===\"; ./test.sh; done`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbiville%2Fgo-http2-istio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffbiville%2Fgo-http2-istio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbiville%2Fgo-http2-istio/lists"}