{"id":13521700,"url":"https://github.com/makocchi-git/kubectl-dfi","last_synced_at":"2025-04-11T14:08:54.119Z","repository":{"id":57517135,"uuid":"191521685","full_name":"makocchi-git/kubectl-dfi","owner":"makocchi-git","description":"List and show disk resources of images on Kubernetes nodes.","archived":false,"fork":false,"pushed_at":"2019-06-17T06:14:17.000Z","size":99,"stargazers_count":14,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T10:12:34.989Z","etag":null,"topics":["k8s","kubectl","kubectl-plugin","kubectl-plugins","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makocchi-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-12T07:36:04.000Z","updated_at":"2024-11-14T11:12:58.000Z","dependencies_parsed_at":"2022-09-15T21:52:10.251Z","dependency_job_id":null,"html_url":"https://github.com/makocchi-git/kubectl-dfi","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makocchi-git%2Fkubectl-dfi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makocchi-git%2Fkubectl-dfi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makocchi-git%2Fkubectl-dfi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makocchi-git%2Fkubectl-dfi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makocchi-git","download_url":"https://codeload.github.com/makocchi-git/kubectl-dfi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248413449,"owners_count":21099310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["k8s","kubectl","kubectl-plugin","kubectl-plugins","kubernetes"],"created_at":"2024-08-01T06:00:37.278Z","updated_at":"2025-04-11T14:08:54.100Z","avatar_url":"https://github.com/makocchi-git.png","language":"Go","funding_links":[],"categories":["kubectl Plugins"],"sub_categories":["Installing plugins via awesome-kubectl-plugins"],"readme":"# kubectl dfi\n\n[![Build Status](https://travis-ci.org/makocchi-git/kubectl-dfi.svg?branch=master)](https://travis-ci.org/makocchi-git/kubectl-dfi)\n[![Maintainability](https://api.codeclimate.com/v1/badges/b92591d00becc95b11ca/maintainability)](https://codeclimate.com/github/makocchi-git/kubectl-dfi/maintainability)\n[![Go Report Card](https://goreportcard.com/badge/github.com/makocchi-git/kubectl-dfi)](https://goreportcard.com/report/github.com/makocchi-git/kubectl-dfi)\n[![codecov](https://codecov.io/gh/makocchi-git/kubectl-dfi/branch/master/graph/badge.svg)](https://codecov.io/gh/makocchi-git/kubectl-dfi)\n[![kubectl plugin](https://img.shields.io/badge/kubectl-plugin-blue.svg)](https://github.com/topics/kubectl-plugin)\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n\nPrint disk usage of container image on Kubernetes node(s) like a linux \"df\" command.  \n\n```shell\n$ kubectl dfi\nNAME                               IMAGE USED   ALLOCATABLE   CAPACITY     %USED\nnode1-default-pool-500decb4-5q58   1982531K     47093746K     101241290K   1%\nnode2-default-pool-500decb4-7wpk   1891326K     47093746K     101241290K   1%\nnode3-default-pool-500decb4-9dd4   1982531K     47093746K     101241290K   1%\n```\n\nAnd list images on Kubernetes node(s).\n\n```shell\n$ kubectl dfi --list node1-default-pool-500decb4-5q58\nnode1-default-pool-500decb4-5q58   286572K      k8s.gcr.io/node-problem-detector:v0.4.1\nnode1-default-pool-500decb4-5q58   223242K      gcr.io/stackdriver-agents/stackdriver-logging-agent:0.6-1.6.0-1\nnode1-default-pool-500decb4-5q58   135716K      k8s.gcr.io/fluentd-elasticsearch:v2.0.4\nnode1-default-pool-500decb4-5q58   103488K      k8s.gcr.io/fluentd-gcp-scaler:0.5\nnode1-default-pool-500decb4-5q58   102992K      k8s.gcr.io/kube-proxy:v1.11.8-gke.6\nnode1-default-pool-500decb4-5q58   102319K      k8s.gcr.io/kubernetes-dashboard-amd64:v1.8.3\n...\n```\n\n## Install\n\n```shell\n$ make\n$ mv _output/kubectl-dfi /usr/local/bin/.\n\n# Happy dfi time!\n$ kubectl dfi\n```\n\n## Usage\n\n```shell\n# Show image usage of Kubernetes nodes.\nkubectl dfi\n\n# Using label selector.\nkubectl dfi -l key=value\n\n# Use image count with image disk usage.\nkubectl dfi --count\n\n# Print raw(bytes) usage.\nkubectl dfi --bytes --without-unit\n\n# Using binary prefix unit (GiB, MiB, etc)\nkubectl dfi -g -B\n\n# List images on nodes.\nkubectl dfi --list\n```\n\n## Notice\n\n`IMAGE USED` is simply sum up of container image size reported by kubelet.  \nIn fact, node disk might be not used so much by container images because of cache by layered filesystem.\n\n## License\n\nThis software is released under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakocchi-git%2Fkubectl-dfi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakocchi-git%2Fkubectl-dfi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakocchi-git%2Fkubectl-dfi/lists"}