triggermesh / knative-lambda-runtime

Running AWS Lambda Functions on Knative/Kubernetes Clusters

Home Page:https://triggermesh.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document KLR usage without tm cli and Tekton

Hi-Fi opened this issue · comments

KLR basically builds Docker image using runtime as base image, and puts that as Knative service to cluster.

If stricter security settings are used in cluster, getting Tekton to build images might be a bit annoying and it would be easier to make the build without this automation.

It would be nice to have documentation of

  1. How to build images including Lambda code without Tekton and tm (basicly pointing to those Dockerfiles that are in Tekton task).
  2. Tekton service manifest

Relates to #16

@Hi-Fi hey, please take a look at the new "Run in Docker" section of the readme which may answer some of your questions. Let me know if something is not clear about that.

That part seems great. Could that #16 info be also added there, kind of:

Above can of course also be used to build images to be run at Knative. Deployment manifest to Knative is like:

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: helloworld-lambda
spec:
  template:
    spec:
      containers:
        - image: <just build and pushed image>
# No _HANDLER env variable needed if set to Dockerfile.