Retrieving a configmap field with a dot in the name in kubernetes

Problem

You want to get a field from a kubernetes configmap using json but the name contains a dot (ie ca.crt)

Solution

You can use the following (escaping the dot)

kubectl get configmap <configmap> o jsonpath='{.data.ca\.crt}’