# kubernetes/kubernetes SLOC report

> As of 2026-09-21 (commit a34ca95edfae), kubernetes/kubernetes contains 4,810,281 total lines: 3,874,202 code, 633,521 comments, 302,558 blank, across 14,882 files in 17 languages (top: Go 65.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

kubernetes/kubernetes has 3,874,202 source lines of code out of 4,810,281 total lines across 14,882 files, counted from the master ref at commit a34ca95edfae by the OctoCounts tokei engine on 2026-09-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving kubernetes/kubernetes to commit a34ca95edfae, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 80.5% of all lines, comments represent 13.2%, and the repository averages 260 code lines per file. Go accounts for 65.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 11,650 | 3,281,676 | 2,533,414 | 482,152 | 266,110 |
| JSON | 1,213 | 1,033,477 | 1,033,477 | 0 | 0 |
| YAML | 1,404 | 254,948 | 253,542 | 1,093 | 313 |
| Shell | 214 | 35,147 | 22,774 | 8,149 | 4,224 |
| PO File | 11 | 29,704 | 13,754 | 13,743 | 2,207 |
| Protocol Buffers | 101 | 47,973 | 10,846 | 31,029 | 6,098 |
| PowerShell | 5 | 3,718 | 2,728 | 732 | 258 |
| Modelica | 10 | 5,598 | 1,136 | 4,374 | 88 |
| Autoconf | 3 | 923 | 724 | 162 | 37 |
| BASH | 5 | 983 | 684 | 187 | 112 |
| SVG | 4 | 406 | 398 | 4 | 4 |
| Python | 4 | 508 | 329 | 89 | 90 |

Top language (Go 65.4%). Generated at 2026-09-21T09:03:27.405843042+00:00. Canonical report: https://octocounts.com/github/kubernetes/kubernetes

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/kubernetes/kubernetes/commit/a34ca95edfaed8b9ea793530c60b62ef2e8f9796?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does kubernetes/kubernetes have?

kubernetes/kubernetes has 4,810,281 total lines, including 3,874,202 code lines, 633,521 comment lines, and 302,558 blank lines.

### How was the kubernetes/kubernetes line count measured?

OctoCounts resolved the public GitHub repository to commit a34ca95edfae, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for kubernetes/kubernetes?

This OctoCounts report was generated from master at commit a34ca95edfae on 2026-09-21T09:03:27.405843042+00:00.

## Similar repository reports

- [cockroachdb/cockroach](https://octocounts.com/github/cockroachdb/cockroach) — Go, 3,085,053 code lines
- [mattermost/mattermost](https://octocounts.com/github/mattermost/mattermost) — Go, 2,155,385 code lines
- [golang/go](https://octocounts.com/github/golang/go) — Go, 2,074,528 code lines
- [milvus-io/milvus](https://octocounts.com/github/milvus-io/milvus) — Go, 1,660,235 code lines
- [coze-dev/coze-studio](https://octocounts.com/github/coze-dev/coze-studio) — Go, 1,533,916 code lines
- [apache/plc4x](https://octocounts.com/github/apache/plc4x) — Go, 1,455,182 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
