Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Kubernetes + Docker + AWS = Azure + Service Fabric?

I see advantages of Kubernetes which include Rolling Deployments, Automatic Health check monitoring, and swinging a new server to action when an existing one fails. I also do understand that Kubernetes is not just for Docker.

So, that brings a couple of questions!

When Azure, and Service Fabric could provide all that I said (and beyond), why would I need Kubernetes?

Would it make sense for one to use Kubernetes along with Service Fabric for large scale deployments on Azure?

like image 703
CodeMad Avatar asked Jan 30 '18 11:01

CodeMad


People also ask

Is Kubernetes a service Fabric?

Service Fabric, the biggest difference between the two is that AKS only works with Docker-first applications using Kubernetes. Service Fabric is geared toward microservices and supports a number of different runtime strategies. Service Fabric can deploy Docker and Windows Server containers.

Does Azure service Fabric use Docker?

Service Fabric supports the deployment of Docker containers on Linux, and Windows Server containers on Windows Server 2016 and later, along with support for Hyper-V isolation mode.

What is Azure service Fabric?

Azure Service Fabric is a distributed systems platform that makes it easy to package, deploy, and manage scalable and reliable microservices and containers. Service Fabric also addresses the significant challenges in developing and managing cloud native applications.

Is Kubernetes part of Azure?

Azure Kubernetes Service (AKS) offers the quickest way to start developing and deploying cloud-native apps, with built-in code-to-cloud pipelines and guardrails. Get unified management and governance for on-premises, edge, and multicloud Kubernetes clusters.


1 Answers

Let's look first at the similarities between Kubernetes and Service Fabric.

  • They are both cloud-agnostic clustering, orchestration, and scheduling software.
  • They can both be deployed manually, by you, to any set of VMs, anywhere.
  • There are "managed" offerings for both, meaning a cloud provider like Azure or Google Cloud will host a cluster for you, but generally you still own the VMs.
  • They both deploy and manage containers.
  • They both have rich management operations, such as rolling upgrades, health checks, and self-healing capabilities.

That's a fairly high-level view but should give you an idea of what and where you can run with each.

Now let's look where they're different. There are a ton of small differences, but I want to focus on two of the really big conceptual differences:

  • Application model:

    • Service Fabric allows you to orchestrate any arbitrary container or EXE (whether that's a small node.js app or a giant legacy application), and in that sense it is similar to Kubernetes. But overall it is more focused on application development specifically, with programming models that are integrated with the platform. In this respect, it is more closely comparable to Cloud Foundry than Kubernetes.
    • Kubernetes is focused more on orchestrating infrastructure for an application. It doesn't really focus on how you write your application. That's up to you to figure out; Kubernetes just wants a container to run, doesn't matter what's in it.
  • State management

    • Kubernetes allows you to deploy stateful software to it, by providing persistent disk storage volumes to containers and assigning unique identifiers to pods. This lets you deploy things like ZooKeeper or MySQL.
    • Service Fabric is stateful software. Service Fabric is designed as a stateful, data-aware platform. It provides HA state and scale-out primitives. So while Kubernetes allows you to deploy stateful things, Service Fabric allows you to build stateful things. This is one of the key differences that's often overlooked. For example:
      • On Kubernetes, you can deploy ZooKeeper.
      • On Service Fabric, you can actually build ZooKeeper yourself using Service Fabric's replication and leader election primitives.
      • Kubernetes uses etcd for distributed, reliable storage about the state of the cluster.
      • Service Fabric doesn't need etcd, because Service Fabric itself is a distributed, reliable storage platform. The system services in Service Fabric make use of this to reliably store the state of the cluster. This makes Service Fabric entirely self-contained.

The fact that Service Fabric is a stateful platform is key to understanding it and how it differs from other major orchestrators. Everything it does - scheduling, health checking, rolling upgrades, application versioning, failover, self-healing, etc - are all designed around the fact that it is managing replicated and distributed data that needs to be consistent and highly available at all times.

like image 146
Vaclav Turecek Avatar answered Oct 26 '22 10:10

Vaclav Turecek