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

agent, defaults: enable remote node identity by default #24874

Merged

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented Apr 13, 2023

We already set enable-remote-node-identity: true in the Helm charts [1] since it was introduced for Cilium 1.7, see commit 0b27e79 ("helm: Enable remote-node identity for all new deployments by default").

Update the default value for the agent flag as well, so it is reflected in the flag usage.

[1]

# -- Enable use of the remote node identity.
# ref: https://docs.cilium.io/en/v1.7/install/upgrade/#configmap-remote-node-identity
remoteNodeIdentity: true

Remote node identities are enabled by default in the Cilium agent. They have already been enabled by default in the Helm charts since Cilium version 1.7.

We already set enable-remote-node-identity: true in the Helm charts [1]
since it was introduced for Cilium 1.7, see commit 0b27e79 ("helm:
Enable remote-node identity for all new deployments by default").

Update the default value for the agent flag as well, so it is reflected
in the flag usage.

[1] https://github.com/cilium/cilium/blob/95e091935d1b1d21925090858aa2cabfc239b1b3/install/kubernetes/cilium/values.yaml#L1726-L1728

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser requested a review from a team as a code owner April 13, 2023 14:06
@tklauser tklauser requested a review from pippolo84 April 13, 2023 14:06
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 13, 2023
@tklauser tklauser added release-note/misc This PR makes changes that have no direct user impact. sig/agent Cilium agent related. labels Apr 13, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 13, 2023
@tklauser tklauser force-pushed the pr/tklauser/agent-enable-remote-node-identity-by-default branch from 0417c01 to 675edf7 Compare April 13, 2023 14:08
@tklauser
Copy link
Member Author

tklauser commented Apr 13, 2023

/test

Job 'Cilium-PR-K8s-1.26-kernel-net-next' failed:

Click to show.

Test Name

K8sDatapathConfig Host firewall With VXLAN and endpoint routes

Failure Output

FAIL: Failed to reach 192.168.56.12:80 from testclient-9hkwx

Jenkins URL: https://jenkins.cilium.io/job/Cilium-PR-K8s-1.26-kernel-net-next/1812/

If it is a flake and a GitHub issue doesn't already exist to track it, comment /mlh new-flake Cilium-PR-K8s-1.26-kernel-net-next so I can create one.

@tklauser
Copy link
Member Author

tklauser commented Apr 13, 2023

@tklauser
Copy link
Member Author

tklauser commented Apr 14, 2023

Copy link
Member

@pippolo84 pippolo84 left a comment

Choose a reason for hiding this comment

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

🚀

@tklauser tklauser added the needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch label Apr 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.13.2 Apr 14, 2023
@tklauser tklauser added affects/v1.11 This issue affects v1.11 branch affects/v1.12 This issue affects v1.12 branch affects/v1.10 This issue affects v1.10 branch labels Apr 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 14, 2023
@tklauser tklauser merged commit 102170e into master Apr 14, 2023
42 checks passed
@tklauser tklauser deleted the pr/tklauser/agent-enable-remote-node-identity-by-default branch April 14, 2023 10:55
@gentoo-root gentoo-root added this to Needs backport from master in 1.13.3 Apr 14, 2023
@gentoo-root gentoo-root removed this from Needs backport from master in 1.13.2 Apr 14, 2023
@joestringer
Copy link
Member

This should probably be release-noted as well, just in case it causes some upgrade headache for someone. I think that historically we have tried to keep the cilium-agent defaults the same without changing in order to attempt to allow users to avoid configuring every new setting whenever they upgrade to the newer Helm charts. That's partly what the upgradeCompatibility flag stuff is about. I don't think the implementation for that upgradeCompatibility flag is really the best option, we should probably just set the expectation that upon upgrade users need to set options to retain compatibility during upgrade... but that's a whole other topic. The least we can do is make sure that the upgrade guide documents all changing defaults.

@tklauser
Copy link
Member Author

This should probably be release-noted as well, just in case it causes some upgrade headache for someone. I think that historically we have tried to keep the cilium-agent defaults the same without changing in order to attempt to allow users to avoid configuring every new setting whenever they upgrade to the newer Helm charts. That's partly what the upgradeCompatibility flag stuff is about. I don't think the implementation for that upgradeCompatibility flag is really the best option, we should probably just set the expectation that upon upgrade users need to set options to retain compatibility during upgrade... but that's a whole other topic. The least we can do is make sure that the upgrade guide documents all changing defaults.

Thanks for providing that context. I've added a release note to this PR's description.

@nbusseneau nbusseneau mentioned this pull request Apr 20, 2023
15 tasks
@nbusseneau nbusseneau added backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. and removed needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Apr 20, 2023
@sayboras sayboras added backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. and removed backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. labels Apr 26, 2023
@thorn3r thorn3r moved this from Needs backport from main to Backport done to v1.13 in 1.13.3 May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/v1.10 This issue affects v1.10 branch affects/v1.11 This issue affects v1.11 branch affects/v1.12 This issue affects v1.12 branch backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact. sig/agent Cilium agent related.
Projects
No open projects
1.13.3
Backport done to v1.13
Development

Successfully merging this pull request may close these issues.

None yet

5 participants