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

When resetting/restoring etcd, only listen on loopback #5542

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

brandond
Copy link
Member

@brandond brandond commented May 5, 2022

Proposed Changes

  • Only listen on loopback when resetting

Types of Changes

bugfix

Verification

Check etcd logs during reset/restore, confirm that it is only listening for peer/client connections on loopback IP.

Linked Issues

User-Facing Change

The embedded etcd instance no longer accepts connections from other nodes while resetting or restoring.

Further Comments

@brandond brandond requested a review from a team as a code owner May 5, 2022 22:12
@@ -796,6 +818,7 @@ func (e *ETCD) cluster(ctx context.Context, forceNew bool, options executor.Init
ClientCertAuth: true,
TrustedCAFile: e.config.Runtime.ETCDPeerCA,
},
SnapshotCount: 10000,
Copy link
Member Author

@brandond brandond May 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for consistency with kubeadm et al: etcd-io/etcd#13889

Note that this is the number of transactions before etcd takes an internal WAL snapshot; it does not have anything to do with scheduled or on-demand snapshots.

@brandond brandond force-pushed the cluster_reset_isolation branch from fe59130 to b213011 Compare June 14, 2022 20:20
@brandond brandond merged commit 6fad635 into k3s-io:master Jun 15, 2022
@brandond brandond deleted the cluster_reset_isolation branch June 6, 2024 21:12
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.

3 participants