Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Error with initial installation #1

Open
jonaagenilsen opened this issue Sep 21, 2019 · 4 comments
Open

Error with initial installation #1

jonaagenilsen opened this issue Sep 21, 2019 · 4 comments

Comments

@jonaagenilsen
Copy link

image

Loggfile:
image

Firewall was modified by installer:
image

@jonaagenilsen
Copy link
Author

This seemed to do the trick?

iptables -I INPUT 1 -i cni0 -s 192.168.0.0/16 -j ACCEPT
iptables -I FORWARD 1 -s 10.43.0.0/16 -j ACCEPT
iptables -I FORWARD 1 -s 192.168.0.0/16 -j ACCEPT

kubectl wait --for=condition=complete --timeout=300s -n kube-system job/helm-install-traefik
job.batch/helm-install-traefik condition met

hurray :)

@jonaagenilsen
Copy link
Author

I use bare-bones iptables. But those rules should be implemented in installer-script.

Most use firewalld I guess:

firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 1 -i cni0 -s 192.168.0.0/16 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter FORWARD 1 -s 10.43.0.0/16 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter FORWARD 1 -s 192.168.0.0/16 -j ACCEPT
firewall-cmd --zone=public --permanent --add-service=dns
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --zone=public --permanent --add-service=https
firewall-cmd --reload

@jonaagenilsen
Copy link
Author

Got this far. New hurdle to fight:
More firewall-rules? I'll investigate

image

@wilsonianb
Copy link
Collaborator

Thanks for investigating. Unfortunately, I also haven't successfully run the installer with firewall set up.
These have been on my to-do list of possible solutions to try:
k3s-io/k3s#783
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#ensure-iptables-tooling-does-not-use-the-nftables-backend

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants