Skip to content

Commit

Permalink
make psp upgradable for kubeapi
Browse files Browse the repository at this point in the history
  • Loading branch information
galal-hussein committed Mar 29, 2018
1 parent 2284233 commit 36e37d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36e37d5

Please sign in to comment.