Update _index.md

This commit is contained in:
Logan
2019-03-11 16:10:04 +08:00
committed by Denise Schannon
parent d66ca3af22
commit e153e06186
@@ -7,7 +7,7 @@ aliases:
_Available as of v2.2.0_
Force upgrade will force Rancher catalog apps to delete and recreate resources if needed during the upgrade.
In Kubernetes, some fields are designed to be immutable or cannot be updated directly. Force upgrade will force Rancher catalog apps to delete and recreate resources if needed during the upgrade.
### How to Force-upgrade Catalog Apps
@@ -15,17 +15,3 @@ Force upgrade will force Rancher catalog apps to delete and recreate resources i
For both upgrade and rollback, you can select the `Delete and recreate resources if needed during the upgrade` checkbox at the bottom of the catalog app details page to force-upgrade the app.
![force-upgrade.png]({{< baseurl >}}/img/rancher/catalog/force-upgrade.png)
### When to Use The Force-upgrade and Cautions
In Kubernetes, some fields are designed to be immutable or cannot be updated directly, e.g. changing Service type from NodePort to ClusterIP will result in:
```
Error: UPGRADE FAILED: Service "docker-registry" is invalid: spec.ports[0].nodePort: Forbidden: may not be used when `type` is 'ClusterIP'
```
and `force-upgrade` will be recreating resources for immutable fields when force is applied.
>**Cautions:**
>
>- Don't force-upgrade resources that contain persistent data, e.g. Statefulset or Deployment with Bounded PVC.