-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
2.0.2 - Stuck on masters node creation. #415
Comments
Please edit and remove your token asap if that's a valid token :) I'll read your message and reply shortly |
You have disabled the public ipv4 interface. Are you executing these commands from a server in the same private network as the cluster? If not that's what you need to do or the computer from which you run commands will not be able to reach the nodes. Also, when you disable the public interface you need some additional setup to be able to use Internet from the nodes and download packages etc. You need to set up the NAT gateway. This of setup is not yet described in the docs since it's less common but for the time being you can refer to the post create commands in #385 (comment) as an example. But you also need to configure the NAT gateway. |
I previously created a server on Hetzner to install PostgreSQL. Since IPv4 came at an additional cost, I opted for IPv6 only and use it for SSH access. So I need to have the ipv4 enabled even for worker nodes ? Any way, once I've did the bellow changes, everything works well. |
Now I have another issue where I need your precious assistance.
Trying to use a k3s datastore into my postgres instance instead of the default etcd. First i thought I've mistaked the url by doing :
Than I've fixhed the url to this :
But it didn't work, (etc is the one being used) Next obvious verification I've tried was to ssh into the master node and ping POSTGRES_PRIVATE_IP it did work well. Last check i've did was
It also did work. |
You can disable the public IPs if you prefer, but in order to access the cluster with hetzner-k3s you need to run it from a server in the same private network. I haven't tested with ipv6 only to be honest. |
You forgot to set the mode of the datastore to datastore:
mode: external
external_datastore_endpoint: postgres://.... |
I was missing the My new config look like this :
And I am getting the bellow error :
But once I switch mode to etcd everything work's well. |
By "Switch" do you mean that you changed datastore type on an existing cluster? If yes, that's not supported. The datastore choice is permanent for the life of the cluster. |
Indeed, I changed the datastore type before the creation of the cluster. I appreciate your guidance on this matter. I've done multiple Creation/deletion and the result is the same, the bellow configuration doesn't work :
Here is the error I got :
Then, i've thought my be their is an issue with
|
I've tried it but it get stuck on the creation
|
Do you see any data in the pg database? |
I've just checked pgAdmin, the k3s_cluster db have no table on it. |
And you can connect with psql to postgresql://user:password@PRIVATE_IP:5432/k3s_cluster_db? |
Yes I confirm it does work |
I was planning to do a test cluster with a postgres db tonight but I just finished working and it's 1AM, so I'll have to postpone this to tomorrow night. |
Hi, I could try now to figure out the problem you're having, but it would save me some time if you could describe step by step what you have done, from how you have set up the existing network, Internet access from the servers, and the Postgres server. Any detail you can provide may help me with the investigation, because I don't see any problems with a regular setup using a Postgres database, so it's perhaps something I am missing from your setup. |
I had the same issue, with version ´v1.26.9+k3s1´ Thank you for this thread, I could solve it with adding this to the condig:
Next Fail on master updates was:
But I could fix it with: Thank you so much for the great work. |
New servers now unfortunately seems to cannot connect to the network like:
|
I'll add an "Upgrading page" when I have a bit of time (or you could make a PR? :)) But the upgrade instructions are defined in the 2.0.0 release notes and linked to in the following minor releases so who is upgrading should see them easily. |
Please open a separate issue with the details including your config file. |
thank you, I got it fixed, the hostname and the name of the server in hetzner console did not match. But this could have likely been my error of setting |
I guess we can close this issue then? :) |
Scenario to reproduce :
After exec
hetzner-k3s create --config hetzner-k3s-config.yml | tee create.log
The output :
And then nothing happen, no more attempt no more outputs.
The text was updated successfully, but these errors were encountered: