I deployed a function to kubeless and trying to get lambda-proxy format response upon invoking the function. But it sends in the lambda format. Upon using sls offline
, it works as intended in the lambda-proxy format. How to configure lambda-proxy format in kubeless?
Below is my serverless.yml
service: test
package:
individually: true # Optimization / Individual packaging per function
plugins:
# serverless-webpack should precede serverless-offline as the order is important.
- serverless-webpack
- serverless-offline
- serverless-kubeless
provider:
name: kubeless
runtime: nodejs12
functions:
hello:
handler: hello.handler
events:
- http:
method: post
path: sls/hello/v1
custom:
# https://serverless.com/plugins/serverless-webpack/
webpack:
webpackConfig: 'webpack.config.js' # Name of webpack configuration file
packager: 'yarn' # Packager that will be used to package your external modules
includeModules: true # enable auto-packing of external modules