The best practice for developing app locally which then be deployed to Kubernetes

10/31/2018

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.

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

Any ideas?

-- Bilal Bayasut
kubernetes
minikube

3 Answers

11/9/2018

There are multiple solutions for this (aka GitOps with Kubernetes):

-- Rico
Source: StackOverflow

11/9/2018

I think the solution is using skaffold

-- Bilal Bayasut
Source: StackOverflow

10/31/2018

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 Lagom Microservices Framework in Java, you run you app locally using the SBT shell where you can view all your logs. We then automate the deployment using LightBend Orchestration.

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 EFK 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.

-- Alfred Samanga
Source: StackOverflow