{"id":16926128,"url":"https://github.com/databus23/octavia-switch-pool-protocol","last_synced_at":"2026-04-17T02:32:08.972Z","repository":{"id":145456174,"uuid":"340481349","full_name":"databus23/octavia-switch-pool-protocol","owner":"databus23","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-19T20:25:46.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-03T21:41:09.426Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/databus23.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":"2021-02-19T20:25:25.000Z","updated_at":"2021-02-19T20:25:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"53cb4e73-dcf0-4ef7-b592-e7d1970e7af9","html_url":"https://github.com/databus23/octavia-switch-pool-protocol","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/databus23/octavia-switch-pool-protocol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databus23%2Foctavia-switch-pool-protocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databus23%2Foctavia-switch-pool-protocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databus23%2Foctavia-switch-pool-protocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databus23%2Foctavia-switch-pool-protocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/databus23","download_url":"https://codeload.github.com/databus23/octavia-switch-pool-protocol/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databus23%2Foctavia-switch-pool-protocol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31912373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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-10-13T20:29:06.814Z","updated_at":"2026-04-17T02:32:08.937Z","avatar_url":"https://github.com/databus23.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"octavia pool protocol switcher\n==============================\n\nThis repo contains a small script to switch the default pool of loadbalancers listeners.\nAs changing the pool protocol is not allowed by the ocatvia api a new pool is created for each listener.\n\nUsage\n======\nUsage of ./octavia-switch-pool-protocol:\n  -delete\n    \tDelete the old pool (implies --switch-default-pool)\n  -listenerID string\n    \tModify the pools of the given listener\n  -loadBalancerID string\n    \tModify the pools of all listeners of t he given loadbalancer\n  -protocol string\n    \tThe protocol to which the pools should be changed to (default \"PROXY\")\n  -switch-default-pool\n    \tChange the default pool of the listner to the new pool\n\nExample\n=============\n\n1. Step just create the new pools, don't change the default pool yet:\n\n```\n\u003e  go run . -loadBalancerID=8baae870-b04c-4502-b1fe-f820da6d160a -protocol=PROXY\n2021/02/19 11:34:55 Processing listener listener_0_kube_service_s-qa-de-1_kube-system_kube-system-nginx-ingress-controller id 5aa556b4-bae2-471a-86a6-eca9b20e65b7 port 80 default pool id 2f1379b7-97d3-4e1a-982a-6b44afee7e34\n2021/02/19 11:35:02 Created new pool 506c28aa-3d8a-4fa2-8aab-9a424dfb76c2\n2021/02/19 11:35:03 Create monitor for pool 506c28aa-3d8a-4fa2-8aab-9a424dfb76c2\n2021/02/19 11:35:16 Updated members in new pool 506c28aa-3d8a-4fa2-8aab-9a424dfb76c2\n2021/02/19 11:35:26 Processing listener listener_1_kube_service_s-qa-de-1_kube-system_kube-system-nginx-ingress-controller id d2ff2da3-67cf-466a-b61e-31d77a1ed378 port 443 default pool id c223029f-e99c-4123-a33c-4b8880d0dfa1\n2021/02/19 11:35:34 Created new pool 1b958dd5-51fd-4436-8caa-04490fe5759c\n2021/02/19 11:35:35 Create monitor for pool 1b958dd5-51fd-4436-8caa-04490fe5759c\n2021/02/19 11:35:45 Updated members in new pool 1b958dd5-51fd-4436-8caa-04490fe5759c\n\n```\n\n2. After the new pool has setteled down and the receiving backend has been configured to accept proxy protocol\n\n```\n\u003e go run . -loadBalancerID=8baae870-b04c-4502-b1fe-f820da6d160a -protocol=PROXY -switch-default-pool\n2021/02/19 13:51:49 Processing listener listener_0_kube_service_s-qa-de-1_kube-system_kube-system-nginx-ingress-controller id 5aa556b4-bae2-471a-86a6-eca9b20e65b7 port 80 default pool id 2f1379b7-97d3-4e1a-982a-6b44afee7e34\n2021/02/19 13:51:49 New pool 506c28aa-3d8a-4fa2-8aab-9a424dfb76c2 with correct protocol already exists for current pool 2f1379b7-97d3-4e1a-982a-6b44afee7e34\n2021/02/19 13:51:49 Updated default pool of listener to new pool: 506c28aa-3d8a-4fa2-8aab-9a424dfb76c2\n2021/02/19 13:51:55 Processing listener listener_1_kube_service_s-qa-de-1_kube-system_kube-system-nginx-ingress-controller id d2ff2da3-67cf-466a-b61e-31d77a1ed378 port 443 default pool id c223029f-e99c-4123-a33c-4b8880d0dfa1\n2021/02/19 13:51:55 New pool 1b958dd5-51fd-4436-8caa-04490fe5759c with correct protocol already exists for current pool c223029f-e99c-4123-a33c-4b8880d0dfa1\n2021/02/19 13:51:56 Updated default pool of listener to new pool: 1b958dd5-51fd-4436-8caa-04490fe5759c\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabus23%2Foctavia-switch-pool-protocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatabus23%2Foctavia-switch-pool-protocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabus23%2Foctavia-switch-pool-protocol/lists"}