{"id":23923951,"url":"https://github.com/gotoren/k6-operator-playground","last_synced_at":"2025-02-23T23:15:44.607Z","repository":{"id":198343098,"uuid":"639822256","full_name":"GotoRen/k6-operator-playground","owner":"GotoRen","description":"Load test simulation using k6-operator.","archived":false,"fork":false,"pushed_at":"2024-11-02T16:20:34.000Z","size":23846,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T18:52:23.583Z","etag":null,"topics":["go","javascript","k6","kubernetes"],"latest_commit_sha":null,"homepage":"https://www.ren510.dev/blog/k6-load-testing","language":"Makefile","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/GotoRen.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}},"created_at":"2023-05-12T09:56:51.000Z","updated_at":"2024-11-02T16:20:38.000Z","dependencies_parsed_at":"2025-01-05T18:52:03.386Z","dependency_job_id":"07f4208e-d9af-43a5-ae6a-ddf15cf9177a","html_url":"https://github.com/GotoRen/k6-operator-playground","commit_stats":null,"previous_names":["gotoren/k6-operator-playground"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GotoRen%2Fk6-operator-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GotoRen%2Fk6-operator-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GotoRen%2Fk6-operator-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GotoRen%2Fk6-operator-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GotoRen","download_url":"https://codeload.github.com/GotoRen/k6-operator-playground/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240390713,"owners_count":19793782,"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","javascript","k6","kubernetes"],"created_at":"2025-01-05T18:51:53.230Z","updated_at":"2025-02-23T23:15:44.572Z","avatar_url":"https://github.com/GotoRen.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# k6-operator-playground\n\nLoad test simulation using k6 / k6-operator.\n\n## 使用ツール\n\n- マニフェスト管理\n\n  - Kustomize\u003cbr /\u003e\n    \u003cimg src=\"https://github.com/GotoRen/k6-operator-playground/assets/63791288/fbd77eb1-da77-40ce-bf4d-ba8c5fdb1f38\" alt=\"Kustomize\" width=\"80\"\u003e\n\n- モニタリング\n\n  - kube-prometheus-stack\u003cbr /\u003e\n    \u003cimg src=\"https://github.com/GotoRen/k6-operator-playground/assets/63791288/5b7a359f-f450-48bc-9024-6c5e1f33da17\" alt=\"kube-prometheus-stack\" width=\"80\"\u003e\n\n- 負荷試験\n  - k6-operator\u003cbr /\u003e\n    \u003cimg src=\"https://github.com/GotoRen/k6-operator-playground/assets/63791288/2d1f5906-ae71-4310-ad68-482e7d991783\" alt=\"k6-operator\" width=\"80\"\u003e\n\n## ディレクトリ構成\n\n```\n.\n├── docs   ・・・ ドキュメント\n├── load   ・・・ Kubernetes 上で負荷試験を実行する際に必要となるシナリオとマニフェストを配置\n├── locals ・・・ Docker Compose を使用して k6 を検証する場合に必要となるリソースを配置（Kubernetes を使用しない場合）\n└── manifests\n    ├── platform ・・・ 負荷試験に必要となるプラットフォーム用のマニフェスト（Helm on Kustomize）を配置\n    └── services ・・・ 負荷試験の対象となるサービスを配置\n```\n\n## 負荷試験アーキテクチャ\n\n![k6-operator-architecture](https://github.com/GotoRen/k6-operator-playground/assets/63791288/8c65d565-b920-4b0b-8a95-797267e82a41)\n\n- **負荷試験クラスタ（このリポジトリ）**\n  - 負荷試験を実行する側のクラスタ\n  - 負荷試験レポートは Prometheus または InfluxDB に流す（二経路準備しておく）\n    - Prometheus：大規模負荷試験においてより高度な耐久性を得られる\n    - InfluxDB：シンプルな構成で軽い負荷試験が容易\n- **ターゲットクラスタ（別途準備）**\n  - 負荷試験を受ける側のクラスタ\n  - LB（基本的には L7SLB）に向けて実行する\n    - パブリッククラウド：事前に暖気申請等を行なっておく\n    - プライベートクラウド（MetalLB 等のベアメタル）：パケット分散率及びおよび負荷状況に合わせて LB 専用のインスタンスを準備する\n\n## 使い方\n\n1. [manifests ディレクトリ](./manifests/README.md) を参考に Kubernetes に負荷試験に必要なリソースを構築する\n2. [k6-operator による負荷試験の実施](./docs/03_k6-operator.md) を参考に負荷試験を実施する\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotoren%2Fk6-operator-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgotoren%2Fk6-operator-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotoren%2Fk6-operator-playground/lists"}