← 返回首页
examples/kubeless-python-simple-function at master · serverless/examples · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Latest commit

 

History

History
 
 
 master
Top

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
View all files

README.md

Serverless Boilerplate - Kubeless - Python

Make sure kubeless and serverless are installed. See the respective installation guides:

Please see the this guide for more information.

1. Install Service Dependencies

Run npm install in this directory to download the modules from package.json.

2. Deploy

Run serverless deploy in order to deploy the function defined in serverless.yml

$ serverless deploy Serverless: Packaging service... Serverless: Deploying function: hello... Serverless: Function hello succesfully deployed

3. Invoke deployed function

Run serverless invoke --function hello --log --data "Bob"

In your terminal window you should see the response from Kubernetes.

$ sls invoke --function hello --data 'Bob' --log Serverless: Calling function: hello... -------------------------------------------------------------------- Hello Bob!

For more information on the Serverless Kubeless plugin, please see the project repository: https://github.com/serverless/serverless-kubeless.

Footer

© 2026 GitHub, Inc.