serverless / serverless-kubeless

This plugin enables support for Kubeless within the Serverless Framework.
Apache License 2.0
303 stars 81 forks source link

environment variables support #88

Closed skunkwerk closed 6 years ago

skunkwerk commented 6 years ago

I didn't see any documentation for serverless variables, such as exist with AWS, example:

provider: name:aws environment: PUBSUB_KEY: pubsub_admin_key.json EVENTS_TOPIC: events

Is the passing of environment variables in this manner supported?

thanks

skunkwerk commented 6 years ago

This seems to be supported via k8s variables, but isn't documented. Would be great to add this section to the serverless docs.

sebgoa commented 6 years ago

right, requirements.txt and env variables, as well as function timeout and memory limit are all supported, but the docs are lagging

andresmgot commented 6 years ago

The same than #94: Documentation updates has been merged in serverless/serverless#4666

JSNHARSHA commented 6 years ago

The Environment variables described under 'Provider' are still not accessible in the function handler. Is this still an issue?

andresmgot commented 6 years ago

@JSNHARSHA that should indeed work. Are you using the latest version of the serverless-plugin? Can you paste here the yaml you are trying to deploy?