{"id":34227109,"url":"https://github.com/h0tbird/k-swarm","last_synced_at":"2026-03-11T19:15:08.926Z","repository":{"id":205805330,"uuid":"715125311","full_name":"h0tbird/k-swarm","owner":"h0tbird","description":"A k8s service swarm","archived":false,"fork":false,"pushed_at":"2026-03-11T17:29:01.000Z","size":506,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-11T18:03:24.288Z","etag":null,"topics":["cli","kubebuilder","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h0tbird.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-06T14:26:53.000Z","updated_at":"2026-03-11T17:28:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"50f1f9e6-a593-4171-bd38-25fa2e9d46db","html_url":"https://github.com/h0tbird/k-swarm","commit_stats":null,"previous_names":["octoroot/swarm","h0tbird/k-swarm"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/h0tbird/k-swarm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h0tbird%2Fk-swarm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h0tbird%2Fk-swarm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h0tbird%2Fk-swarm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h0tbird%2Fk-swarm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h0tbird","download_url":"https://codeload.github.com/h0tbird/k-swarm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h0tbird%2Fk-swarm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30395159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T18:46:22.935Z","status":"ssl_error","status_checked_at":"2026-03-11T18:46:17.045Z","response_time":84,"last_error":"SSL_read: 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":["cli","kubebuilder","kubernetes"],"created_at":"2025-12-16T00:42:23.737Z","updated_at":"2026-03-11T19:15:08.921Z","avatar_url":"https://github.com/h0tbird.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build and publish to ghcr.io](https://github.com/h0tbird/k-swarm/actions/workflows/docker-build-and-publish.yml/badge.svg)](https://github.com/h0tbird/k-swarm/actions/workflows/docker-build-and-publish.yml)\n[![Cleanup old ghcr.io images](https://github.com/h0tbird/k-swarm/actions/workflows/cleanup-ghcr-images.yml/badge.svg)](https://github.com/h0tbird/k-swarm/actions/workflows/cleanup-ghcr-images.yml)\n[![Dependabot Updates](https://github.com/h0tbird/k-swarm/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/h0tbird/k-swarm/actions/workflows/dependabot/dependabot-updates)\n\n# k-swarm\n`k-swarm` is used for deploying a series of k8s services that are capable of identifying and communicating with one another, thus establishing a network of synthetic traffic. This interconnected traffic among various workloads provides a foundational platform for a range of laboratory experiments, including the testing and validation of diverse service mesh configurations at scale.\n\n### Install\n\n```\nbrew install h0tbird/tap/swarmctl\n```\n\n### Usage\n\nInstall the `informer` with two replicas to all `kind` clusters:\n```\nswarmctl i --context 'kind-*' --replicas 2\n```\n\nInstall services 1 to 5 with 2 `workers` each to all `kind` clusters:\n```\nswarmctl w --context 'kind-*' 1:5 --replicas 2\n```\n\nEnable telemetry for `service-1` on all `kind` clusters:\n```\nswarmctl w t --context 'kind-*' 1:1 on\n```\n\n## Developing\n\nDownload all the `Makefile` tooling to `./bin/`:\n```\nmake tooling\n```\n\nUpgrade the telemetry CRD:\n```\nmake kind-create\nistioctl --context kind-dev install --set profile=demo -y\nk --context kind-dev get crd telemetries.telemetry.istio.io -o yaml \u003e cmd/swarmctl/assets/crds.yaml\nmake kind-delete\n```\n\nBring up a local dev environment:\n```\nmake tilt-up\n```\n\nCreate a new release:\n```\nmake release BRANCH='release-0.1' TAG='v0.1.0'\n```\n\n## Upgrade kubebuilder\n```\nmake clean\nkubebuilder alpha update --from-branch main\n# Fix merge conflicts now\ngit commit\nmake manifests generate fmt vet lint-fix\ngit branch -m kubebuilder-update-from-v4.7.1-to-v4.8.0\ngit push --set-upstream origin kubebuilder-update-from-v4.7.1-to-v4.8.0\n```\n\n### Performance Profiling and Benchmarking\nCPU Profiling\n```\nswarmctl w --context 'kind-foo-*' 1:10 --cpu-profile\ngo tool pprof --http localhost:3000 cpu.prof\n```\n\nMemory Profiling\n```\nswarmctl w --context 'kind-foo-*' 1:10 --mem-profile\ngo tool pprof --http localhost:3000 mem.prof\n```\n\nTracing\n```\nswarmctl i --contextkind-foo-1 --tracing\ngo tool trace trace.out\n```\n\nBenchmarking\n```\ngo test -bench=. -benchmem -memprofile 0-mem.prof -cpuprofile 0-cpu.prof -benchtime=100x -count=10 ./cmd/swarmctl/pkg/k8sctx | tee 0-bench.txt\ngo test -bench=. -benchmem -memprofile 1-mem.prof -cpuprofile 1-cpu.prof -benchtime=100x -count=10 ./cmd/swarmctl/pkg/k8sctx | tee 1-bench.txt\ngo test -bench=. -benchmem -memprofile 2-mem.prof -cpuprofile 2-cpu.prof -benchtime=100x -count=10 ./cmd/swarmctl/pkg/k8sctx | tee 2-bench.txt\nbenchstat 0-bench.txt 1-bench.txt 2-bench.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh0tbird%2Fk-swarm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh0tbird%2Fk-swarm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh0tbird%2Fk-swarm/lists"}