Tool to help you create and update secrets in kubernetes
cat .env.production | kubernetes-secret -n test -ns default | kubectl create -f -
You can also load file contents by specifying a special prefix PEM=>>>file.pem.
. You can define your own prefix by passing -f ###
echo -e "key-1,value 1\nkey-2,value 2\n" | kubernetes-secret -n test -ns test -d ',' | kubectl create -f -
You can download binary releases for linux, macos and windows here