Skip to content

Example k8s development setup for flask microservices

License

Notifications You must be signed in to change notification settings

jaykv/devspace-flask

Repository files navigation

devspace-flask

Starter project to develop and deploy flask microservices on k8s using devspace.

Pre-reqs:

  1. kubernetes cluster (kind/minikube/k3s etc.)
  2. docker
  3. kubectl
  4. devspace

Development

  • devspace dev for dev
  • devspace ui for monitoring
  • devspace run bdi to build base app image

Deployment

  1. devspace deploy
  2. minikube tunnel
  3. Open http://localhost

TODO

  • Build a k8s service to expose app without port forwarding
  • Setup database service
  • Build more flask services
  • Add starter frontend app
  • Setup nginx
  • Templatize devspace.yaml