kube2iam GEMINI.md

kube2iam GEMINI.md is an instructions file for Gemini CLI from jtblin/kube2iam. It costs 334 tokens per session, scanned A, original, BSD-3-Clause.

Development instructions for kube2iam, a Go tool that supplies AWS credentials to containers running in Kubernetes. They describe its dependencies, build commands, tests, and continuous integration and release process.

In plain words
What is it for?
Use them to set up the project, build it, run unit, integration, or end-to-end tests, and understand its Kubernetes and AWS code.
Why use it?
They give contributors the prerequisites and project conventions needed to build and verify changes correctly.

Instructions file for Gemini CLI

Written for Gemini CLI: the file is GEMINI.md. Also seen: mentions Gemini CLI.

About the project

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.

jtblin/kube2iam · 2,043 stars · on GitHub

Install

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.

agentmods
npx agentmods add instructions/jtblin/kube2iam/gemini-md
Clone the repo
git clone --depth 1 https://github.com/jtblin/kube2iam

Made for: Gemini CLI.

Wrote 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.

agentmods badge for kube2iam GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jtblin/kube2iam/gemini-md.svg)](https://agentmods.dev/instructions/jtblin/kube2iam/gemini-md)
Your own site
<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>
Per session 334 This file is loaded in full into every session.
When invoked 334 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2d ago against content hash 636f8fbc4ac2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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.

GEMINI.md · 38 lines

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-go and e2e-framework for testing.
  • Iptables: Uses go-iptables for metadata redirection.
  • Logging: Uses logrus for structured logging.

Testing Standards

  • Unit tests: Use go test ./....
  • Integration tests: Use go test -tags=integration ./....
  • Coverage: Minimum threshold is 50%. Run make test-all to verify.
Changes

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.

  1. 2d ago First seen · 38 lines · 334 tokens per session scan A 636f8fbc4ac2

Subscribe to this mod's changes

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.

Related

Other instructions, from other repositories