{"id":13509201,"url":"https://github.com/sysdiglabs/kubectl-dig","last_synced_at":"2025-04-05T19:13:57.399Z","repository":{"id":40691915,"uuid":"187535556","full_name":"sysdiglabs/kubectl-dig","owner":"sysdiglabs","description":"Deep kubernetes visibility from the kubectl","archived":false,"fork":false,"pushed_at":"2023-12-18T21:53:45.000Z","size":14266,"stargazers_count":384,"open_issues_count":16,"forks_count":15,"subscribers_count":10,"default_branch":"develop","last_synced_at":"2025-03-29T18:07:19.244Z","etag":null,"topics":["containers","kubectl-plugins","kubernetes","monitoring","o11y","observability","syscalls"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sysdiglabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-19T22:43:35.000Z","updated_at":"2025-03-01T11:34:39.000Z","dependencies_parsed_at":"2024-06-18T17:10:38.818Z","dependency_job_id":"66cc033e-bb98-4340-b621-a6df7668b621","html_url":"https://github.com/sysdiglabs/kubectl-dig","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fkubectl-dig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fkubectl-dig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fkubectl-dig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fkubectl-dig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysdiglabs","download_url":"https://codeload.github.com/sysdiglabs/kubectl-dig/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247386265,"owners_count":20930619,"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":["containers","kubectl-plugins","kubernetes","monitoring","o11y","observability","syscalls"],"created_at":"2024-08-01T02:01:04.469Z","updated_at":"2025-04-05T19:13:57.372Z","avatar_url":"https://github.com/sysdiglabs.png","language":"Go","readme":"# kubectl dig\n\n\u003e Deep kubernetes visibility from the kubectl.\n\n\u003ctable style=\"width: 100%; border-style: none;\"\u003e\u003ctr\u003e\n\u003ctd style=\"width: 140px; text-align: center;\"\u003e\u003cimg width=\"128px\" src=\"docs/img/logo.png\" alt=\"kubectl dig logo\"/\u003e\u003c/td\u003e\n\u003ctd\u003e\n\u003cstrong\u003ekubectl dig\u003c/strong\u003e\u003cbr /\u003e\n\u003ci\u003eA simple, intuitive, and fully customizable UI to dig into your kubernetes clusters\u003c/i\u003e\u003cbr\u003e\n\n```\nkubectl dig \u003cnode\u003e\n```\n\u003c/td\u003e\n\u003c/tr\u003e\u003c/table\u003e\n\n[![asciicast](https://asciinema.org/a/czA06tSyEjKpusDooKZe3KQry.svg)](https://asciinema.org/a/czA06tSyEjKpusDooKZe3KQry)\n\n## Install\n\n\n```bash\ngo get -u github.com/sysdiglabs/kubectl-dig/cmd/kubectl-dig\n```\n\n## Usage\n\n### Just dig\nThere's only one thing to do, provide the node name!\n\n```\nkubectl dig \u003cnode\u003e\n```\n\nYou just identify the node you want to dig in with `kubectl get nodes` and then\nprovide it to the dig command!\n\n```\nkubectl dig ip-180-12-0-152.ec2.internal\n```\n\n### dig + cluster metadata\n\nBy default, `kubectl dig` shows only information about the local node, if you want to dig from that node to the whole cluster you have to provide a **service account** that can read resources.\n\nYou can create a `dig-viewer` service account with:\n\n```bash\nkubectl apply -f https://github.com/sysdiglabs/kubectl-dig/raw/develop/docs/setup/read-serviceaccount.yml\n```\n\nThen you just use it with `kubectl dig`.\n\n```bash\nkubectl dig --serviceaccount dig-viewer 127.0.0.1\n```\n\nAt this point you have access to the fancy cluster metadata, press `F2` and look for the `K8s` views!\n\n\n# Project status\n\n## High-level todo\n\n- [x] Basic functionalities;\n- [ ] Finish all the planned commands;\n- [ ] Merge here the functionalities of [kubectl-capture](https://github.com/sysdiglabs/kubectl-capture);\n- [ ] Integration tests;\n- [ ] Errors detection on the kernel module;\n\n## Planned commands\n\n- [x] `run` command, to execute digs;\n- [ ] `list` command, to list all the executed digs;\n- [ ] `attach` command, to attach to an existing dig that was previously detached;\n- [ ] `delete` command, to delete an existing dig;\n- [ ] `where` command, to execute digs where the chosen workloads are, instead of having to specify the node directly;\n\n\n---\n\n[![Analytics](https://ga-beacon.appspot.com/UA-49657176-1/kubectl-dig?flat)](https://github.com/igrigorik/ga-beacon)\n\n","funding_links":[],"categories":["Go","kubectl Plugins","observability","Open Source Projects","Tools"],"sub_categories":["Installing plugins via awesome-kubectl-plugins","Kubernetes"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysdiglabs%2Fkubectl-dig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysdiglabs%2Fkubectl-dig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysdiglabs%2Fkubectl-dig/lists"}