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
- Host: GitHub
- URL: https://github.com/rhecosystemappeng/cloud-infrastructure-power-manager
- Owner: RHEcosystemAppEng
- License: apache-2.0
- Created: 2022-08-11T08:33:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-24T12:22:25.000Z (almost 4 years ago)
- Last Synced: 2025-02-15T02:15:24.437Z (over 1 year ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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**