Here's my thought on Can't create Secret in Kubernetes: illegal base64 data at input - Stack Overflow
In order to use k8s secrets manifest you first need to encode the data values.
echo -n 'mega_secret_key' | openssl base64
This post was a thought by Waylon Walker see all my thoughts at https://waylonwalker.com/thoughts