Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtulio/oc-plugin-machine-resize
OpenShift plugin to Resize Machines
https://github.com/mtulio/oc-plugin-machine-resize
Last synced: 8 days ago
JSON representation
OpenShift plugin to Resize Machines
- Host: GitHub
- URL: https://github.com/mtulio/oc-plugin-machine-resize
- Owner: mtulio
- License: apache-2.0
- Created: 2021-10-19T18:52:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-03T18:39:57.000Z (over 2 years ago)
- Last Synced: 2024-05-10T00:02:42.002Z (6 months ago)
- Language: Shell
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenShift plugin to Resize Machines
`oc` plugin to resize a Machine on OpenShift cluster.
!!! tldr "Important Note"
- All steps described here will follow the safety way to resize a Machine in OCP 4.x.
- This is not a official documentation and this plugin was tested on version 4.9## Install
Download the script:
``` shell
curl -s https://github.com/mtulio/oc-plugin-machine-resize/blob/master/oc-machine_resize \
-o /usr/local/bin/oc-machine_resize
```Grant permissions to run:
``` shell
chmod u+x /usr/local/bin/oc-machine_resize
```Test it:
``` shell
oc machine-resize -h
```## Commands
### help
`--help`
### list machines
`--list-machines | -l`
### resize machine
`--machine-name --size [--force|--continue]`
**Extra args**:
- `--force` : force to skip healthy checks. Eg if node holds a etcd leader pod
- `--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)## Usage
- list current machines
``` shell
oc machine-resize -l
```- resize a nachine
``` shell
oc machine-resize -N mrb-gptgl-master-1 -s m5.xlarge
```- resize a nachine that holds the etcd leader pod
``` shell
oc machine-resize -N mrb-gptgl-master-0 -s m5.xlarge --force
```### Cast: resizing master node that host the etcd leader pod
[![asciicast](https://asciinema.org/a/440747.svg)](https://asciinema.org/a/440747)
### Cast: resizing the node on Azure
[![asciicast](https://asciinema.org/a/443591.svg)](https://asciinema.org/a/443591)
## ToDo Next
- support new platforms: Azure
- increase the final healthy checks:
- check if COs are not degraded
- check apiserver, etcd pods
- check etcd cluster: health ndoes, leaders, etc
- firing alarms?