Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

microk8s restarted without supervision #923

Closed
termie opened this issue Jan 22, 2020 · 8 comments
Closed

microk8s restarted without supervision #923

termie opened this issue Jan 22, 2020 · 8 comments
Labels

Comments

@termie
Copy link

termie commented Jan 22, 2020

When you make a new release, you turn off and on microk8s on my production servers, sometimes breaking it, that seems pretty ridiculous.

Obviously I would like you to keep updating this code, but until this bug is fixed it seems like a pretty risky endeavor.

@strigona-worksight
Copy link
Contributor

strigona-worksight commented Jan 22, 2020

While I too find it a inconvenient, this is not a bug. microk8s is delivered as a snap package and these are automatically updated by your system: https://snapcraft.io/docs/keeping-snaps-up-to-date#heading--controlling-updates

A couple suggestions... Use the stable release channel to reduce the release frequency. Try putting your different nodes on different snap upgrade schedules to allow for more of a rolling upgrade schedule. Scale out your deployments so that losing a node does not impact your application.

@termie
Copy link
Author

termie commented Jan 22, 2020

The "stable" channel literally removed docker from the system in the 1.13 - 1.14 upgrade.

"We reserve the right to restart your application platform whenever we release." This is an outrageous expectation for software that is used to provide the infrastructure for other running applications.

These are not iPhones, we own our hardware and are running open source software, whatever happened to controlling your own system?

@lazzarello
Copy link
Contributor

lazzarello commented Jan 22, 2020

My solution was to maintain a custom build of microk8s and completely remove the canonical/microk8s channel from my production systems. As this is an obvious amount of work to deploy this "fix" I have not rolled it out yet. A custom build should not be a requirement for people who don't want their production systems to restart at unannounced times.

@ktsakalozos
Copy link
Member

Hi @termie,

If you want a long lasting kubernetes cluster you will have to follow the stable channel of a specific track. For example sudo snap install microk8s --classic --channel=1.17/stable. This way your deployment will stay in v1.17 even if the latest stable kubernetes changes. You should also set the snap update schedule [1] as suggested above so that updates do not reach you in an inconvenient time. If you do not specify a channel you will be following the latest stable track meaning that you will get backwards incompatible changes introduced either by upstream Kubernetes or by the MicroK8s distribution. We try to do our best to transition users from one release to the next but this is not always possible. Read more on channels and upgrades in [2]

[1] https://snapcraft.io/docs/keeping-snaps-up-to-date#heading--controlling-updates
[2] https://microk8s.io/docs/setting-snap-channel

@Bessonov
Copy link

@termie

@lazzarello creates a PR for the documentation. It contains a way how to pin the exact version of micro8s.

@stale
Copy link

stale bot commented Sep 19, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Sep 19, 2021
@lazzarello
Copy link
Contributor

bump, I've been pinning the version for > 1 year now and it's working great. any way that information can get added to the user documentation?

@stale stale bot removed the inactive label Oct 4, 2021
@stale
Copy link

stale bot commented Nov 22, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Nov 22, 2022
@stale stale bot closed this as completed Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants