Closed rombert closed 2 years ago
/set title: Support issue for MicroOS
Hi there,
Thanks for your interest.
MicroOS seems to be an edge-case here. I don't want to implement the suggested fix, but you're welcome to patch your own version of k3sup or work around any issues you face.
As per the readme, you could reboot your own server then run: k3sup install --skip-install --ip ...
to retrieve the kubeconfig after you've manually rebooted your machine.
Is there any reason why you can't use another distribution?
Alex
/add label: wontfix
Hey @alexellis,
I know that the fix mentioned is a bit scuff but I do feel like it's a change that potentially won't break if we put a timer of sum sort with a retry mechanism
Rational: MicroOS is supper helpful for running the underlying os updates fully unmanaged. Mainline support would make adoption easier for companies and individuals who would like to have a cluster with low maintenance cost.
Happy to make a PR if you are ok with the idea of having It implemented and would love to go over spec details with you.
If someone wants to build automation around your tool having a random failure makes debugging and detecting actual errors harder.
Trying to implement something to autosacale a bare mettle a provider similar to elastic AWS for shits and giggles and started facing this problem
The hint about where this needs to be fixed is in the original issue comment:
"the k3s-install.sh script"
That's not something we control within k3sup. Please raise an issue with k3s.
Expected Behaviour
When running k3sup install against a MicroOS deployment the k3s-install.sh script installs the k3s systemd service but does not start it.
I suspect that this is done because a) it installs the system k3s-selinux package and b) MicroOS uses a read-only filesystem and needs a reboot to activate the installed package.
This means that a reboot is needed, otherwise the k3s service is not up and the kubeconfig is not generated.
Current Behaviour
k3sup install
fails withAre you a GitHub Sponsor (Yes/No?)
Possible Solution
k3sup install could provide a flag that, when set to true, reboots the server before attempting to retrieve the kubeconfig.
Steps to Reproduce
k3sup install
Context
Your Environment
k3sup install/join
):KVM-based virtual machine running on a remote host.
"Be part of the solution"
Subject to approval, are you willing to work on a Pull Request for this issue or feature request?
(but expect slow progress, my knowledge of go is really basic)