{"id":17211587,"url":"https://github.com/rishabh96b/diagnostics","last_synced_at":"2025-03-25T12:23:39.701Z","repository":{"id":65150590,"uuid":"406951374","full_name":"rishabh96b/diagnostics","owner":"rishabh96b","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-16T14:57:58.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T11:23:22.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rishabh96b.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}},"created_at":"2021-09-15T23:23:01.000Z","updated_at":"2021-09-16T14:58:01.000Z","dependencies_parsed_at":"2023-01-02T15:29:25.881Z","dependency_job_id":null,"html_url":"https://github.com/rishabh96b/diagnostics","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/rishabh96b%2Fdiagnostics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabh96b%2Fdiagnostics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabh96b%2Fdiagnostics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabh96b%2Fdiagnostics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishabh96b","download_url":"https://codeload.github.com/rishabh96b/diagnostics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245459522,"owners_count":20618870,"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":[],"created_at":"2024-10-15T02:57:46.670Z","updated_at":"2025-03-25T12:23:39.656Z","avatar_url":"https://github.com/rishabh96b.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# diagnostics\n\n\n## Getting Started\n\nBuild the CLI using `go build -o diagnostics .` and put it in `$PATH`. This binary acts as a plugin for the [dkp-cli](https://github.com/mesosphere/dkp-cli). Hence, this binary can be run either as a plugin to dkp cli or as standalone.\n\n\u003e**Note**: The `troubleshoot` package uses `github.com/containers/storage` package which needs `btrfs` headers to be present in the system. Devs using Ubuntu most likely will encounter errors while building the cli. In that case, run the below command.\n\n```bash\nsudo apt-get install libbtrfs-dev libdevmapper-dev\n```\n\n### Usage\n```bash\n./diagnostics /path/to/support-bundle-manifest.yaml\n```\nThe above command will generate the support bundle named similar to `support-bundle-2021-09-16T04_58_32.tar.gz`.\n\n### Cli Usage\n```bash\nA support bundle is an archive of files, output, metrics and state\nfrom a server that can be used to assist when troubleshooting a Kubernetes cluster.\n\nUsage:\n  diagnostics [url] [flags]\n\nFlags:\n      --as string                      Username to impersonate for the operation\n      --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.\n      --cache-dir string               Default cache directory (default \"/home/rishabh/.kube/cache\")\n      --certificate-authority string   Path to a cert file for the certificate authority\n      --client-certificate string      Path to a client certificate file for TLS\n      --client-key string              Path to a client key file for TLS\n      --cluster string                 The name of the kubeconfig cluster to use\n      --collect-without-permissions    always generate a support bundle, even if it some require additional permissions (default true)\n      --context string                 The name of the kubeconfig context to use\n  -h, --help                           help for diagnostics\n      --insecure-skip-tls-verify       If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure\n      --kubeconfig string              Path to the kubeconfig file to use for CLI requests.\n  -n, --namespace string               If present, the namespace scope for this CLI request\n      --redact                         enable/disable default redactions (default true)\n      --redactors strings              names of the additional redactors to use\n      --request-timeout string         The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default \"0\")\n  -s, --server string                  The address and port of the Kubernetes API server\n      --since string                   force pod logs collectors to return logs newer than a relative duration like 5s, 2m, or 3h.\n      --since-time string              force pod logs collectors to return logs after a specific date (RFC3339)\n      --tls-server-name string         Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used\n      --token string                   Bearer token for authentication to the API server\n      --user string                    The name of the kubeconfig user to use\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabh96b%2Fdiagnostics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishabh96b%2Fdiagnostics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabh96b%2Fdiagnostics/lists"}