{"id":20251589,"url":"https://github.com/planetscale/k8s-node-tagger","last_synced_at":"2026-05-05T01:35:39.334Z","repository":{"id":261688248,"uuid":"884994137","full_name":"planetscale/k8s-node-tagger","owner":"planetscale","description":"🏷️ A utility to tag/label cloud VMs based on Kubernetes Node labels","archived":false,"fork":false,"pushed_at":"2026-04-06T17:34:15.000Z","size":223,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-06T19:22:25.529Z","etag":null,"topics":["aws","gcp","kubernetes"],"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/planetscale.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":".github/CODEOWNERS","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":"2024-11-07T18:57:59.000Z","updated_at":"2026-04-06T17:30:08.000Z","dependencies_parsed_at":"2026-01-22T02:01:53.299Z","dependency_job_id":null,"html_url":"https://github.com/planetscale/k8s-node-tagger","commit_stats":null,"previous_names":["planetscale/k8s-node-tagger"],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/planetscale/k8s-node-tagger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetscale%2Fk8s-node-tagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetscale%2Fk8s-node-tagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetscale%2Fk8s-node-tagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetscale%2Fk8s-node-tagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/planetscale","download_url":"https://codeload.github.com/planetscale/k8s-node-tagger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetscale%2Fk8s-node-tagger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32632288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"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":["aws","gcp","kubernetes"],"created_at":"2024-11-14T10:11:03.671Z","updated_at":"2026-05-05T01:35:39.328Z","avatar_url":"https://github.com/planetscale.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# k8s-node-tagger\n\nA Kubernetes controller that watches Kubernetes Nodes and copies labels from the node to the cloud provider's VM as tags (AWS) or labels (GCP).\n\n## Deployment\n\nSee the [./examples](./examples) directory for example manifests. These are just examples, please read them carefully and adjust if needed.\n\n## Command-line Flags\n\n- `-cloud`: Cloud provider to use (`aws` or `gcp`). Required.\n- `-labels`: Comma-separated list of node label keys to sync to cloud provider tags.\n- `-annotations`: Comma-separated list of node annotation keys to sync to cloud provider tags.\n- `-json`: Output logs in JSON format.\n- `-enable-leader-election`: Enable leader election for controller manager.\n- `-metrics-addr`: The address the metric endpoint binds to (default \":8081\").\n- `-probes-addr`: The address the /readyz and /healthz probes endpoint binds to (default \":8080\").\n\nEither `-labels` or `-annotations` must be specified.\n\n## Testing\n\n- lint: `make lint`\n- test: `make test`\n\nRunning it locally is possible too. The standard mechanisms for finding the current kubeconfig and aws/gcp credentials are used.\n\nAssuming you use `~/.aws/config` and have profiles defined you could run:\n\n```console\nAWS_PROFILE=my-profile AWS_REGION=region go run -v .\n```\n\nFor GCP you want to ensure you have application default credentials setup by running either `gcloud auth login --update-adc` or `gcloud auth application-default login`.\n\n## Releasing\n\nReleases are generated automatically on all successful `main` branch builds. This project uses [autotag](https://github.com/pantheon-systems/autotag) to automate this process.\n\nSemver (`vMajor.Minor.Patch`) is used for versioning and releases. By default, `autotag` will bump the patch version on a successful main build, eg: `v1.0.0` -\u003e `v1.0.1`.\n\nTo bump the major or minor release instead, include `[major]` or `[minor]` in the commit message. Refer to the autotag [docs](https://github.com/pantheon-systems/autotag#incrementing-major-and-minor-versions) for more details.\n\n## Inspiration\n\nInspired by [mtougeron/k8s-pvc-tagger](https://github.com/mtougeron/k8s-pvc-tagger) which provides similar functionality for copying PVC labels to the underlying cloud provider's disk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplanetscale%2Fk8s-node-tagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplanetscale%2Fk8s-node-tagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplanetscale%2Fk8s-node-tagger/lists"}