-
Notifications
You must be signed in to change notification settings - Fork 783
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 stalls on OCI E2.1.Micro instance #1692
Comments
Imho 1Gb for kubernetes is too small. I've never been able to run kubernetes on a 1vcpu and 1Gb machine. Using kubeadm or MicroK8s. The smallest was 2Gb, but its crawling. I haven't even installed any workload. |
K3s occupies this same space of small and lean k8s distros and does fine on a 1Gb vps. For what it's worth I have microK8s running two deployments on a 2 gig AWS vps no problem. But if it is the case that microK8s requires 2 gig minimum, I'd like to see a direct response from the team at Canonical updating the minimums. |
Pinging @ktsakalozos |
Hi @worldofgeese, In our docs we recommend at least 4GB of RAM. 4GB is not the minimum amount of memory you can get MicroK8s running with but considering we would like you to have a decent experience 4GB should be enough for kubernetes plus a basic workload. If your goal is to just get MicroK8s running with as few resources as possible here are a few things you could try:
[1] https://microk8s.io/docs |
Hello, thank you for your reply. Under [2] I see nothing about the implications of enabling memory swap. What I have gleaned from [3] is to run |
You can read more on swap effects in https://discuss.kubernetes.io/t/swap-off-why-is-it-necessary/6879 Yes, you can try the |
I started by making and activating a swapfile:
then installing the slow-start branch of microk8s 1.19
and enabled dns and storage with Unfortunately,
Report tarball attached. Please advise. |
@ktsakalozos good morning 🌅. Just wanted to swing back to this since we had the weekend between us and see if anything could be learned from my attached logs? |
I see calls to the apiserver result in:
The API server should be listening on port 16443 on all interfaces. The 158.101.164.62 seems to be the IP of the default interface, right? However, I cannot explain the "no route to host" error message. in the past on Oracle cloud we have seen we had some issues with the iptable rules injected by the cloud vendor. Can you see if you are affected by [1]? [1] #854 (comment) |
I see in the issue linked to do the following for Oracle Cloud Infrastructure deployments:
I needed to change the two instances of
after which Thank you @ktsakalozos for sticking with me through this one! 🙇 |
Details of the instance are here under Compute. It's a 1 gb ram instance with 40 gigs of attached storage, which according to the issues I've read here, should fall within minimum system reqs.
1.19 never moves past the configure hook step when installing. 1.18, 1.18 refreshed to 1.19, 1.17, and 1.16 stall given a
microk8s status
ormicrok8s inspect
command 90% of the time. I was able to get one inspect tarball out of this, which I've attached.If anyone else wants to give this a try, Oracle Cloud offers no-catch always free compute resources. You can use their Terraform example here together with the relevant Terraform provider docs.
I'd love to receive an answer on either A. what the official minimum system requirements of microK8s are or B. what I can do to get a functional installation. It doesn't need more than dns and storage enabled (for the purposes of testing, I never enabled these).
inspection-report-20201027_170633.tar.gz
The text was updated successfully, but these errors were encountered: