Skip to content

Conversation

@ashishworkspace
Copy link

No description provided.

@garutilorenzo
Copy link
Owner

I don't think the server keyword is needed. From the docs:

Setting the K3S_URL parameter causes K3s to run in worker mode. The K3s agent will register with the K3s server listening at the supplied URL. The value to use for K3S_TOKEN is stored at /var/lib/rancher/k3s/server/node-token on your server node.

so if you don't specify K3S_URL k3s will run as server otherwise k3s will run as worker.

Are you submitting this PR for a particular reason or bug?

@ashishworkspace
Copy link
Author

If you want to create multi master cluster setup than I think server keyword is important.
I ran your code in AWS and was not able to connect all master together. Only one master joined the cluster.
I fixed that issue using this server keyword.

@ashishworkspace
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants