Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

109
Views
State in Kubernetes

A Kubernetes cluster should not contain stateful services like databases because of scalability, recovery and operation of the storage. Would be the use of ceph be an alternative to this problem?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

A Kubernetes can contain stateful services. Some examples are Redis cache or CockroachDB - but they should be a distributed service.

Ceph is a storage solution alternative.

over 4 years ago · Santiago Trujillo Report

0

In Kubernetes are objects called StatefulSets which are a workload APIs objects that maintains a sticky identity for each of the Pods to persistent volumes, so that you can reattach a volume to Pod that may be restarted on a different node. Such development is realy important to maintain state within a cluster, as an application like a database can now survive a Pod getting shut down. StatefulSets are mainly used with databases and clustered applications that have specific requirements. You can easy validate and modify them.

For example speaking abour scaling: With MySQL replication, you can scale your read query capacity by adding replicas. With StatefulSet, you can do this with a single command:

$ kubectl scale statefulset mysql  --replicas=5

Take a look: statefulset-database, Here you can find how to setup MySQL database using StatefulSet - mysql-statefulset.

Stateful applications are services that require backing storage and keeping state is critical to running the service. Databases such as MySQL, MongoDB, Postgres, and Cassandra are good examples. They need some form of persistent storage that will survive service restarts.

Speaking about Ceph. It is traditionally known for both object and block storage, but not for database storage. - read article: ceph-databases.

Take a look also on official documentation: statefulsets.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!