Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 968 Bytes

README.MD

File metadata and controls

45 lines (30 loc) · 968 Bytes

Demo7 Knative

This is a Repository of sample in order to use AWS Lambda function with knative

Func

Build and deploy application from source code hosted in Github and push artifact to docker registry WITHOUT dockerfile

Have a look on: How to deploy your lambda with dockerfile

Prerequisite

  • Have set credential for your remote registry

Demo

Deploy buildtemplate for kanico:

kubectl apply -f ../buildtemplate/kaniko-custom-go.yaml

Deploy your application:

kubectl apply --filename service.yaml

Retrieve your knative istio ingress gateway

kubectl get svc knative-ingressgateway --namespace istio-system

Check your knative application url

kubectl get ksvc

Perfom Test:

curl -H "Host: lambda-demo7.default.example.com" http://af4<REDACTED>.amazonaws.com --data '{"Name": "Miam"}'

Remarks

Observe that your deployment will scale down to zero if your function is never used