Skip to content
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

RKE always uses last node's IP as the 'server' in the kubeconfig. #1882

Closed
johnyrose opened this issue Jan 14, 2020 · 1 comment
Closed

RKE always uses last node's IP as the 'server' in the kubeconfig. #1882

johnyrose opened this issue Jan 14, 2020 · 1 comment

Comments

@johnyrose
Copy link

Hi there, so I tried using RKE to deploy an HA cluster with 5 nodes, currently all are cp, etcd and workers but I'll separate them in the future. My yaml file looks roughly like this:

nodes:
    - address: 1.2.3.4
      user: root
      role:
        - controlplane
        - etcd
        - worker
    - address: 1.2.3.5
      user: root
      role:
        - controlplane
        - etcd
        - worker
    - address: 1.2.3.6
      user: root
      role:
        - controlplane
        - etcd
        - worker
    - address: 1.2.3.7
      user: root
      role:
        - controlplane
        - etcd
        - worker
    - address: 1.2.3.8
      user: root
      role:
        - controlplane
        - etcd
        - worker

Once I run rke up, the setup succeeds, however I notice that if I check the resulted kubeconfig file, the server key has the IP address of the last node, aka 1.2.3.8 in this case. That means that should this node go down, the entire cluster goes down with it since, or at least I am unable to update or create new objects in it.

I was able to surpass this by using a virtual IP address on the last node, and configured it to move between the nodes should it go down, and now I am indeed able to power off the last node without killing the cluster, but I have a feeling that this is not the ideal solution.

Are there any guidelines about how to go about this issue?
Thanks ahead!

@superseb
Copy link
Contributor

This is tracked in #1682 and the linked closed issues to that explain some possibilities to do this today.

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

No branches or pull requests

2 participants