{"id":27161774,"url":"https://github.com/suquant/tf_kuber_master","last_synced_at":"2026-02-04T11:16:01.469Z","repository":{"id":145324416,"uuid":"137493451","full_name":"suquant/tf_kuber_master","owner":"suquant","description":"Terraform kubernetes master server","archived":false,"fork":false,"pushed_at":"2018-10-28T15:54:10.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T00:57:52.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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-15T13:53:07.000Z","updated_at":"2018-10-28T15:54:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e89f27c-c053-4404-a4af-97ea02dcdf44","html_url":"https://github.com/suquant/tf_kuber_master","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suquant/tf_kuber_master","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Ftf_kuber_master","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Ftf_kuber_master/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Ftf_kuber_master/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Ftf_kuber_master/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suquant","download_url":"https://codeload.github.com/suquant/tf_kuber_master/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suquant%2Ftf_kuber_master/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263991435,"owners_count":23540663,"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":"2025-04-09T00:57:54.583Z","updated_at":"2026-02-04T11:15:56.430Z","avatar_url":"https://github.com/suquant.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes master service for terraform\n\n## Features\n\n* High availability mode with haproxy load balancer (module: tf_kuber_halb)\n* Kube-router networks over wireguard vpn \n\n## Interfaces\n\n### Input variables\n\n* count - count of connections\n* connections - public ips where applied\n* private_ips - ips for communication\n* cluster_domain -  (default: cluster.local)\n* etcd_endpoints - (default: [])\n* overlay_cidr - (default: 10.244.0.0/16)\n* service_cidr - (default: 10.96.0.0/12)\n* api_port - (default: 6443)\n* kubernetes_version - (default: 1.12)\n* kube_router_version - (default: v0.2.0)\n\n### Output variables\n\n* public_ips - public ips of instances/servers\n* private_ips\n* cluster_domain\n* overlay_cidr\n* service_cidr\n* api_port\n* kubernetes_version\n* kube_router_version\n* api_endpoints - api endpoints if multi master mode activated (count \u003e 1)\n* kubeconfig - admin kubeconfig\n* join_command - join command for executo on worker(s) node(s)\n\n\n## Example\n\n```bash\nterraform init\nterraform apply -auto-approve \u003e apply.log\n```\n\n```\nvariable \"token\" {}\nvariable \"hosts\" {\n  default = 2\n}\nvariable \"overlay_cidr\" {\n  default = \"10.244.0.0/16\"\n}\n\nvariable \"docker_opts\" {\n  type = \"list\"\n  default = [\n    \"--iptables=false\",\n    \"--ip-masq=false\",\n    \"--storage-driver=overlay2\",\n    \"--live-restore\",\n    \"--log-level=warn\",\n    \"--bip=169.254.123.1/24\",\n    \"--log-driver=json-file\",\n    \"--log-opt=max-size=10m\",\n    \"--log-opt=max-file=5\",\n    \"--insecure-registry 10.0.0.0/8\"\n  ]\n}\n\nprovider \"hcloud\" {\n  token = \"${var.token}\"\n}\n\nmodule \"provider\" {\n  source = \"git::https://github.com/suquant/tf_hcloud.git?ref=v1.1.0\"\n\n  count = \"${var.hosts}\"\n\n  server_type = \"cx21\"\n}\n\nmodule \"wireguard\" {\n  source = \"git::https://github.com/suquant/tf_wireguard.git?ref=v1.1.0\"\n\n  count         = \"${var.hosts}\"\n  connections   = [\"${module.provider.public_ips}\"]\n  private_ips   = [\"${module.provider.private_ips}\"]\n  overlay_cidr  = \"10.254.254.254/32\"\n}\n\n\nmodule \"etcd\" {\n  source = \"git::https://github.com/suquant/tf_etcd.git?ref=v1.1.0\"\n\n  count       = \"1\"\n  connections = [\"${module.provider.public_ips[0]}\"]\n\n  hostnames   = [\"${module.provider.hostnames[0]}\"]\n  private_ips = [\"${module.wireguard.vpn_ips[0]}\"]\n}\n\nmodule \"docker\" {\n  source = \"git::https://github.com/suquant/tf_docker.git?ref=v1.1.0\"\n\n  count       = \"${var.hosts}\"\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.1.0\"\n\n  count           = \"${var.hosts}\"\n  connections     = [\"${module.docker.public_ips}\"]\n\n  private_ips     = [\"${module.wireguard.vpn_ips}\"]\n  etcd_endpoints  = \"${module.etcd.client_endpoints}\"\n  overlay_cidr    = \"${var.overlay_cidr}\"\n  node_labels     = [\n    \"node.example.com/key1=val1\",\n    \"node.example.com/key2=val2\"\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuquant%2Ftf_kuber_master","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuquant%2Ftf_kuber_master","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuquant%2Ftf_kuber_master/lists"}