Will run kubectl create to generate the manifest, and kubectl apply to create it if it didn't exist or update it if it already existed.
kubectl create configmap <name-of-configmap> --from-file=<name-of-key>=<name-of-file> --namespace=<namespace> -o yaml --dry-run=client | kubectl apply -f -