-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
CrashLoopBackOff / Error #1019
Comments
Please |
|
Looks like you need to give it the resource type. Is |
whoopsy) I apologize for that..
|
No worries, how about the log for the container? |
|
Is there a firewall turned on? What is the output of |
|
It looks like iptables need to be changed to legacy mode. |
@erikwilson RHEL/CentOS 8 does not ship the necessary packages for
|
Sorry? This doesn't seem like a problem that k3s can easily fix. The root of the problem is with iptables and how they decided to implement the upgrade. If Kubernetes/containerization has issues with nftables support you would think that RHEL would provide legacy support, maybe should file an issue there? |
@erikwilson etc is that going to be the answer for my issue also? #1159 (I'm on Centos as well & getting a CrashLoopBackOff) |
Not sure @MikeCongdon1. Could you check the logs of the failing containers and use this thread to help determine the root issue? |
I'm seeing the same issue, with centos8 and k3s v1.0. Seems like the only way to get it working is to disable/stop firewalld ( |
same issue. new centos ,docker +rancher+k3s
disable firewalld resolve it,but is it a solution? |
+1 Same issue here on Centos 7, disable the firewalld isn't an option for me. Environment:
Start script: Output of
Containers outpus
|
I finally got K3S working on Centos 7 and docker, it wasn't working even after replace Facts:
So I just added following rule to iptables in order to fix it:
Where The step by step solution:
Replace firewalld by iptables
Configure iptables rules, my setup is based on this article:
Here is where the magic happens, enable connections from k3s pods to your host internal ip:
Save changes and restart iptables
Install and run k3s
|
I am seeing this error on a k3s install onto a RPi cluster using Rasbian: The logs of the process: kubectl logs local-path-provisioner-58b55cb6b6-fhn4k -n local-path-storage -f |
For what it's worth I wrote a ufw application profile for this - I didn't feel like turning the firewall off was a solution. Turned out my pods needed to have 6443 (TCP) and 8472 (UDP) as well as access to the host 443 (TCP).
To use this make sure you've got your CIDR identified and then run the following (after creating the file above): sudo ufw app update k3s
sudo ufw allow from $CIDR to any app k3s This will allow access within the cluster. Seems to have fixed my problems, well at least some of them... 😉 |
What is the |
I just used |
I'm running k3s on clean raspbian, no firewall config at all, iptables isn't even installed,
What are my options? |
Do you mean that you haven't configured it? Or that it's turned off? You should confirm that it is indeed disabled. |
I'm having the same problem with a raspberry pi 4, I tried a couple of times with a fresh install but I'm still getting the error each time:
OS is Raspberry Pi OS 64bit PS If I execute the kill-all script and reboot the server with |
@agilob and @criscola both of you appear to be on Raspberry Pi, whereas this issue appears to be reported against CentOS on amd64. I suggest one or both of you create new issues to track your problem; pods crash-looping is a generic symptom of many potential problems and we can't troubleshoot them all in the same place. |
I had the same problem just now and resolved it by turning off SELinux |
CentOS7 with firewall enable, this worked for me: |
On Ubuntu 20.04.2 LTS confirmed:
Solution
|
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 180 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
this doesn't seem to be working on Ubuntu 22.04. Any ideas on how to proceed? |
Hello World!
I just installed k3s (Single Master Install), yet seeing
Error
and/orCrashLoopBackOff
for few deployments (that came out of the box)Please advise.
The text was updated successfully, but these errors were encountered: