{"id":16879988,"url":"https://github.com/aledbf/kube-haproxy-router","last_synced_at":"2025-04-11T11:43:27.102Z","repository":{"id":35843819,"uuid":"40127515","full_name":"aledbf/kube-haproxy-router","owner":"aledbf","description":null,"archived":false,"fork":false,"pushed_at":"2015-11-01T21:09:56.000Z","size":3020,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T08:03:48.693Z","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/aledbf.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}},"created_at":"2015-08-03T13:54:38.000Z","updated_at":"2015-10-22T13:36:34.000Z","dependencies_parsed_at":"2022-09-18T01:23:07.632Z","dependency_job_id":null,"html_url":"https://github.com/aledbf/kube-haproxy-router","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/aledbf%2Fkube-haproxy-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aledbf%2Fkube-haproxy-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aledbf%2Fkube-haproxy-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aledbf%2Fkube-haproxy-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aledbf","download_url":"https://codeload.github.com/aledbf/kube-haproxy-router/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248386365,"owners_count":21095064,"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-13T15:56:50.750Z","updated_at":"2025-04-11T11:43:27.076Z","avatar_url":"https://github.com/aledbf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DEPRECATED \n\n# The contents of this repository is in this  [kubernetes/contrib](https://github.com/kubernetes/contrib/tree/master/service-loadbalancer) repository\n\n\n# kube-haproxy-router\n\nReplace nginx to avoid kube-proxy to reach a pod.\n\n`Internet-\u003e Nginx -\u003e iptables (VIP) -\u003e kube-proxy -\u003e go LB -\u003e flannel -\u003e docker bridge -\u003e pod/s`\n\nwith\n\n`Internet -\u003e kube-haproxy -\u003e flannel -\u003e docker bridge -\u003e pod/s`\n\n**Changes:**\n  - remove nginx\n  - do not use service VIP to reach a pod\n  - use the name of the application (hostname) to route traffic\n  - use haproxy checks\n\nThis borrow ideas from #12111 and #11679 in `github.com/GoogleCloudPlatform/kubernetes`\n\n**Content type**\n\nSome applications, like a REST API always return json content. In this cases it makes sense to also return error (404,408,502,503 and 504) in the same format.\nAny `kubernetes` service with the label `content=json` will return a json response in case of an error.\n\n```\ndocker run \\\n  --name kube-haproxy \\\n  --rm \\\n  -p 80:80 \\\n  -p 443:443 \\\n  -p 1936:1936 \\\n  -p 2222:2222 \\\n  -p 8081:8081 \\\n  -v /dev/log:/dev/log \\\n  aledbf/kube-haproxy-router:v0.0.1 \\\n  /kube-haproxy \\\n  --master http://$(etcdctl get /deis/scheduler/k8s/master):8080 \\\n  --domain=$(etcdctl get /deis/platform/domain) \\\n  --nodes=$(fleetctl list-machines -fields=ip -no-legend | xargs | sed -e 's/ /,/g')\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faledbf%2Fkube-haproxy-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faledbf%2Fkube-haproxy-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faledbf%2Fkube-haproxy-router/lists"}