1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-10 05:43:56 +00:00
rke/cluster
Jiaqi Luo 2e767c8c28 This PR fixes the issue that kube-apiserver does not restart in all CP 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>
2024-04-09 14:24:17 -07:00
..
addons.go fix node lookup for external aws 2023-11-28 08:37:46 -08:00
certificates.go Do not rewrite SELinux labels on volume mounts 2021-11-19 22:39:56 +01:00
cluster.go fix the bug where the value of delete_local_data is dropped by the ghodssyaml.Marshal function due to the same field has different names in YAML tag and JSON tag 2024-02-28 17:45:56 -07:00
defaults.go Add ACI CNI 6041 variables 2024-03-01 04:27:27 -08:00
encryption.go Do not rewrite SELinux labels on volume mounts 2021-11-19 22:39:56 +01:00
etcd_test.go changed etcd restoreImage to rke-tools for etcd >=3.5.7 2023-09-27 15:39:34 +05:30
etcd.go changed etcd restoreImage to rke-tools for etcd >=3.5.7 2023-09-27 15:39:34 +05:30
file-deployer.go Do not rewrite SELinux labels on volume mounts 2021-11-19 22:39:56 +01:00
hosts.go set the default PodSecurityConfiguration value only if the cluster's k8s version is at least 1.23 2023-07-10 17:13:46 -07:00
local.go Remove references to rancher/types 2020-07-11 23:29:33 -07:00
logs.go Switch all concurrent tasks to use worker pool 2018-10-18 13:24:59 -07:00
network.go Add ACI CNI 6041 variables 2024-03-01 04:27:27 -08:00
plan.go This PR fixes the issue that kube-apiserver does not restart in all CP nodes after changing the Pod Security Admission Configuration. 2024-04-09 14:24:17 -07:00
reconcile.go This PR fixes the issue that kube-apiserver does not restart in all CP nodes after changing the Pod Security Admission Configuration. 2024-04-09 14:24:17 -07:00
remove.go fix node lookup for external aws 2023-11-28 08:37:46 -08:00
selinux.go Do not rewrite SELinux labels on volume mounts 2021-11-19 22:39:56 +01:00
state.go Replace deprecated io/ioutil 2023-08-04 15:24:27 +02:00
validation.go Add warning log about weave deprecation 2023-09-19 12:34:45 +02:00