Read this on the main serverless docs site¶
Knative - deploy¶
The serverless deploy command deploys your entire service.
Options¶
--configor-cName of your configuration file, if other thanserverless.yml|.yaml|.js|.json.--stageor-sThe stage in your service that you want to deploy to.
Artifacts¶
After the serverless deploy command runs, the Framework runs serverless package in the background first then deploys the service. During the deployment, the Framework creates a Kubernetes namespace (called sls-{service}-{stage}) which is used to host all your Kubernetes / Knative resources.
Examples¶
Deployment without stage options¶
This is the simplest deployment usage possible. With this command Serverless will deploy your service to the defined provider in the default stage (dev).
Deployment with stage option¶
With this example we've defined that we want our service to be deployed to the prod stage.