{"id":31646053,"url":"https://github.com/codefresh-io/cf-k8s-agent","last_synced_at":"2025-10-07T05:19:38.455Z","repository":{"id":37622916,"uuid":"163167104","full_name":"codefresh-io/cf-k8s-agent","owner":"codefresh-io","description":"Agent for kubernetes for handling cluster events","archived":false,"fork":false,"pushed_at":"2025-09-29T07:27:39.000Z","size":1955,"stargazers_count":4,"open_issues_count":24,"forks_count":4,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-09-29T09:14:56.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codefresh-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-12-26T10:22:33.000Z","updated_at":"2025-09-29T07:27:44.000Z","dependencies_parsed_at":"2024-09-07T08:35:53.122Z","dependency_job_id":"29b63208-fadd-42c3-a087-cf8ad37c385b","html_url":"https://github.com/codefresh-io/cf-k8s-agent","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/codefresh-io/cf-k8s-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-io%2Fcf-k8s-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-io%2Fcf-k8s-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-io%2Fcf-k8s-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-io%2Fcf-k8s-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codefresh-io","download_url":"https://codeload.github.com/codefresh-io/cf-k8s-agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-io%2Fcf-k8s-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278722757,"owners_count":26034463,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-07T05:19:32.935Z","updated_at":"2025-10-07T05:19:38.449Z","avatar_url":"https://github.com/codefresh-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# K8S Agent\n\n#### About\nService for monitoring cluster resources. Agent can be set as inside cluster as outside of it.\n\nAgent starts streams for watching updates cluster resources and sends information about updated resources to [k8s-monitor](https://github.com/codefresh-io/cf-k8s-monitor) service.\n\nThe aim is to have actual state of cluster resources.\n\n#### Content\n\n* [Installing for using k8s-monitor on Codefresh side](#installing-for-using-k8s-monitor-on-codefresh-side)\n  * [Install via helm for using with codefresh](#install-via-helm-for-using-with-codefresh)\n* [Installing for standalone using](#installing-for-standalone-using)\n  * [Install via helm](#install-via-helm)\n* [Uninstalling agent via helm](#uninstalling-agent-via-helm)\n* [Helm environment variables](#helm-environment-variables)\n\n## Installing for using k8s-monitor on Codefresh side\n\nFor using when you want to use integration your k8s-monitor with Codefresh \n\n### Install via helm for using with Codefresh\n\n1) Clone repo  \n`git clone https://github.com/codefresh-io/cf-k8s-agent.git`\n\n2) Go to dir with project  \n`cd ./cf-k8s-agent` \n\n3) If you have one more cluster context, switch to needed with  \n`kubectl config use-context \u003ccluster_context\u003e`  \n\n   1) For **helm2**\n   - Install **k8s-agent** chart on your cluster from this repo  \n`helm upgrade k8s-agent ./k8s-agent --install --force --reset-values --set apiToken={token} --set clusterId={clusterId}`\n   2) For **helm3**\n   - Install **k8s-agent** chart on your cluster from this repo with helm3 support\n`helm upgrade k8s-agent ./k8s-agent --install --force --reset-values --set apiToken={token} --set clusterId={clusterId} --set helm3=true`\n\nIn case if you want use configuration from UI , please use --set useConfig=true flag\n\nWhere: \n- `{token}` - API token from Codefresh (you can retrieve this from [Codefresh user settings](https://g.codefresh.io/user/settings))\n- `{clusterId}` - cluster name from k8s integrations\n\n[More helm environment variables](#helm-environment-variables)   \n\n## Uninstalling agent via helm \nFor uninstalling agent run command  \n`helm del k8s-agent --purge`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefresh-io%2Fcf-k8s-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodefresh-io%2Fcf-k8s-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefresh-io%2Fcf-k8s-agent/lists"}