Call httpie with the credentials and the apiserver base URL of the current kubeconfig context.
- Install httpie.
- Install the kubectl plugin manager krew
- Install this plugin:
kubectl krew install http
.
kubectl http --help
kubectl http -v /api/v1/namespaces/default/configmaps/foo
kubectl http put /api/v1/namespaces/default/configmaps/foo < configmap.yaml