As of 2026-08-31 (commit 0040a112457d), kubernetes/kubernetes contains 4,783,538 total lines: 3,852,226 code, 630,399 comments, 300,913 blank, across 14,805 files in 17 languages (top: Go 65.4%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving kubernetes/kubernetes to commit 0040a112457d, 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.
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 | 11593 | 3261287 | 2517521 | 479284 | 264482 |
| JSON | 1206 | 1030009 | 1030009 | 0 | 0 |
| YAML | 1392 | 252257 | 250883 | 1062 | 312 |
| Shell | 214 | 35138 | 22776 | 8141 | 4221 |
| PO File | 11 | 29704 | 13754 | 13743 | 2207 |
| Protocol Buffers | 102 | 47953 | 10893 | 30933 | 6127 |
| PowerShell | 5 | 3718 | 2728 | 732 | 258 |
| Modelica | 10 | 5598 | 1136 | 4374 | 88 |
| Autoconf | 3 | 918 | 719 | 161 | 38 |
| 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-08-31T09:51:09.207843537+00:00.
kubernetes/kubernetes has 4,783,538 total lines, including 3,852,226 code lines, 630,399 comment lines, and 300,913 blank lines.
OctoCounts resolved the public GitHub repository to commit 0040a112457d, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit 0040a112457d on 2026-08-31T09:51:09.207843537+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: