Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serverless-components/knative-serving
Instantly create and update Knative services on top of your Kubernetes cluster.
https://github.com/serverless-components/knative-serving
faas knative knative-serving kubernetes kubernetes-cluster serverless serverless-components serverless-framework
Last synced: about 2 months ago
JSON representation
Instantly create and update Knative services on top of your Kubernetes cluster.
- Host: GitHub
- URL: https://github.com/serverless-components/knative-serving
- Owner: serverless-components
- Created: 2019-10-18T08:40:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-22T09:47:06.000Z (over 2 years ago)
- Last Synced: 2023-04-14T20:40:27.836Z (over 1 year ago)
- Topics: faas, knative, knative-serving, kubernetes, kubernetes-cluster, serverless, serverless-components, serverless-framework
- Language: JavaScript
- Homepage: https://serverless.com
- Size: 17.6 KB
- Stars: 7
- Watchers: 2
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# knative-serving
Instantly create and update Knative services on top of your Kubernetes cluster with [Serverless Components](https://github.com/serverless/components).
1. [Install](#1-install)
2. [Create](#2-create)
3. [Configure](#3-configure)
4. [Deploy](#4-deploy)
### 1. Install
```console
$ npm install -g serverless
```### 2. Create
Just create a `serverless.yml` file
```console
$ touch serverless.yml
```Then create a `.env` file
```console
$ touch .env
```Update the `.env` file with information about your Kubernetes setup
```
# .env
KUBERNETES_ENDPOINT=https://cluster.example.com
KUBERNETES_PORT=6443
KUBERNETES_SERVICE_ACCOUNT_TOKEN=xxxx
KUBERNETES_SKIP_TLS_VERIFY=false
```### 3. Configure
```yml
# serverless.yml
org: acme
app: todo
name: todo-knative-servingcomponent: knative-serving@dev
inputs:
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
```console
$ serverless
```### New to Components?
Checkout the [Serverless Components](https://github.com/serverless/components) repo for more information.