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

Restart kube-apiserver in all CP nodes after changing the Pod Security Admission Configuration #3547

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

jiaqiluo
Copy link
Member

@jiaqiluo jiaqiluo commented Apr 9, 2024

This PR is identical to #3531 which was merged and then reverted as the issue was not in the scope of Rancher 2.8.3.
Please check the original PR for details.

…P nodes after changing the Pod Security Admission Configuration.

A new environment variable RKE_ADMISSION_CONFIG_CHECKSUM whose value is the checksum of the content of the admission configuration file is added to the env list that is set in the `kube-apiserver` container configuration, so any changes in the admission configuration file will result in a change in the container's configuration. RKE will detect the changes during reconciliation and therefore restart the kube-apiserver container on all CP nodes. The upgrade cadence is thresholded by the upgrade strategy in the cluster.

This PR also drops the unnecessary appending of env var to the cluster object which shows in the cluster.rkestate file.

Signed-off-by: Jiaqi Luo <6218999+jiaqiluo@users.noreply.github.com>
@jiaqiluo jiaqiluo requested review from a team as code owners April 9, 2024 21:29
@jiaqiluo jiaqiluo merged commit 9632a7c into rancher:release/v1.5 Apr 11, 2024
1 check passed
@jiaqiluo jiaqiluo deleted the fix-kube-apiserver branch April 11, 2024 17:16
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.

None yet

2 participants