Kubernetes World

  • Login
Trending now

Container, Docker and Kubernetes. This article is not a deep dive of… | by Sandeep ...

Spark and Kubernetes, A Match Made in Heaven | by Cluephant Technologies | Feb, 2021 ...

The case of Kubeswitch. Managing a handful of Kubeconfig files… | by Daniel Foehr | ...

ATO (2020) Tech Talk: Writing a Kubernetes/Openshift Operators Using Operator-SDK – Operators – Medium

Week08 – News, Updates & Reminders – AWS | HashiCorp | Istio | Kubernetes | ...

Kubernetes – ServiceTopology. Merhaba, | by Emir Özbir | Feb, 2021 | Medium

How to connect to multiple Google Kubernetes clusters easily in parallel | by Alex Moss ...

Multi tenancy in Kubernetes cluster | by Yogesh Kumar | Feb, 2021 | Medium

On-call? We feel your pain. It’s 3 AM. You’re the developer on call… | by ...

Alert Fatigue — A practical guide to managing alerts | by Komodor | Feb, 2021 ...

Home » Technology » Kubernetes StatefulSet Initialization with Unique Configs per Pod | by Yitaek Hwang | Jan, 2021 | Medium

Kubernetes StatefulSet Initialization with Unique Configs per Pod | by Yitaek Hwang | Jan, 2021 | Medium medium.com

1
admin 1 month ago in Technology

How to mount a unique configuration per pod for a stateful application (e.g. how to mount separate configurations for master and slave database pods) StatefulSets in Kubernetes are used to manage stateful application that require one or more of the following: In practice, StatefulSets are most commonly used to deploy databases (e.g. MySQL, PostgreSQL, Redis, Elasticsearch) onto Kubernetes. The declarative nature of Kubernetes makes it easy to run replicated stateful applications. For example, if you need to run multiple read-only replicas for a database, StatefulSets can be used to mount the same configurations per replica. But what happens when you need to run different configurations per each pod in a StatefulSet cluster? A common scenarios is when you need to differentiate between a master node (read-write) and slave nodes (read-only). This can be resolved by creating a separate StatefulSet for the master and the slave nodes. What if you need a more complicated setup? Perhaps the StatefulSets run some distributed ledger network and each StatefulSet has a different role (e.g. full vs. light vs. archive nodes for Ethereum). This can be extended to a scenario where different StatefulSet pods with the same role may have different permissioning schemes or data synchronization needs depending on the network topology (e.g. pod-0 may need to synchronize all of its data with an external database vs. pod-1 can only read a subset of the data and write to a message queue).

  • Facebook
  • Twitter
  • Pinterest
  • Google+
Report Story

Related Stories

  1. Container, Docker and Kubernetes. This article is not a deep...
  2. Spark and Kubernetes, A Match Made in Heaven | by...
  3. The case of Kubeswitch. Managing a handful of Kubeconfig files…...
  4. ATO (2020) Tech Talk: Writing a Kubernetes/Openshift Operators Using Operator-SDK...
  5. Week08 – News, Updates & Reminders – AWS | HashiCorp...
  6. Kubernetes – ServiceTopology. Merhaba, | by Emir Özbir | Feb,...
  7. How to connect to multiple Google Kubernetes clusters easily in...
  8. Multi tenancy in Kubernetes cluster | by Yogesh Kumar |...
Tags : devopskubernetespineapple2021Programmingsoftware-engineering

Get weekly Kubernetes news directly to your inbox

Loading
Copyright © 2021 Kubernetes World.
Login Register

Login

Lost Password
Oops! Sorry, registration is disabled.

Kubernetes StatefulSet Initialization with Unique Configs per Pod | by Yitaek Hwang | Jan, 2021 | Medium

admin 1 month ago in

How to mount a unique configuration per pod for a stateful application (e.g. how to mount separate configurations for master and slave database pods) StatefulSets in Kubernetes are used to manage stateful application that require one or more of the following: In practice, StatefulSets are most commonly used to deploy databases (e.g. MySQL, PostgreSQL, Redis, Elasticsearch) onto Kubernetes. The declarative nature of Kubernetes makes it easy to run replicated stateful applications. For example, if you need to run multiple read-only replicas for a database, StatefulSets can be used to mount the same configurations per replica. But what happens when you need to run different configurations per each pod in a StatefulSet cluster? A common scenarios is when you need to differentiate between a master node (read-write) and slave nodes (read-only). This can be resolved by creating a separate StatefulSet for the master and the slave nodes. What if you need a more complicated setup? Perhaps the StatefulSets run some distributed ledger network and each StatefulSet has a different role (e.g. full vs. light vs. archive nodes for Ethereum). This can be extended to a scenario where different StatefulSet pods with the same role may have different permissioning schemes or data synchronization needs depending on the network topology (e.g. pod-0 may need to synchronize all of its data with an external database vs. pod-1 can only read a subset of the data and write to a message queue).

  • Facebook
  • Twitter
  • Pinterest
  • Google+
Report Story

Related Stories

  1. Container, Docker and Kubernetes. This article is not a deep...
  2. Spark and Kubernetes, A Match Made in Heaven | by...
  3. The case of Kubeswitch. Managing a handful of Kubeconfig files…...
  4. ATO (2020) Tech Talk: Writing a Kubernetes/Openshift Operators Using Operator-SDK...
  5. Week08 – News, Updates & Reminders – AWS | HashiCorp...
  6. Kubernetes – ServiceTopology. Merhaba, | by Emir Özbir | Feb,...
  7. How to connect to multiple Google Kubernetes clusters easily in...
  8. Multi tenancy in Kubernetes cluster | by Yogesh Kumar |...