-
Notifications
You must be signed in to change notification settings - Fork 752
Trigger pods fail on microk8s #1046
Comments
This issue may be related: Some people are reporting there issues when running docker in Ubuntu 18.04 but apparently that can be fixed after upgrading/restarting. Can you check if that helps you with your issue? |
@andresmgot Thanks for your reply. Apaprently microk8s snap on Ubuntu 18.04 does not use docker and uses containerd directly. There is no docker daemon running on my host. |
This is what I get every few minutes in the system logs:
|
It seems that the container is being killed because an OOM issue (which is weird because that container is just doing a https://stackoverflow.com/questions/55304976/oom-killer-docker It's a long shot but this may be related to the fact that the container is running as root. To prove/discard that can you try to create a similar pod but specifying a securityContext:
runAsUser: 1001 |
@andresmgot would you mind describing where should I add the yaml snippet? I'm totally new to k8s and kubeless! Moreover, in a new vm, I installed everything with a normal user and finally I got the same error. btw, can you reproduce this in microk8s install? In an Ubuntu vm it'd b |
I will try to reproduce it. In the meantime you can try Minikube that is a supported environment. |
@andresmgot thanks for giving it a try! I have already tried Minikube but it does not work with emulated CPUs which the vm provider provides. Moreover it does not work with the tiny vms that I use (1core, 2gb ram). |
Have you tried https://github.com/kubernetes-sigs/kind ? It's also a lightweight Kubernetes distribution and I have tested Kubeless in that platform before. |
I haven't tried that yet. In fact I can run Kubeless on top of Kubernetes with scheduling inside a VM with 2cores and 4gb of ram. Here is my Ansible-Playbook for that. What I am trying to do, is fitting everything inside a 1core,2gb instance. |
I found the problem with this. I was able to reproduce the issue using the latest Minikube version. The problem was that the memory limit set is too low. This commit fixes it: vmware-archive/cronjob-trigger@61e04ea It will be available in the next release. |
@andresmgot I'll try with the git version and report back. Thank you very much! |
@andresmgot I tried scheduling functions with the new v1.0.4 release and it worked perfectly. Thank you! P.S for future vistors: I had to enable dns on microk8s first |
Is this a BUG REPORT or FEATURE REQUEST?:
This is bug on fresh Ubuntu 18.04 and microk8s single node cluster installation.
What happened:
Functions do not run on schedule due to error.
What you expected to happen:
Functions should run on schedule.
How to reproduce it (as minimally and precisely as possible):
Function deploy and runs when called perfectly. The schedule fails however.
The error is the same for each trigger pod:
Anything else we need to know?:
Environment:
kubectl version
):kubeless version
):The text was updated successfully, but these errors were encountered: