This is a Repository of sample in order to build form source with kanico and knative
Build and deploy application from source code hosted in Github and push artifact to docker registry
- Have set credential for your remote registry
Deploy buildtemplate for kanico:
kubectl apply -f ../buildtemplate/kaniko.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: app-from-source.default.example.com" http://af4<REDACTED>.amazonaws.com
Observe that your deployment will scale down to zero if your function is never used