menu
To create a new secret use the command:
kubectl create secret generic <secret-name> --from-file=key.json=gcloud_keys.json -n <namespace>
 Where we are setting the key.json file from our local file gcloud_keys.json 

After configure it you can verify is working by running:
kubectl describe secret <secret_name> -n <namespace>
Or see the content with:
kubectl get secret <secret_name> -n <namespace> -o jsonpath="{.data.key\.json}" | base64 --decode

And finally configure the secret on your deploy files.