Kubectl patch

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

kubectl patch supports strategic merge patch.

Usage Examples

Delete a Field

Unbind a PVC from a PV by deleting the PV's claimRef:

kubectl patch pv my-pv --type=json -p='[{"op": "remove", "path": "/spec/claimRef"}]'