An open API service indexing awesome lists of open source software.

https://github.com/rhecosystemappeng/cloud-infrastructure-power-manager

The Cloud Infrastructure Power Manager creates automatic mechanisms depending on the cloud provider to power off/on the infrastructure during periods of less activity and certificate renewal dates
https://github.com/rhecosystemappeng/cloud-infrastructure-power-manager

Last synced: 11 months ago
JSON representation

The Cloud Infrastructure Power Manager creates automatic mechanisms depending on the cloud provider to power off/on the infrastructure during periods of less activity and certificate renewal dates

Awesome Lists containing this project

README

          

# Cloud Infrastructure Power Manager
The Cloud Infrastructure Power Manager creates automatic mechanisms depending on
the cloud provider to power off/on the infrastructure during periods of less
activity and certificate renewal dates

## Run
```sh
# Run the script and follow the selector menus
./power_manager.sh
```

## Get Expiration Timestamp
Configure your `oc` or `kubectl` CLI and run the following command:
```sh
oc -n openshift-kube-apiserver-operator get secret kube-apiserver-to-kubelet-signer -o jsonpath='{.metadata.annotations.auth\.openshift\.io/certificate-not-after}'
```

## Cloud providers Support
### AWS
Using a combination of AWS Lambda and AWS EventBridge creates functions and cron
rules to power on/off the specified cluster.

**Warning!** This requires to have installed the AWS CLI with properly
configured to access the subscription.
#### Rule Options
* **Weekends:** Power on/off during weekends (from FRI 23:00 UTC to MON 07:00 UTC) and Cert Renewal date
* **Nights:** Power on/off during nights (from MON-FRI 23:00 UTC to MON-FRI 07:00 UTC) and Cert Renewal date
* **Weekends-Nights:** Two previous rules simultaneously
* **None:** Only Cert Renewal date
* **Clean:** Removes every rule

### GCP
**NOT SUPPORTED**
### AZURE
**NOT SUPPORTED**