File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
content/en/docs/concepts/overview/object-management-kubectl Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,15 @@ for details.
33
33
34
34
## How to update objects
35
35
36
+ {{< warning >}}
36
37
** Warning:** Updating objects with the ` replace ` command drops all
37
38
parts of the spec not specified in the configuration file. This
38
39
should not be used with objects whose specs are partially managed
39
40
by the cluster, such as Services of type ` LoadBalancer ` , where
40
41
the ` externalIPs ` field is managed independently from the configuration
41
42
file. Independently managed fields must be copied to the configuration
42
43
file to prevent ` replace ` from dropping them.
44
+ {{< /warning >}}
43
45
44
46
You can use ` kubectl replace -f ` to update a live object according to a
45
47
configuration file.
@@ -110,7 +112,9 @@ several manual steps.
110
112
111
113
## Defining controller selectors and PodTemplate labels
112
114
113
- ** Warning** : Updating selectors on controllers is strongly discouraged.
115
+ {{< warning >}}
116
+ ** Warning:** Updating selectors on controllers is strongly discouraged.
117
+ {{< /warning >}}
114
118
115
119
The recommended approach is to define a single, immutable PodTemplate label
116
120
used only by the controller selector with no other semantic meaning.
You can’t perform that action at this time.
0 commit comments