{"id":20860500,"url":"https://github.com/jpts/kubectl-execws","last_synced_at":"2025-05-12T08:33:13.480Z","repository":{"id":57661337,"uuid":"445460714","full_name":"jpts/kubectl-execws","owner":"jpts","description":"A replacement for \"kubectl exec\" that works over WebSocket connections.","archived":false,"fork":false,"pushed_at":"2024-03-30T14:13:53.000Z","size":106,"stargazers_count":27,"open_issues_count":4,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T13:38:48.406Z","etag":null,"topics":["exec","kubectl","kubernetes","websockets"],"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/jpts.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-07T09:06:34.000Z","updated_at":"2024-04-09T13:06:15.000Z","dependencies_parsed_at":"2024-03-30T14:51:19.742Z","dependency_job_id":null,"html_url":"https://github.com/jpts/kubectl-execws","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpts%2Fkubectl-execws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpts%2Fkubectl-execws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpts%2Fkubectl-execws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpts%2Fkubectl-execws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpts","download_url":"https://codeload.github.com/jpts/kubectl-execws/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225130628,"owners_count":17425506,"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":["exec","kubectl","kubernetes","websockets"],"created_at":"2024-11-18T04:55:50.996Z","updated_at":"2024-11-18T04:55:51.571Z","avatar_url":"https://github.com/jpts.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl-execws\n\nA replacement for \"kubectl exec\" that works over WebSocket connections.\n\nThe Kubernetes API server has support for exec over WebSockets, but it has yet to land in kubectl. Although [some](https://github.com/kubernetes/kubernetes/issues/89163) [proposals](https://github.com/kubernetes/enhancements/pull/3401) exist to add the functionality, they seem quite far away from landing. This plugin is designed to be a stopgap until they do.\n\nUsage:\n```\nUsage:\n  kubectl-execws \u003cpod name\u003e [options] -- \u003ccmd\u003e\n\nFlags:\n      --as string                    Impersonate another user\n  -c, --container string             Container name\n  -h, --help                         help for execws\n      --kubeconfig string            kubeconfig file (default is $HOME/.kube/config)\n  -v, --loglevel int                 Set loglevel (default 2)\n  -n, --namespace string             Set namespace\n      --no-sanity-check              Don't make preflight request to ensure pod exists\n      --node-direct-exec             Partially bypass the API server, by using the kubelet API\n      --node-direct-exec-ip string   Node IP to use with direct-exec feature\n  -k, --skip-tls-verify              Don't perform TLS certificate verifiation\n  -i, --stdin                        Pass stdin to container\n  -t, --tty                          Stdin is a TTY\n```\n\n## Features\n\n* Aware of `HTTP_PROXY`/`HTTPS_PROXY` env variables\n* Uses standard Kubeconfig processing including `~/.kube/config` \u0026 `$KUBECONFIG` support\n* Doesn't use SPDY so might be more loadbalancer/reverse proxy friendly\n* Supports a full TTY (terminal raw mode)\n* Can bypass the API server with direct connection to the nodes kubelet API\n\n## Tab Completion\n\nTab completion is available for various shells `[bash|zsh|fish|powershell]`.\n\nThis can be used with the standalone binary through use of the `completion` subcommand, eg. `source \u003c(kubectl-execws completion zsh)`\n\nCompletion is also available when using as a kubectl plugin. To set this up it is necessary to symlink to the multi-call binary with a special name: `ln -s kubectl-execws kubectl_complete-execws`.\n\n## Acknowledgements\n\nWork inspired by [rmohr/kubernetes-custom-exec](https://github.com/rmohr/kubernetes-custom-exec) and [kairen/websocket-exec](https://github.com/kairen/websocket-exec).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpts%2Fkubectl-execws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpts%2Fkubectl-execws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpts%2Fkubectl-execws/lists"}