Skip to content

Conversation

@vanyarock01
Copy link
Contributor

@vanyarock01 vanyarock01 commented Feb 15, 2021

The problem is that, when changing cluster IP addresses, the cluster leader will not be re-elected.It may happen that it will be impossible to reach the leader's IP address.

There are two ways to solve the problem:

  1. Do not use IP address, but use internal DNS hostnames.
  2. Check if the IP address exists in the list of current addresses and reassign if necessary.

The first method is ideologically more correct, but requires backward compatibility support. This also requires more significant changes to the controller logic.

So I suggest using the second way.

@vanyarock01 vanyarock01 linked an issue Feb 20, 2021 that may be closed by this pull request
@vanyarock01 vanyarock01 force-pushed the fix-old-leader-annotation branch from 26c00fb to 81c2fc3 Compare February 20, 2021 07:36
@vanyarock01 vanyarock01 marked this pull request as ready for review February 20, 2021 07:45
@vanyarock01 vanyarock01 added this to the Q1 2021 milestone Feb 20, 2021
@vanyarock01 vanyarock01 added the bug Something isn't working label Feb 20, 2021
@vanyarock01 vanyarock01 self-assigned this Feb 20, 2021
@vanyarock01 vanyarock01 force-pushed the fix-old-leader-annotation branch from 81c2fc3 to 758210e Compare February 20, 2021 08:08
@vanyarock01 vanyarock01 force-pushed the fix-old-leader-annotation branch from 758210e to 68493b1 Compare February 20, 2021 13:16
@vanyarock01 vanyarock01 merged commit 2bab832 into master Feb 24, 2021
@vasiliy-t vasiliy-t deleted the fix-old-leader-annotation branch November 9, 2021 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Endpoint leader annotation update problem

3 participants