<p>Let's say I have a flask app, a PostgreSQL, and a Redis app. what is the best practice way to develop those apps locally which then later be deployed to Kubernetes. </p>

<p>Because, I have tried to develop in minikube with ksync, but I get difficulties in getting detailed debug log information. </p>

<p>Any ideas?</p>

Bilal Bayasut
<p>What we do with our systems is that we develop and test them locally. I am not very knowledgeable with Flask and ksyncy, but say for example, you are using <a href="https://www.lagomframework.com/" rel="nofollow noreferrer">Lagom Microservices Framework</a> in Java, you run you app locally using the SBT shell where you can view all your logs. We then automate the deployment using <a href="https://developer.lightbend.com/docs/lightbend-orchestration/current/" rel="nofollow noreferrer">LightBend Orchestration</a>.</p>

<p>When you then decide to test the app on Kubernetes, you can choose to use minikube, but you have to configure the logging properly. You can configure centralised logging for Kubernetes using the <a href="https://blog.ptrk.io/how-to-deploy-an-efk-stack-to-kubernetes/" rel="nofollow noreferrer">EFK</a> stack. This will collect all the logs from the various components of your app and store them in Elastic Search. You can then view these logs using The Kibana Dashboard. You can do a lot with the dashboard, you can view logs for a given period, or search logs by k8s namespace, or by container. </p>
