replace operation updates the specified label from “api” to “web”.
──────────────────────────────
Updating a Label Using a Strategic Merge Patch
──────────────────────────────
Alternatively, you can update the label using a Strategic Merge Patch stored in a separate file (e.g., label-patch.yaml). In your kustomization.yaml, reference the patch file as shown below:
add operation to insert a new key “org” under the labels dictionary. After applying the patch, the labels section will appear as:
For more detailed information on Kubernetes configuration management, visit the Kubernetes Documentation.