canonical / microk8s

MicroK8s is a small, fast, single-package Kubernetes for datacenters and the edge.
https://microk8s.io
Apache License 2.0
8.46k stars 771 forks source link

Support snap parallel installs #4174

Closed lengau closed 1 month ago

lengau commented 1 year ago

Summary

Please support the snap Parallel installs feature. Currently this fails while running the configure hook. I believe swapping out ${SNAP_NAME} for ${SNAP_INSTANCE_NAME} could help, but I'm not sure what else might be needed

Why is this important?

I'd like to be able to run multiple versions of microk8s simultaneously in order to test/ensure that charms run with different versions of microk8s

Are you interested in contributing to this feature?

yes

neoaggelos commented 1 year ago

Hi @lengau, thank you for bringing this up. Multiple MicroK8s installs on the same host is not really supported at the moment. Other than ${SNAP_NAME} -> ${SNAP_INSTANCE_NAME} in numerous locations, this would also require:

Note that the above is noted just for clarity and is entirely unsupported at the moment.

I would instead recommend using LXD to start multiple containers instead: https://microk8s.io/docs/install-lxd

stale[bot] commented 2 months ago

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.