{"id":13820782,"url":"https://github.com/kontena/akrobateo","last_synced_at":"2025-05-03T11:33:09.785Z","repository":{"id":57503416,"uuid":"174542766","full_name":"kontena/akrobateo","owner":"kontena","description":"Akrobateo is a simple Kubernetes operator to expose in-cluster LoadBalancer services as node hostPorts using DaemonSets.","archived":false,"fork":false,"pushed_at":"2020-03-20T11:35:09.000Z","size":44,"stargazers_count":110,"open_issues_count":12,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-07T15:45:37.401Z","etag":null,"topics":["go","kontena","kubernetes","kubernetes-operator"],"latest_commit_sha":null,"homepage":"","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/kontena.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}},"created_at":"2019-03-08T13:30:12.000Z","updated_at":"2024-12-22T19:13:49.000Z","dependencies_parsed_at":"2022-09-13T08:22:00.824Z","dependency_job_id":null,"html_url":"https://github.com/kontena/akrobateo","commit_stats":null,"previous_names":["kontena/service-lb-operator"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontena%2Fakrobateo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontena%2Fakrobateo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontena%2Fakrobateo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kontena%2Fakrobateo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kontena","download_url":"https://codeload.github.com/kontena/akrobateo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252185445,"owners_count":21708152,"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":["go","kontena","kubernetes","kubernetes-operator"],"created_at":"2024-08-04T08:01:08.892Z","updated_at":"2025-05-03T11:33:09.500Z","avatar_url":"https://github.com/kontena.png","language":"Go","funding_links":[],"categories":["kubernetes"],"sub_categories":[],"readme":"# Akrobateo\n\nAkrobateo is a universal load balancer service implementation for [Kubernetes](https://kubernetes.io/). Akrobateo can work in any environment which makes it suitable for many use cases. And it's super light-weight too. It is implemented as an [operator](https://github.com/operator-framework/operator-sdk) that reacts when it sees `type: LoadBalancer` services in the cluster.\n\nAkrobateo exposes in-cluster `LoadBalancer` services as node `hostPort`s using `DaemonSet`s. The operator naturally also syncs the addresses for the services. This essentially makes the `LoadBalancer` type services behave pretty much like `NodePort` services. The drawback with `NodePort` services is that we're not able to use additional components such as [ExternalDNS](https://github.com/kubernetes-incubator/external-dns) and others.\n\nThe node-port proxy Pods utilize iptables to do the actual traffic forwarding.\n\n## Inspiration\n\nThis operator draws heavy inspiration from [K3S](https://github.com/rancher/k3s) `servicelb` controller: https://github.com/rancher/k3s/blob/master/pkg/servicelb/controller.go\n\nAs K3S controller is fully and tightly integrated into K3S, with good reasons, we thought we'd separate the concept into generic operator usable in any Kubernetes cluster.\n\n## Why `DaemonSet`s?\n\nRunning the \"proxies\" as `DaemonSet`s makes the proxy not to be a single-point-of-failure. So once you've exposed the service you can safely e.g. push the services external addresses into your DNS. This does have the drawback that a given port can be exposed only in one service throughout the cluster.\n\n## Building\n\nUse the included `build.sh` script. There's naturally also a `Dockerfile` for putting everything into an image.\n\nBuild automation takes care of building all the release artifacts. So just create a tag for the release and everything will be build. The current build also produces multiarch images for both the operator and the LB image itself.\n\n## Running locally\n\nEither use operator-sdk to run it like so:\n```sh\noperator-sdk up local\n```\n\nOr use the locally built binary:\n```sh\nWATCH_NAMESPACE=\"default\" ./output/akrobateo_darwin_amd64\n```\n\n`LB_IMAGE` env variable can be set to define a custom LB image to be used.\n\n## Deploying\n\nTo deploy to live cluster, use manifests in `deploy` directory. It sets up the operator in `kube-system` namespace with proper service-account and RBAC to allow access to only needed resources.\n\n## Future\n\nSome ideas how to make things more configurable and/or future-proof\n\n### DaemonSet vs. Deployment\n\nThe original Klippy controller creates Deployments. Maybe user could put some annotation on the service whether he/she wants a deployment or a daemonset created. Operator SDK _SHOULD_ be able to handle the different kinds of objects as long as there's proper owner references set.\n\n### Node selection\n\nThere should be some way for the user to select which nodes should act as LBs. So something like a node selector is needed on the services as annotation. That probably also means we'd need to support also tolerations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkontena%2Fakrobateo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkontena%2Fakrobateo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkontena%2Fakrobateo/lists"}