All that serverless and containers thing is nice. If you are starting a new business and building

Rolanddustin
7 min readDec 8, 2020

Should we have migrated to Kubernetes? Yes, absolutely. There are several benefits of using Kubernetes — service-discovery, better cost management, resilience, governance, abstraction over infrastructure of cloud infrastructure to name a few. We are reaping all these benefits today as well. But that was not our primary goal when we started and the self-imposed pressure and pain of delivering the way we did was perhaps unnecessary.

We will see in this blog post that migration and operations on Kubernetes are not the same as deploying on cloud VMs or bare metals. There is a learning curve for your cloud engineering and development teams. It might be worth it for your team to go through it. But do you need to do that now is the question. You must try to answer that clearly.

https://ituseu.itu.edu.tr/ktx/c-v-d1.html
https://ituseu.itu.edu.tr/ktx/c-v-d2.html
https://ituseu.itu.edu.tr/ktx/c-v-d3.html
https://ituseu.itu.edu.tr/ktx/c-v-d4.html
https://ituseu.itu.edu.tr/ktx/c-v-d5.html
https://ituseu.itu.edu.tr/ktx/c-v-d6.html
https://ituseu.itu.edu.tr/ktx/c-v-d7.html
https://ituseu.itu.edu.tr/ktx/c-v-e1.html
https://ituseu.itu.edu.tr/ktx/c-v-e2.html
https://ituseu.itu.edu.tr/ktx/c-v-e3.html
https://ituseu.itu.edu.tr/ktx/c-v-e4.html
https://ituseu.itu.edu.tr/ktx/c-v-e5.html
https://ituseu.itu.edu.tr/ktx/c-v-e6.html
https://ituseu.itu.edu.tr/ktx/c-v-e7.html
https://ituseu.itu.edu.tr/ktx/c-v-h1.html
https://ituseu.itu.edu.tr/ktx/c-v-h2.html
https://ituseu.itu.edu.tr/ktx/c-v-h3.html
https://ituseu.itu.edu.tr/ktx/c-v-h4.html
https://ituseu.itu.edu.tr/ktx/c-v-h5.html
https://ituseu.itu.edu.tr/ktx/c-v-h6.html
https://ituseu.itu.edu.tr/ktx/c-v-h7.html
https://ituseu.itu.edu.tr/ktx/c-v-i1.html
https://ituseu.itu.edu.tr/ktx/c-v-i2.html
https://ituseu.itu.edu.tr/ktx/c-v-i3.html
https://ituseu.itu.edu.tr/ktx/c-v-i4.html
https://ituseu.itu.edu.tr/ktx/c-v-i5.html
https://ituseu.itu.edu.tr/ktx/c-v-i6.html
https://ituseu.itu.edu.tr/ktx/c-v-i8.html
https://ituseu.itu.edu.tr/ktx/c-v-k1.html
https://ituseu.itu.edu.tr/ktx/c-v-k2.html
https://ituseu.itu.edu.tr/ktx/c-v-k3.html
https://ituseu.itu.edu.tr/ktx/c-v-k4.html
https://ituseu.itu.edu.tr/ktx/c-v-k5.html
https://ituseu.itu.edu.tr/ktx/c-v-k6.html
https://extremepita.com/ktx/c-v-d1.html
https://extremepita.com/ktx/c-v-d2.html
https://extremepita.com/ktx/c-v-d3.html
https://extremepita.com/ktx/c-v-d4.html
https://extremepita.com/ktx/c-v-d5.html
https://extremepita.com/ktx/c-v-d6.html
https://extremepita.com/ktx/c-v-d7.html
https://extremepita.com/ktx/c-v-e1.html
https://extremepita.com/ktx/c-v-e2.html
https://extremepita.com/ktx/c-v-e3.html
https://extremepita.com/ktx/c-v-e4.html
https://extremepita.com/ktx/c-v-e5.html
https://extremepita.com/ktx/c-v-e6.html
https://extremepita.com/ktx/c-v-e7.html
https://extremepita.com/ktx/c-v-h1.html
https://extremepita.com/ktx/c-v-h2.html
https://extremepita.com/ktx/c-v-h3.html
https://extremepita.com/ktx/c-v-h4.html
https://extremepita.com/ktx/c-v-h5.html
https://extremepita.com/ktx/c-v-h6.html
https://extremepita.com/ktx/c-v-h7.html
https://extremepita.com/ktx/c-v-i1.html
https://extremepita.com/ktx/c-v-i2.html
https://extremepita.com/ktx/c-v-i3.html
https://extremepita.com/ktx/c-v-i4.html
https://extremepita.com/ktx/c-v-i5.html
https://extremepita.com/ktx/c-v-i6.html
https://extremepita.com/ktx/c-v-i8.html
https://extremepita.com/ktx/c-v-k1.html
https://extremepita.com/ktx/c-v-k2.html
https://extremepita.com/ktx/c-v-k3.html
https://extremepita.com/ktx/c-v-k4.html
https://extremepita.com/ktx/c-v-k5.html
https://extremepita.com/ktx/c-v-k6.html
https://abcleaning.nl/ktx/c-v-d1.html
https://abcleaning.nl/ktx/c-v-d2.html
https://abcleaning.nl/ktx/c-v-d3.html
https://abcleaning.nl/ktx/c-v-d4.html
https://abcleaning.nl/ktx/c-v-d5.html
https://abcleaning.nl/ktx/c-v-d6.html
https://abcleaning.nl/ktx/c-v-d7.html
https://abcleaning.nl/ktx/c-v-e1.html
https://abcleaning.nl/ktx/c-v-e2.html
https://abcleaning.nl/ktx/c-v-e3.html
https://abcleaning.nl/ktx/c-v-e4.html
https://abcleaning.nl/ktx/c-v-e5.html
https://abcleaning.nl/ktx/c-v-e6.html
https://abcleaning.nl/ktx/c-v-e7.html
https://abcleaning.nl/ktx/c-v-h1.html
https://abcleaning.nl/ktx/c-v-h2.html
https://abcleaning.nl/ktx/c-v-h3.html
https://abcleaning.nl/ktx/c-v-h4.html
https://abcleaning.nl/ktx/c-v-h5.html
https://abcleaning.nl/ktx/c-v-h6.html
https://abcleaning.nl/ktx/c-v-h7.html
https://abcleaning.nl/ktx/c-v-i1.html
https://abcleaning.nl/ktx/c-v-i2.html
https://abcleaning.nl/ktx/c-v-i3.html
https://abcleaning.nl/ktx/c-v-i4.html
https://abcleaning.nl/ktx/c-v-i5.html
https://abcleaning.nl/ktx/c-v-i6.html
https://abcleaning.nl/ktx/c-v-i8.html
https://abcleaning.nl/ktx/c-v-k1.html
https://abcleaning.nl/ktx/c-v-k2.html
https://abcleaning.nl/ktx/c-v-k3.html
https://abcleaning.nl/ktx/c-v-k4.html
https://abcleaning.nl/ktx/c-v-k5.html
https://abcleaning.nl/ktx/c-v-k6.html
https://www.kmea.org/ktx/c-v-d1.html
https://www.kmea.org/ktx/c-v-d2.html
https://www.kmea.org/ktx/c-v-d3.html
https://www.kmea.org/ktx/c-v-d4.html
https://www.kmea.org/ktx/c-v-d5.html
https://www.kmea.org/ktx/c-v-d6.html
https://www.kmea.org/ktx/c-v-d7.html
https://www.kmea.org/ktx/c-v-e1.html
https://www.kmea.org/ktx/c-v-e2.html
https://www.kmea.org/ktx/c-v-e3.html
https://www.kmea.org/ktx/c-v-e4.html
https://www.kmea.org/ktx/c-v-e5.html
https://www.kmea.org/ktx/c-v-e6.html
https://www.kmea.org/ktx/c-v-e7.html
https://www.kmea.org/ktx/c-v-h1.html
https://www.kmea.org/ktx/c-v-h2.html
https://www.kmea.org/ktx/c-v-h3.html
https://www.kmea.org/ktx/c-v-h4.html
https://www.kmea.org/ktx/c-v-h5.html
https://www.kmea.org/ktx/c-v-h6.html
https://www.kmea.org/ktx/c-v-h7.html
https://www.kmea.org/ktx/c-v-i1.html
https://www.kmea.org/ktx/c-v-i2.html
https://www.kmea.org/ktx/c-v-i3.html
https://www.kmea.org/ktx/c-v-i4.html
https://www.kmea.org/ktx/c-v-i5.html
https://www.kmea.org/ktx/c-v-i6.html
https://www.kmea.org/ktx/c-v-i8.html
https://www.kmea.org/ktx/c-v-k1.html
https://www.kmea.org/ktx/c-v-k2.html
https://www.kmea.org/ktx/c-v-k3.html
https://www.kmea.org/ktx/c-v-k4.html
https://www.kmea.org/ktx/c-v-k5.html
https://www.kmea.org/ktx/c-v-k6.html
https://www.eventbrite.com/e/streamsmatch-bills-v-49ers-live-07-feb-2020-tickets-131966107179
https://www.eventbrite.com/e/total-sportek-49ers-v-bills-live-broadcast-2020-tickets-131966121221
https://www.eventbrite.com/e/streamsnfl-bills-v-49ers-live-07-feb-2020-tickets-131966392031
https://www.eventbrite.com/e/streamssan-francisco-49ers-v-buffalo-live-tickets-131966400055
https://www.eventbrite.com/e/live-49ers-v-bills-live-broadcast-2020-tickets-131966406073
https://www.eventbrite.com/e/streams-49ers-v-bills-live-broadcast-2020-tickets-131966512391
https://www.eventbrite.com/e/streamslive-bills-v-49ers-live-07-feb-2020-tickets-131966897543
https://www.eventbrite.com/e/streams-49ers-v-bills-live-broadcast-2020-tickets-131966901555
https://www.eventbrite.com/e/live-49ers-v-bills-live-broadcast-tv-2020-tickets-131967033951

