How to pass environment variables to serverless application using Knative?

Hello,

I am trying out the Serverless application deployment using Knative as documented here: https://gitlab.com/help/user/project/clusters/serverless/index#deploying-serverless-applications

However, I am a bit confused on how to properly create secrets and then consume it within the containers when deploying serverless applications.

Any help here would be much appreciated.

Thanks, Munjal