diff --git a/README.md b/README.md index 9bd31e34..0ee8d451 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/docker/docker.go b/docker/docker.go index bf9e7595..845f4781 100644 --- a/docker/docker.go +++ b/docker/docker.go @@ -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