If there’s one thing people who used to live in Williamsburg and now live in the Hudson Valley love, it’s talking about the car they bought when they left the city and had to start driving to Stop & Shop. If there’s another thing they love, it’s taking you to all the local restaurants and bars when you come visit and crash on their new couch in their beautifully restored farmhouse outside of Hudson. Thank them for their hospitality with a gay candle from local establishment Lil Deb’s Oasis, a very good restaurant where I once sat silently at a table of 7 people for two hours because I ate an edible an hour before dinner.

Out-of-the-box Kubernetes is never enough, for almost anyone. It’s a great playground to learn and explore. But you are most likely going to need more infrastructural components on top and tie them well together as a solution for applications to make it more meaningful for your developers. Often this bundle of Kubernetes with additional infrastructural components and policies is called Internal Kubernetes Platform. This is as an extremely useful paradigm and there are several ways to extend Kubernetes.

Logs have always been a big problem for us. We have struggled to create a stable logging platform using ELK. We find ELK full of features that are not realistically used by our team. Those features come at a cost. Also, we think there are inherent challenges in using Elasticsearch for logs, making it an expensive solution for logs. We finalized on Loki by Grafana. It’s simple. It has necessary features for our team’s needs. It’s extremely cost-effective. But most importantly, it has a superior UX owing to it’s query language being very similar to PromQL. Also, it works well with Grafana. So that brings the entire metrics monitoring and logging experience together in one user interface.We made some mistakes on this front. Our primary reason to migrate to Kubernetes was to build a continuous integration infrastructure that could assist us with rapid re-architecture of our microservices in which a lot of architecture debt had crept in over the years. Most new features required touching multiple code bases and hence, development and testing all of them together would slow us down. We felt the need to be able to provision an integrated environment for every developer and every change to assist with faster development and testing cycles without coordinating who gets the “shared stage environment”.One big learning for us was we could have taken a different and lesser resistant path to adopting Kubernetes. We were just bought into Kubernetes as the only solution that we didn’t even care to evaluate other options.

