-
Notifications
You must be signed in to change notification settings - Fork 52
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
Pod and Service cidrs must be passed on all masters (not just the 1st one) #52
Comments
@fredleger thanks for your issue. I've tested your issue and providing the To test that, I followed the following procedure (the patch is available on this gist): cd $(mktemp -d)
git clone https://github.com/xunleii/terraform-module-k3s
cd terraform-module-k3s
curl https://gist.githubusercontent.com/xunleii/d269954722a993254f2af0a56a9bd2a2/raw/720abccf806fb82ce9a26c003ae2d628a3025590/git.patch | git apply -
cd examples/hcloud-k3s
ssh-keygen -f issue52.id_rsa
ssh-add issue52.id_rsa
terraform init
terraform apply -var "ssh_key=$(cat issue52.id_rsa.pub)"
ssh root@$(hcloud server ip k3s-control-plane-1)
(k3s-control-plane-1)> curl -sL https://github.com/vmware-tanzu/sonobuoy/releases/download/v0.50.0/sonobuoy_0.50.0_linux_amd64.tar.gz | tar -xzf -
(k3s-control-plane-1)> ./sonobuoy run --kubeconfig /etc/rancher/k3s/k3s.yaml --wait The |
E2E
I think, the CIDR issue (currently passed only to the first master) must be fixed, but passing What do you think about that ? Have you seen something unusual when you provide the flag to the first master only ? |
thanks for testing that deeply Ok i think i ran in the issue you are mentioning where my core-dns had a 10.43.x.X addr. And now that i pass both cidrs to all masters it seems to work. I have other issues that seems unrelated. The fact that made me think about it is that the rancher docs are not very clear about which flags goes were. |
i had time to test it a little deeper today You are totally right on both points:
so i will try to propose a PR soon on it ;-) |
fix #52 Signed-off-by: Alexandre Nicolaie dit Clairville <alexandre.nicolaie@gmail.com>
Unless i totally missed something, if you try to change svc cidr the cluster-dns will change too and have to be passed to all masters and not just only the first one.
this is already achievable through the individual flags but will be easier if handled the same way has pods and svc cidrs
tell me if that make sense to you i can work on the PR
thanks for this great module btw
The text was updated successfully, but these errors were encountered: