To fix the error, convert your JSON object into a string before including it in the ConfigMap. Kubernetes expects each value in the data
section to be a string. If you’re using Ansible, you can use the to_nice_json
filter for this conversion. Make sure to properly quote and format the string in your configuration.
Cheers,
Tim