@serverless/knative-serving

0.1.0 • Public • Published

knative-serving

Instantly create and update Knative services on top of your Kubernetes cluster with Serverless Components.

 

  1. Install
  2. Create
  3. Configure
  4. Deploy

 

1. Install

$ npm install -g serverless

2. Create

Just create a serverless.yml file

$ touch serverless.yml

Make sure that you have generated your Kubeconfig file via kubectl.

3. Configure

# serverless.yml

myKnativeService:
  component: '@serverless/knative-serving'
  inputs:
    kubeConfigPath: ../kubeconfig # default is `~/.kube/config`
    knativeGroup: serving.knative.dev # default is `serving.knative.dev`
    knativeVersion: v1alpha1 # default is `v1alpha1`
    registryAddress: 'https://container-registry.acme.com' # default is `'https://index.docker.io/v1'`
    namespace: 'default' # default is `'default'`
    name: my-knative-service
    repository: acme/some-func
    tag: latest

4. Deploy

$ serverless

New to Components?

Checkout the Serverless Components repo for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i @serverless/knative-serving

Weekly Downloads

4

Version

0.1.0

License

Apache

Unpacked Size

8.03 kB

Total Files

8

Last publish

Collaborators

  • ac360
  • serverless-main