Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

UPS management #548

Open
lcotonea opened this issue Jul 27, 2020 · 1 comment
Open

UPS management #548

lcotonea opened this issue Jul 27, 2020 · 1 comment
Labels
kind/feature A new feature

Comments

@lcotonea
Copy link

Currently K3OS embeds all the minimal requirements of an OS to interact with hardware.
However power supply should also be incorporated into the OS to prevent power default by shutting down correctly the system.
Then is there a way to embed NUT alpine package into the K3OS distribution?

@lcotonea lcotonea added the kind/feature A new feature label Jul 27, 2020
@cdeadspine
Copy link

cdeadspine commented Jan 14, 2021

Hello, I can't seem to find documentation on how to do this properly / simply.

I can run something like https://artifacthub.io/packages/helm/k8s-at-home/network-ups-tools

But how to integrate operating system level support for this?

Do I have to use config.yaml -> write_files to make a custom /etc/init.d service to look for a hostpath file created via a Pod?

Or is it possible for a pod to mount a hostPath to /etc/killpower ? ( I did a grep in /etc for killpower and I don't think anything is looking for that file?)

Or is there anyway for a Pod to execute k3s-killall.sh and poweroff on the Node? (there doesn't even seem to be much information on the internet about how to properly shutdown kubernetes, i assume k3s-killall.sh and poweroff is required?)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature A new feature
Projects
None yet
Development

No branches or pull requests

2 participants