1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 15:06:23 +00:00

make psp upgradable for kubeapi

This commit is contained in:
galal-hussein
2018-03-30 01:43:02 +02:00
parent 228423358a
commit 36e37d58f3
2 changed files with 7 additions and 0 deletions

View File

@@ -183,6 +183,12 @@ RKE will first look for the local `kube_config_cluster.yml` and then tries to up
> Note that rollback isn't supported in RKE and may lead to unxpected results
## Service Upgrade
Service can also be upgraded by changing any of the services arguments or extra args and run `rke up` again with the updated configuration file.
> Please note that changing the following arguments: `service_cluster_ip_range` or `cluster_cidr` will result in a broken cluster, because currently the network pods will not be automatically upgraded.
## RKE Config
RKE supports command `rke config` which generates a cluster config template for the user, to start using this command just write:

View File

@@ -296,6 +296,7 @@ func IsContainerUpgradable(ctx context.Context, dClient *client.Client, imageCfg
return false, err
}
if containerInspect.Config.Image != imageCfg.Image ||
!reflect.DeepEqual(containerInspect.Config.Entrypoint, imageCfg.Entrypoint) ||
!reflect.DeepEqual(containerInspect.Config.Cmd, imageCfg.Cmd) {
logrus.Debugf("[%s] Container [%s] is eligible for updgrade on host [%s]", plane, containerName, hostname)
return true, nil