...
Get the name of the pod of interest: kubectl get pods
To check current configuration of pod: kubectl describe pod/<name of pod>
Modify and save the memory in the yaml: kubectl edit cdapmasters.cdap.cdap.io/<instance<instance-name> -o yaml
Check if the pod restarted successfully: kubectl get pods
...