kube2iam provides different AWS IAM roles to containers running in a Kubernetes cluster by using pod annotations and redirecting their metadata-service requests. It is for multi-tenant Kubernetes environments where containers on the same node need separate permissions for AWS resources. The catalogue add-ons support kube2iam operation and configuration.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/jtblin/kube2iam/gemini-mdgit clone --depth 1 https://github.com/jtblin/kube2iamWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/jtblin/kube2iam/gemini-md)<a href="https://agentmods.dev/instructions/jtblin/kube2iam/gemini-md"><img src="https://agentmods.dev/badge/instructions/jtblin/kube2iam/gemini-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00334 | $0.00334 |
| Opus 5 | $0.00167 | $0.00167 |
| Sonnet 5 | $0.00067 | $0.00067 |
| Haiku 4.5 | $0.00033 | $0.00033 |
Grade A, and why
kube2iam GEMINI.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
GEMINI.md - kube2iam
Project Overview
kube2iam provides IAM credentials to containers running inside a kubernetes cluster based on annotations.
Build and Development
Prerequisites
- Go 1.26.0+
- Docker (for multi-arch builds)
- Helm (for chart management)
Core Commands
- Install tools:
make setup - Build (local):
make build - Lint:
make check - Unit & Integration Tests:
make test-all - E2E Tests:
make test-e2e(requires Docker and Kind)
CI/CD Pipeline
The project uses GitHub Actions (.github/workflows/ci-cd.yaml) for:
- Linting and Unit/Integration tests on every PR and push.
- E2E tests on Kind.
- Docker image releases on tags.
- Helm chart releases (OCI) on tags.
- GitHub Draft Releases: Automated on tags, depends on all other release jobs.
Coding Patterns
- AWS SDK: Uses AWS SDK for Go v2.
- Kubernetes: Uses
client-goande2e-frameworkfor testing. - Iptables: Uses
go-iptablesfor metadata redirection. - Logging: Uses
logrusfor structured logging.
Testing Standards
- Unit tests: Use
go test ./.... - Integration tests: Use
go test -tags=integration ./.... - Coverage: Minimum threshold is 50%. Run
make test-allto verify.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 38 lines · 334 tokens per session scan A 636f8fbc4ac2
kube2iam GEMINI.md is an instructions file published in the GitHub repository jtblin/kube2iam (2,043 stars, last pushed 4mo ago), licensed BSD-3-Clause. It adds 334 tokens to every session, about $0.0017 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other instructions, from other repositories
devops-ai-guidelines copilot-instructions.md
Instructions for VersusControl/devops-ai-guidelines, covering copilot instructions: kubernetes mcp workspace, operating rules and code style for go contributions.
ksail go-code.instructions.md
Use when writing or editing Go source files in the KSail codebase. Covers error handling, path safety, dependency guard, and package organization conventions.
ksail go-testing.instructions.md
Use when writing or editing Go test files, creating unit tests, benchmarks, or test helpers. Covers KSail's testing conventions, table-driven patterns, and the exporttest.go seam.
mcp-k8s-go CLAUDE.md
Instructions for strowk/mcp-k8s-go, covering claude.md - mcp k8s go development guide, build & test commands and code style guidelines.
yayamlls CLAUDE.md
Claude Code instructions for home-operations/yayamlls, a project described as: YAML language server in Go. Schema-driven diagnostics, completion, hover; pluggable rendering for Flux HelmRelease and Kustomization via flate.
kubara CLAUDE.md
Claude Code instructions for kubara-io/kubara, a project described as: kubara is a single binary CLI tool written in Go providing a lightweight framework for bootstrapping Kubernetes platforms with production-proven best practices.