File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -306,26 +306,18 @@ those pods.
306
306
307
307
.. _replace-config-file:
308
308
309
- Replace a Configuration File to Reflect Changes
310
- -----------------------------------------------
309
+ Replace a ConfigMap to Reflect Changes
310
+ ---------------------------------------
311
311
312
- To modify or redeploy an already-deployed configuration file, invoke the following command:
312
+ If you are unable to modify or redeploy an already-deployed configMap file using the *kubectl apply* command, invoke the following
313
+ instead:
313
314
314
315
.. code-block:: shell
315
316
316
- kubectl replace -f <filename >.yaml
317
+ kubectl replace -f <my-config-map >.yaml
317
318
318
- Use this command to propogate any changes made in the configMap to a config file.
319
-
320
-
321
- To delete and re-create a resource, add the *--force* flag:
322
-
323
- .. code-block:: shell
324
-
325
- kubectl replace --force -f <filename>.yaml
326
-
327
- This command is useful in cases where you need to update resource files that cannot be updated once
328
- initialized or want to make an immediate recursive change.
319
+ This will delete and re-create a resource. This command is useful in cases where you need to update resource files that cannot be updated
320
+ once initialized or want to make an immediate recursive change.
329
321
330
322
.. _remove-k8s-resource:
331
323
You can’t perform that action at this time.
0 commit comments