Well, to solve the problem, they can shift their monolithic code base to a microservice design and then each and every microservices can be considered as a container. So, all these containers can be deployed and orchestrated with the help of Kubernetes.
https://stackoverflow.blog/2020/11/23/the-macro-problem-with-microservices/