<p>I have a big application structured with <strong><a href="https://fastapi.tiangolo.com/" rel="nofollow noreferrer">FastAPI</a></strong> (with many routers), that runs in AWS Lambda. I want to migrate it to a container inside <strong><a href="https://kubernetes.io/" rel="nofollow noreferrer">Kubernetes</a></strong>. From my research, <strong><a href="https://www.openfaas.com/" rel="nofollow noreferrer">OpenFaaS</a></strong> is a great solution.
However I can't find documentation about how to do this.</p>
<p><em>Does anyone has references or a better solution?</em></p>

Bemojo
<p>If you are using the python or Ruby</p>
<p>You can create the docker file and use it for creating the docker images and simply deploy it on Kubernetes.</p>
<pre><code>FROM ruby:2.7-alpine3.11

WORKDIR /home/app
COPY    .   .

RUN bundle install

CMD [&quot;ruby&quot;, &quot;main.rb&quot;]
</code></pre>
<p>For OpenFass they have provided good labs with documentation to create the Async function etc.</p>
<p>Labs : <a href="https://github.com/openfaas/workshop" rel="nofollow noreferrer">https://github.com/openfaas/workshop</a></p>
<p>If you are looking for <a href="https://github.com/openfaas/faas/tree/master/sample-functions" rel="nofollow noreferrer">examples</a> you can check out the official repo only : <a href="https://github.com/openfaas/faas/tree/master/sample-functions" rel="nofollow noreferrer">https://github.com/openfaas/faas/tree/master/sample-functions</a></p>
<p><strong>Extra</strong></p>
<p>There is also another good option <a href="https://knative.dev/docs/" rel="nofollow noreferrer">Knative</a> or <a href="https://kubeless.io/" rel="nofollow noreferrer">Kubeless</a></p>
<p>You can find the python Kubeless example and CI/CD example : <a href="https://github.com/harsh4870/kubeless-kubernetes-ci-cd" rel="nofollow noreferrer">https://github.com/harsh4870/kubeless-kubernetes-ci-cd</a></p>
