Is there a nice way to delete a specific key from a Kubernetes configmap, using kubectl?
Right now I run:
$ kubectl edit configmap myconfigmap
and then I delete the entry but I would like a solution that can be run as a script.
This works but I wonder if there is a simpler way
$ kubectl patch configmap myconfigmap --type=json -p='[{"op": "remove", "path": "/data/mykey"}]'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With