{"id":18113344,"url":"https://github.com/nuricanozturk01/k8-shell","last_synced_at":"2025-08-21T01:31:37.333Z","repository":{"id":260531575,"uuid":"876244437","full_name":"nuricanozturk01/k8-shell","owner":"nuricanozturk01","description":"Read-only shell for k8s","archived":false,"fork":false,"pushed_at":"2024-12-02T07:37:13.000Z","size":335,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T00:44:09.167Z","etag":null,"topics":["java","k8s","k8shell","kubernetes","spring-boot","spring-shell"],"latest_commit_sha":null,"homepage":"","language":"Java","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/nuricanozturk01.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":"2024-10-21T16:32:46.000Z","updated_at":"2024-12-02T07:37:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae708a27-29ed-4201-93c3-8500d511c409","html_url":"https://github.com/nuricanozturk01/k8-shell","commit_stats":null,"previous_names":["nuricanozturk01/k8-shell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nuricanozturk01/k8-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuricanozturk01%2Fk8-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuricanozturk01%2Fk8-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuricanozturk01%2Fk8-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuricanozturk01%2Fk8-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuricanozturk01","download_url":"https://codeload.github.com/nuricanozturk01/k8-shell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuricanozturk01%2Fk8-shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271414995,"owners_count":24755628,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["java","k8s","k8shell","kubernetes","spring-boot","spring-shell"],"created_at":"2024-11-01T02:07:44.604Z","updated_at":"2025-08-21T01:31:37.024Z","avatar_url":"https://github.com/nuricanozturk01.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# k8-shell\n\n\u003cimg width=\"600\" src=\"./images/banner.png\" alt=\"banner\"\u003e\n\nk8-shell is a simple **read-only** shell script that allows you to interact with your Kubernetes cluster using a\nshell-like interface.\n\n- **_It is written to easily access the Kubernetes information I need. Suitable for personal use._**\n- **I recommend using a Unix-based operating system to run this application**\n- **If you are using Windows, you can use the *`WSL2 with ubuntu`* and select configuration path using `sc -p \u003cpath\u003e`\n  like\n  `sc -p /mnt/c/nuri/.kube`**\n## PreRequisites\n- Java 21\n- GraalVM native image\n- kubectl\n## Installation\n\n- Clone the repository\n- Extract package application using `mvn package -Pnative -DskipTests`\n    - Also, you can create native image using GraalVM.\n- Run the java application in the target directory\n\n## Images\n\u003cimg width=\"500\" src=\"./images/config.png\" alt=\"config\"\u003e\n\u003cimg width=\"500\" src=\"./images/namespace.png\" alt=\"namespace\"\u003e\n\u003cimg width=\"500\" src=\"./images/secret.png\" alt=\"secret\"\u003e\n\n## Commands\n```bash\nk8s-shell\u003e help\n```\n```\nAVAILABLE COMMANDS\n\nBuilt-In Commands\n       help: Display help about available commands\n       stacktrace: Display the full stacktrace of the last error.\n       clear: Clear the shell screen.\n       quit, exit: Exit the shell.\n       completion zsh: Generate zsh completion script\n       completion bash: Generate bash completion script\n       history: Display or save the history of previously run commands\n       version: Show version info\n       script: Read and execute commands from a file.\n\nConfiguration File\n       scp, select config: Change the current configuration file in .kube directory\n       lcp, list config: Show available configuration files in .kube directory\n\nKubernetes Commands\n       lp, list pods: List all pods in the current namespace\n       sp, select pod: Select a specific pod to view details\n\nKubernetes Deployment Commands\n       sd, select deployment: Select a specific deployment\n       ld, list deployments: List all deployments in the current namespace\n\nKubernetes Secret Commands\n       ss, select secret: Select a specific secret to view or modify\n       ls, list secrets: List all secrets in the current namespace\n\nKubernetes Service Commands\n       ssv, select service: Select a specific service to view details\n       lsv, list services: List all services in the current namespace\n\nNamespace Commands\n       ln, list namespaces: List all available namespaces\n       sn, select namespace: Switch to a different namespace\n\nStore Kubernetes Information\n       show info, si: Prints Kubernetes information\n       q: Exit application\n       clear config path, ccp: Clears config path information\n       clear deployment, cd: Clears deployment information\n       clear info, ci: Clears Kubernetes information\n       clear pod, cp: Clears pod information\n       clear service, cse: Clears service information\n       clear namespace, cn: Clears namespace information\n       clear secret, cs: Clears secret information\n```\n- You can see the available options using `\u003ccmd\u003e -h` or `\u003ccmd\u003e --help` like `select secret -h\n```bash\nk8s-shell\u003e select secret --help\n```\n- OR\n```bash\nk8s-shell\u003e ss -h\n```\n\n```\nNAME\n       ss - Select a specific secret to view or modify\n\nSYNOPSIS\n       ss --decode boolean --show-table boolean --show-text boolean --memory boolean --help\n\nOPTIONS\n       --decode or -d boolean\n       Decode base64 encoded data\n       [Optional, default = false]\n\n       --show-table or -t boolean\n       List decoded secrets in a table format\n       [Optional, default = false]\n\n       --show-text or -s boolean\n       List decoded secrets as plain text\n       [Optional, default = false]\n\n       --memory or -m boolean\n       Use the memorized secret object from memory\n       [Optional, default = false]\n\n       --help or -h\n       help for ss\n       [Optional]\n\n\nALSO KNOWN AS\n       select secret\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuricanozturk01%2Fk8-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuricanozturk01%2Fk8-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuricanozturk01%2Fk8-shell/lists"}