Kubernetes + AWS Lambda

I currently have an API service running on AWS Lambda, but it’s getting expensive due to high AWS costs. My aim is to replace 95 % of the usage with a cluster of servers and still handle peaks with Lambda. So, I would need a hybrid setup where the load balancer sends the requests to Lambda when the cluster can’t handle them.

I don’t have much experience with this kind of setup, so I’m asking suggestions. Something that comes to mind is a load balancer + kubernetes + Lambda, but I’m not sure if that’s possible.

Do you think I could achieve this with Kubernetes/Microk8s? And how exactly?

Thanks!

So, maybe this is not possible out of the box?

Now the plan is to make a custom load balancer that will send the requests to the k8s cluster first, and when that gets overworked, will send them to AWS Lambda.

Any suggestions what would be the best platforms (nginx, something else) to do this with?