Skip to content

Rodrigo Urubatan – About Code

Helping ruby developers to use the best tools for each job so they can solve hard problems, with less bugs and have more free time.

Menu
  • Home
  • My last presentations
  • About
  • Privacy Policy
Menu

When Kubernetes is not the right choice?

Posted on 2020-03-17 by Rodrigo Urubatan

As with anything in the technology field, there is no one size fits all solution…

And even kubernetes solving a big amount of problems you might have when exposing and scaling your application, it also brings some problems that you need to weight before deciding if this is the right technology for you or not.

One of the things to consider, is that kubernetes is built to support stateless services, sure it supports drive mounts, but you’ll have many problems with pods waiting for long hours to stop waiting for the drives to dismount, or pods waiting to start because no available node is compatible with the drive mount it needs.

Another thing that might be a red-flag is that kubernetes might decide that a pod needs to move to another node due to high cpu or memory usage, and if your application doesn’t have many copies of each pod running, this might cause some minor service outage (unless you combine this with the problem related above, then it might become a huge problem)

A third red-flag for kubernetes might be if you do not have enough hardware resources, for example if you work in a small project or company, and your hardware is a little more than your application needs to run, the extra load that kubernetes need to run the additional resources, DNS, load balancing, kubelet, … might cause you problems for your application, because nothing of that is free.

One other thing is that if you want to deploy your own kubernetes server, you need to study a lot before doing that, it is way easier to pay for a hosted service from Google, AWS, Azure, … Kubernetes has a lot of moving parts, and is really complex to maintain.

But if none of these problems apply to you, you can read the other posts about how to package and deploy your application to kubernetes:

  1. How to use docker to to have an uniform development, test and production environment
  2. First pod
  3. A service to access your pod
  4. Horizontal autoscaling
  5. Ingress reverse proxy

Of course these are not the only “red flags” for kubernetes, but if any of these apply to you, you might want to consider other solutions for your deployment, maybe docker swarm is enough for you, maybe you do not need containers at all, …

If you have any questions or comments about this, please leave a comment or talk direct to me through any social network 😀

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent posts

  • I see Dead Jobs everywhere (sidekiq DeadSet)
  • Quick tips that help: rails notes
  • Ruby 3.2.0 released with WASI, YJIT, RegExp improvements, …
  • Rubyconf Thailand quick summary and slides
  • Testing download contents with Cucumber+Capybara and chromedriver

Comments

  1. When Kubernetes is not the right choice? | Rodrigo Urubatan - About Code on Rails from “zero” to kubernetes – first pod
  2. When Kubernetes is not the right choice? | Rodrigo Urubatan - About Code on How to use docker to have an uniform development environment for your rails project
  3. Rails from "zero" to kubernetes – ingress reverse proxy | Rodrigo Urubatan - About Code on Rails from “zero” to kubernetes – a service to access your pod
  4. Rails from "zero" to kubernetes – horizontal autoscaling | Rodrigo Urubatan - About Code on Rails from “zero” to kubernetes – a service to access your pod
  5. Jeronimo on 6 Lessons From CrossFit That will help your developer career (Or any other career in the matter of fact)

Arquives

  • February 2023
  • January 2023
  • December 2022
  • June 2021
  • March 2020
  • January 2020
  • July 2019
  • June 2019
  • May 2019
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • February 2018
  • January 2018
  • November 2017
  • August 2015
  • August 2014
  • July 2014
  • August 2007

Categories

  • articles
  • cfp
  • firebase
  • gems
  • git
  • opinion
  • presentations
  • projects
  • rails6
  • ruby
  • Sem categoria
  • server-api
  • Uncategorized
© 2023 Rodrigo Urubatan – About Code | Powered by Minimalist Blog WordPress Theme