Add warning about using kubectl replace

This commit is contained in:
Phillip Wittrock
2017-04-05 13:28:28 -07:00
committed by Andrew Chen
parent 983f778c9b
commit 7b1c8f8e91
2 changed files with 20 additions and 10 deletions
@@ -34,6 +34,14 @@ for details.
## How to update objects
**Warning:** Updating objects with the `replace` command drops all
parts of the spec not specified in the configuration file. This
should not be used with objects whose specs are partially managed
by the cluster, such as Services of type `LoadBalancer`, where
the `externalIPs` field is managed independently from the configuration
file. Independently managed fields must be copied to the configuration
file to prevent `replace` from dropping them.
You can use `kubectl replace -f` to update a live object according to a
configuration file.