kelseyhightower/kubernetes-the-hard-way
Bootstrap Kubernetes the hard way. No scripts.
★ 50,152+119 that day#6 on trending
B81.8/100
Duplication82
0% in bash, perlDead coden/a
no JavaScript, TypeScript, Python or compiler-checked Rust filesComplexity82
0% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
0.58%duplicated over all files · 18 of 3,109 lines
3clones
44files scanned
Most complex files
- .git/hooks/fsmonitor-watchman.sample19 cx
- .git/hooks/pre-rebase.sample14 cx
- .git/hooks/sendemail-validate.sample14 cx
- .git/hooks/update.sample13 cx
- .git/hooks/push-to-checkout.sample6 cx
- .git/hooks/pre-commit.sample5 cx
- .git/hooks/pre-push.sample5 cx
- .git/hooks/pre-receive.sample4 cx
- .git/hooks/commit-msg.sample3 cx
- .git/hooks/prepare-commit-msg.sample1 cx
Dead code
Not measured: no JavaScript, TypeScript, Python or compiler-checked Rust files.
Only 10 of the files count as code, too few for a code-only percentage; the numbers above cover every file.
Largest clones
- 21 lines in 2 placesbashdocs and examples57 tokens
72 --kubeconfig=kube-proxy.kubeconfig 73} 74``` 75 76Results: 77 78```text 79kube-proxy.kubeconfig 80``` 81106 --kubeconfig=kube-controller-manager.kubeconfig 107} 108``` 109 110Results: 111 112```text 113kube-controller-manager.kubeconfig 114``` 115First 10 of 21 lines, the second copy on the right.
- 11 lines in 2 placestextdocs and examples57 tokens
5210.200.0.0/24 via XXX.XXX.XXX.XXX dev ens160 5310.200.1.0/24 via XXX.XXX.XXX.XXX dev ens160 54XXX.XXX.XXX.0/24 dev ens160 proto kernel scope link src XXX.XXX.XXX.XXX 55``` 56 57```bash 58ssh root@node-0 ip route 59``` 60 61```text62default via XXX.XXX.XXX.XXX dev ens160 6310.200.1.0/24 via XXX.XXX.XXX.XXX dev ens160 64XXX.XXX.XXX.0/24 dev ens160 proto kernel scope link src XXX.XXX.XXX.XXX 65``` 66 67```bash 68ssh root@node-1 ip route 69``` 70 71```textFirst 10 of 11 lines, the second copy on the right.
- 6 lines in 2 placesbashdocs and examples54 tokens
53{ 54 kubectl config set-cluster kubernetes-the-hard-way \ 55 --certificate-authority=ca.crt \ 56 --embed-certs=true \ 57 --server=https://server.kubernetes.local:6443 \ 58 --kubeconfig=kube-proxy.kubeconfig87{ 88 kubectl config set-cluster kubernetes-the-hard-way \ 89 --certificate-authority=ca.crt \ 90 --embed-certs=true \ 91 --server=https://server.kubernetes.local:6443 \ 92 --kubeconfig=kube-controller-manager.kubeconfig
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| bash | 9 | 644 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| bash | 19 | 1,083 | 2 | 14 | 1.29% |
| text | 4 | 109 | 1 | 4 | 3.67% |
| markdown | 15 | 1,650 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| yaml | 2 | 58 | 0 | 0 | 0% |
| txt | 2 | 22 | 0 | 0 | 0% |
| toml | 1 | 13 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 26, 2026 | #6 | 50,152 (+119) | 44 | 3,109 | 3 | 0.58% | — | B 81.8 | 52eb26d |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.