O'Reilly logo

DevOps for Serverless Applications by Shashikant Bangera

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying the function

As the required files were created through a template, we can modify them as per our needs and then simply deploy and invoke them when we need them. Let's go ahead and deploy them using serverless, then npm install will get the required dependencies for serverless, such as the kubeless-serverless plugin, and then we can deploy the function, as shown in the following code: 

$ npm install$ serverless deploy -vServerless: Packaging service...Serverless: Excluding development dependencies...Serverless: Deploying function bikesearch...Serverless: Pods status: {"waiting":{"reason":"PodInitializing"}}Serverless: Function bikesearch successfully deployedServerless: Skipping ingress rule generation

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required