Skip to content

Commit 517cefb

Browse files
Tahiya Chowdhuryjwilliams-mongo
authored andcommitted
(DOCSP-4987): Add troubleshooting entry for replacing configmaps
1 parent 4883e36 commit 517cefb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

source/reference/troubleshooting.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,20 @@ those pods.
304304
To learn more about this issue, see
305305
`Kubernetes Issue 67250 <https://github.com/kubernetes/kubernetes/issues/67250>`__.
306306

307+
.. _replace-config-file:
308+
309+
Force Replace a Config File to Reflect Changes
310+
----------------------------------------------
311+
312+
Invoke the following command to replace a config file:
313+
314+
.. code-block:: shell
315+
316+
kubectl replace -f <configfilename>.yaml
317+
318+
This deletes and re-creates the resource. It is useful in cases where you need to update resource fields that cannot be updated once
319+
initialized, or you just want to propagate changes made in the configMap to other config files.
320+
307321
.. _remove-k8s-resource:
308322

309323
Remove a |k8s-mdbrsc|

0 commit comments

Comments
 (0)