{"id":16075519,"url":"https://github.com/mnrgreg/kubectl-node-restart","last_synced_at":"2025-08-21T19:31:14.948Z","repository":{"id":44530936,"uuid":"240647594","full_name":"MnrGreg/kubectl-node-restart","owner":"MnrGreg","description":"Krew plugin to restart Kubernetes Nodes sequentially and gracefully","archived":false,"fork":false,"pushed_at":"2024-06-08T16:53:24.000Z","size":49088,"stargazers_count":105,"open_issues_count":3,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-07T14:21:43.934Z","etag":null,"topics":["cluster","kubectl-plugin","kubernetes","kubernetes-cluster","rolling-restart"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MnrGreg.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":"2020-02-15T05:00:47.000Z","updated_at":"2024-11-03T15:34:35.000Z","dependencies_parsed_at":"2024-06-08T18:14:42.405Z","dependency_job_id":null,"html_url":"https://github.com/MnrGreg/kubectl-node-restart","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MnrGreg%2Fkubectl-node-restart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MnrGreg%2Fkubectl-node-restart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MnrGreg%2Fkubectl-node-restart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MnrGreg%2Fkubectl-node-restart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MnrGreg","download_url":"https://codeload.github.com/MnrGreg/kubectl-node-restart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230527881,"owners_count":18240052,"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":["cluster","kubectl-plugin","kubernetes","kubernetes-cluster","rolling-restart"],"created_at":"2024-10-09T09:06:09.785Z","updated_at":"2024-12-20T03:10:55.049Z","avatar_url":"https://github.com/MnrGreg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl-node-restart\n\n`kubectl-node-restart` is a [kubectl plugin](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/) that sequentially and gracefully performs a rolling restart of Nodes within a Kubernetes cluster\n\n![using kubectl-node-restart plugin](demo/usage.gif)\n\n# Installing\n- install `krew` using instructions [here](https://github.com/kubernetes-sigs/krew#installation)\n- run `kubectl krew update`\n- run `kubectl krew install node-restart`\n\n![installing kubectl-node-restart plugin](demo/installation.gif)\n\n\n# Usage\n\n- perform rolling restart of all nodes in a cluster\n\n```bash\n    kubectl node-restart [--context cluster] all\n```\n\n- restart only specific nodes selected through labels\n\n```bash\n    kubectl node-restart --selector node-role.kubernetes.io/master\n```\n\n- execute a command prior to reboot labels\n\n```bash\n    kubectl node-restart all --command \"echo 'hello world'\"\n```\n\n- perform a dry-run\n\n```bash\n    kubectl node-restart all --dry-run\n```\n\n- restart node(s) without first draining\n\n```bash\n    kubectl node-restart all --force\n```\n\n- add a delay of 120seconds between node restarts\n\n```bash\n    kubectl node-restart all --sleep 120\n```\n\n- Pull the Alpine image from a private registry\n\n```bash\n    kubectl node-restart all --registry myregistry.local/library/alpine:3.9\n```\n\n\u003c!--\n# remove prior zip\nrm *.zip\nexport version=v1.0.6\nzip $version.zip node-restart.sh LICENSE\ngit add . \u0026\u0026 git commit -m \"add --force switch to all\"\ngit push\ngit tag -a $version -m \"bump $version\"\ngit push origin $version\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnrgreg%2Fkubectl-node-restart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnrgreg%2Fkubectl-node-restart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnrgreg%2Fkubectl-node-restart/lists"}