{"id":19308712,"url":"https://github.com/mtulio/oc-plugin-machine-resize","last_synced_at":"2025-07-03T20:34:51.527Z","repository":{"id":46354140,"uuid":"419053730","full_name":"mtulio/oc-plugin-machine-resize","owner":"mtulio","description":"OpenShift plugin to Resize Machines","archived":false,"fork":false,"pushed_at":"2022-05-03T18:39:57.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-04T18:18:55.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtulio.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}},"created_at":"2021-10-19T18:52:34.000Z","updated_at":"2021-10-25T18:54:15.000Z","dependencies_parsed_at":"2022-08-29T22:41:00.739Z","dependency_job_id":null,"html_url":"https://github.com/mtulio/oc-plugin-machine-resize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mtulio/oc-plugin-machine-resize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Foc-plugin-machine-resize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Foc-plugin-machine-resize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Foc-plugin-machine-resize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Foc-plugin-machine-resize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtulio","download_url":"https://codeload.github.com/mtulio/oc-plugin-machine-resize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Foc-plugin-machine-resize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263400957,"owners_count":23461006,"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-11-10T00:16:13.832Z","updated_at":"2025-07-03T20:34:51.498Z","avatar_url":"https://github.com/mtulio.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenShift plugin to Resize Machines\n\n`oc` plugin to resize a Machine on OpenShift cluster.\n\n!!! tldr \"Important Note\"\n    - All steps described here will follow the safety way to resize a Machine in OCP 4.x.\n    - This is not a official documentation and this plugin was tested on version 4.9\n\n## Install\n\nDownload the script:\n\n``` shell\ncurl -s https://github.com/mtulio/oc-plugin-machine-resize/blob/master/oc-machine_resize \\\n    -o /usr/local/bin/oc-machine_resize\n```\n\nGrant permissions to run:\n``` shell\nchmod u+x /usr/local/bin/oc-machine_resize\n```\n\nTest it:\n\n``` shell\noc machine-resize -h\n```\n\n## Commands\n\n### help\n\n`--help`\n\n### list machines\n\n`--list-machines | -l`\n\n### resize machine\n\n`--machine-name \u003cmachine_to_resize\u003e --size \u003cnew_machine_size\u003e [--force|--continue]`\n\n**Extra args**:\n\n - `--force` : force to skip healthy checks. Eg if node holds a etcd leader pod\n - `--continue` : continue to stop from broken script. Eg when node was already cordoned/stopped, and not resize from cloud provider. It will skip the initial sanity checks (Eg: Ready node)\n\n## Usage\n\n- list current machines\n\n``` shell\noc machine-resize -l\n```\n\n- resize  a nachine\n\n``` shell\noc machine-resize -N mrb-gptgl-master-1 -s m5.xlarge\n```\n\n- resize a nachine that holds the etcd leader pod\n\n``` shell\noc machine-resize -N mrb-gptgl-master-0 -s m5.xlarge --force\n```\n\n### Cast: resizing master node that host the etcd leader pod\n\n\n[![asciicast](https://asciinema.org/a/440747.svg)](https://asciinema.org/a/440747)\n\n\n### Cast: resizing the node on Azure\n\n\n[![asciicast](https://asciinema.org/a/443591.svg)](https://asciinema.org/a/443591)\n\n\n## ToDo Next\n\n- support new platforms: Azure\n- increase the final healthy checks:\n    - check if COs are not degraded\n    - check apiserver, etcd pods\n    - check etcd cluster: health ndoes, leaders, etc\n    - firing alarms?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Foc-plugin-machine-resize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtulio%2Foc-plugin-machine-resize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Foc-plugin-machine-resize/lists"}