Kubectl patch: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:


=Usage Examples=
=Usage Examples=
==Delete a Field==
<syntaxhighlight lang='bash'>
kubectl patch pv my-pv -p '{"spec.claimRef":{}}'
</syntaxhighlight>

Revision as of 18:52, 17 May 2021

External

Internal

Overview

kubectl patch supports strategic merge patch.

Usage Examples

Delete a Field

kubectl patch pv my-pv -p '{"spec.claimRef":{}}'