It took us almost 1.5 years to stabilize this complex CI setup by building additional tooling, telemetry and redoing how every application is deployed. For the sake of dev/prod parity, we had to deploy all these micro-services to production as well or else just the drift between the infrastructure and deployment setup will make the applications hard to reason about for developers and would have made ops for developers a nightmare.

If you are already deploying on cloud VMs or perhaps another PaaS, why are you really considering migrating to Kubernetes from your existing infrastructure? Are you confident that Kubernetes is the only way to solve your problems? You must be clear about your motivations as migrating an existing infrastructure to Kubernetes is a big undertaking.

We finalized on Prometheus. Prometheus is almost a defacto metrics infrastructure today. CNCF and Kubernetes love it very much. It works really well within the Grafana ecosystem. And we love Grafana! Our only problem was that we were using InfluxDB. We have decided to migrate away from InfluxDB and totally commit to Prometheus.

We do this today very well. We provision 21 micro-services in an integrated environment under 8 minutes today on Kubernetes. Any developer can use our home-grown tool to do this. We also provision a subset of this environment for every pull request created for any of these 21 micro-services. The entire test-cycle (provisioning the environment and running tests) takes under 12 minutes. It might feel like awfully long but it prevents us from shipping bad changes in the architectural mess we are currently in.

Metrics, logs, service discovery, distributed tracing, configuration and secret management, CI/CD, local development experience, auto-scaling on custom metrics are all things to take care of and make a decision. These are only some of the things that we are calling out. There are definitely more decisions to make and more infrastructure to set up. An important area is how are your developers going to work with Kubernetes resources and manifests — more on this later in this blog post.Even if you offload operating Kubernetes to a managed Kubernetes service such as EKS, GKE or AKS, deploying and operating applications on Kubernetes properly also has a learning curve. Your development team should be up for the challenge. A lot of benefits can only be realised if your team follows the DevOps philosophy. If you have central sysadmin teams writing manifests for applications developed by other teams, we personally see lesser benefit of Kubernetes from the perspective of DevOps. Of course, there are numerous other benefits that you can choose Kubernetes for, for example cost, faster experimentation, faster auto-scaling, resilience, etc.We have mixed feelings about this topic. In retrospect, we think we made our problem of solving for continuous integration worse because the complexity of pushing all microservices to production for dev/prod parity made the challenge of achieving faster CI builds a lot more complex and difficult. Before Kubernetes, we were using Ansible with Hashicorp Consul and Vault for infrastructure provisioning, configuration management and deployments. Was it slow? Yes, absolutely. But we think we could have introduced service discovery with Consul and optimized Ansible deployments a bit to get close enough to our goal in a reasonably shorter time.

--

--