{"id":27161771,"url":"https://github.com/suquant/tf_kuber_halb","last_synced_at":"2026-02-08T09:05:40.599Z","repository":{"id":145324424,"uuid":"137533953","full_name":"suquant/tf_kuber_halb","owner":"suquant","description":"Terraform Kubernetes HA Load Balancer Service","archived":false,"fork":false,"pushed_at":"2018-06-16T18:00:54.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T23:51:48.204Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suquant.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":"2018-06-15T21:37:07.000Z","updated_at":"2018-06-16T17:51:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"0028c3f1-06d4-4af4-a869-df6450246e60","html_url":"https://github.com/suquant/tf_kuber_halb","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/suquant/tf_kuber_halb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Ftf_kuber_halb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Ftf_kuber_halb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Ftf_kuber_halb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Ftf_kuber_halb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suquant","download_url":"https://codeload.github.com/suquant/tf_kuber_halb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Ftf_kuber_halb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29225739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T06:05:31.539Z","status":"ssl_error","status_checked_at":"2026-02-08T05:58:33.853Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-04-09T00:57:54.310Z","updated_at":"2026-02-08T09:05:40.589Z","avatar_url":"https://github.com/suquant.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes High Availability Service\n\n## Key features\n\n* Based on HAProxy\n* Configurable availability parameters (with optimized default values)\n* Proper apply/destroy\n\n## Interfaces\n\n### Input variables\n\n* count - count of connections\n* connections - public ips where applied\n* master_connection - connection to any master server\n* api_endpoints - list of master's api endpoint\n* port - lb port (default: 16443)\n* check_interval - The parameter sets the interval between two consecutive health checks (default: 10s)\n* down_interval - The parameter sets the interval between checks depending on the server state (default: 5s)\n* rise_count - The parameter states that a server will be considered as operational after \u003ccount\u003e consecutive successful health checks (default: 2)\n* fall_count - The parameter states that a server will be considered as dead after \u003ccount\u003e consecutive unsuccessful health checks (default: 2)\n* slowstart_interval - The parameter for a server accepts a interval which indicates after how long a server which has just come back up will run at full speed (default: 60s)\n* max_connections - The parameter specifies the maximal number of concurrent connections that will be sent to this server (default: 250)\n* max_queue - The parameter specifies the maximal number of connections which will wait in the queue for this server (default: 256)\n\n### Output variables\n\n* public_ips - public ips of instances/servers\n\n\n## Example\n\n```\nvariable \"token\" {}\nvariable \"master_hosts\" {\n  default = 1\n}\nvariable \"worker_hosts\" {\n  default = 3\n}\n\nvariable \"docker_opts\" {\n  type = \"list\"\n  default = [\"--iptables=false\", \"--ip-masq=false\"]\n}\n\nprovider \"hcloud\" {\n  token = \"${var.token}\"\n}\n\nmodule \"provider_master\" {\n  source = \"git::https://github.com/suquant/tf_hcloud.git?ref=v1.0.0\"\n\n  count = \"${var.master_hosts}\"\n  token = \"${var.token}\"\n\n  name        = \"master\"\n  server_type = \"cx21\"\n}\n\nmodule \"provider_worker\" {\n  source = \"git::https://github.com/suquant/tf_hcloud.git?ref=v1.0.0\"\n\n  count = \"${var.worker_hosts}\"\n  token = \"${var.token}\"\n\n  name        = \"worker\"\n  ssh_names   = [\"${module.provider_master.ssh_names}\"]\n  ssh_keys    = []\n  server_type = \"cx11\"\n}\n\nmodule \"wireguard\" {\n  source = \"git::https://github.com/suquant/tf_wireguard.git?ref=v1.0.0\"\n\n  count         = \"${var.master_hosts}\"\n  connections   = [\"${module.provider_master.public_ips}\"]\n  private_ips   = [\"${module.provider_master.private_ips}\"]\n}\n\n\nmodule \"etcd\" {\n  source = \"git::https://github.com/suquant/tf_etcd.git?ref=v1.0.0\"\n\n  count       = \"${var.master_hosts}\"\n  connections = \"${module.provider_master.public_ips}\"\n\n  hostnames   = \"${module.provider_master.hostnames}\"\n  private_ips = [\"${module.wireguard.ips}\"]\n}\n\nmodule \"docker_master\" {\n  source = \"git::https://github.com/suquant/tf_docker.git?ref=v1.0.0\"\n\n  count       = \"${var.master_hosts}\"\n  # Fix of conccurent apt install running: will run only after wireguard has been installed\n  connections = [\"${module.wireguard.public_ips}\"]\n\n  docker_opts = [\"${var.docker_opts}\"]\n}\n\nmodule \"kuber_master\" {\n  source = \"git::https://github.com/suquant/tf_kuber_master.git?ref=v1.0.0\"\n\n  count           = \"${var.master_hosts}\"\n  connections     = [\"${module.docker_master.public_ips}\"]\n\n  private_ips     = [\"${module.provider_master.private_ips}\"]\n  etcd_endpoints  = \"${module.etcd.client_endpoints}\"\n}\n\nmodule \"docker_worker\" {\n  source = \"git::https://github.com/suquant/tf_docker.git?ref=v1.0.0\"\n\n  count       = \"${var.worker_hosts}\"\n  connections = [\"${module.provider_worker.public_ips}\"]\n\n  docker_opts = [\"${var.docker_opts}\"]\n}\n\nmodule \"kuber_worker\" {\n  source = \"git::https://github.com/suquant/tf_kuber_worker.git?ref=v1.0.0\"\n\n  count       = \"${var.worker_hosts}\"\n  connections = [\"${module.docker_worker.public_ips}\"]\n\n  join_command        = \"${module.kuber_master.join_command}\"\n  kubernetes_version  = \"${module.kuber_master.kubernetes_version}\"\n}\n\nmodule \"kuber_halb\" {\n  source = \"git::https://github.com/suquant/tf_kuber_halb.git?ref=v1.0.0\"\n\n  count       = \"${var.master_hosts + var.worker_hosts}\"\n  connections = [\"${concat(module.kuber_master.public_ips, module.kuber_worker.public_ips)}\"]\n\n  master_connection = \"${module.kuber_master.public_ips[0]}\"\n  api_endpoints     = [\"${module.kuber_master.api_endpoints}\"]\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuquant%2Ftf_kuber_halb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuquant%2Ftf_kuber_halb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuquant%2Ftf_kuber_halb/lists"}