Questions tagged [kubernetes-statefulset]

357 questions
0
votes
1 answer

StatefulSet data consistency

So, a StatefulSet creates a new volume for each of its pod. How does it maintain consistency of the written data. Because, each pod may serve a different client at a specific moment in time and will be writing different stuff to the volume. But, if…
Aniket
  • 153
  • 1
  • 2
  • 8
0
votes
1 answer

How to schedule the first replica of a statefulset to a specific node

I have a StatefulSet with several replicas, for example 3 and multiple kubernetes Node in two zones. I want to place the FIRST replica in the selected zone and the rest in the others zones. mysts-0-0 < main_zone mysts-0-1 < back_zone mysts-0-2 <…
jesmart
  • 87
  • 2
  • 10
0
votes
2 answers

Pods affinity to different nodes in StatefulSet

I am creating StatefulSets and I want pods within one StatefulSet to be distributed across different nodes of the k8s cluster. In my case - one StatefulSet is one database replicaset. sts.Spec.Template.Labels["mydb.io/replicaset-uuid"] =…
0
votes
0 answers

How to backup large mongodb instance hosted on kubernetes?

We have a mongo instance which is hosted on Kubernetes as Statefulset. It's of around 3.5 TB size with persistent volumes attached. We are looking for a way reduce backup time. What's the best way to backup and restore mongodb instance to and from…
0
votes
1 answer

EKS Statefulset Mysql getting stuck with Init

Below is my statefulset. apiVersion: apps/v1 kind: StatefulSet metadata: namespace: dev name: mysql spec: selector: matchLabels: app: mysql serviceName: mysql replicas: 2 template: metadata: labels: app:…
Jithin Kumar S
  • 701
  • 2
  • 9
  • 20
0
votes
1 answer

Kubernetes workload for stateful application but no need of persistent disk

I am having a stateful application - I am keeping data in user's sessions (basically data in HttpSession object) - but I do not have any requirement to write anything to persistent disk. From what I have read so far - StatefulSet workloads are meant…
0
votes
1 answer

Best practice on reading and writing to a persistent Volume in a live Kubernetes Cluster

I am designing a Kubernetes system which will require storing audio files. To do this I would like to setup a persistent storage volume making use of a stateful set. I have found a few tutorials on how to set something like this up, but I am unsure…
EoinHanan
  • 77
  • 8
0
votes
0 answers

move pod manually to another kuberntes

is there a way to force a sts pod on kubernetes to move to another node on kubernetes cluster? by default kubernetes put all on the same node since I have local pv but I want the replica will be distributed. before I added pv local storage as below…
NoamiA
  • 521
  • 4
  • 19
0
votes
1 answer

Why is EMQX Persistence not working on azure kubernetes when it is working on local kubernetes?

When using kubernetes(minikube) statefulset on local machine, EMQX Rules are persisting because same pod IP is being assigned to the emqx node, for example /opt/emqx/data/mnesia/emqx@172.17.0.9. Even if I delete the pod when the new pod starts, it…
0
votes
1 answer

Kubernetes multiple stateful sets pods communication

Within same stateful set afaik you can interact between particular pods just by referencing it directly, like this - pod-{0..N-1}.my_service.my_namespace.svc.cluster.local. (some more info here:…
Ruslan Akhundov
  • 2,178
  • 4
  • 20
  • 38
0
votes
2 answers

Pods stuck on "Terminating" after compute-node shutdown

I am running an OCP4.6 with RHEL7.8 BareMetal compute nodes. We are running functionality and HA testing on the cluster. Our main application on this cluster is a StatefulSet with around 250 pods. After shutting down a node, the pods running on the…
Linux Devops
  • 11
  • 1
  • 3
0
votes
1 answer

Kubernetes non-sequential-named statefulsets?

k8s newbie here. StatefulSets allow creating pods with a) predefined names and b) an order. In my case, I don't need an order (b), and this is giving me trouble. (a) is useful in my case because I need to keep the state if a container dies. Example,…
RodolfoAP
  • 743
  • 1
  • 7
  • 18
0
votes
1 answer

pod has unbound immediate PersistentVolumeClaims (repeated 2 times)

I'm using AKS, I am trying to create a statefulset with pvc from yaml. It looks like pvc created successfully and is bound. but I see that the pod state is CrashLoopBackOff When I use describe on the pod, i get this events: Type Reason …
toto
  • 1,197
  • 2
  • 15
  • 26
0
votes
1 answer

Kubernetes: What is the significance of "storage" field in a block Persistent Volume?

Scenario I have a PersistentVolume with volumeModeas Block. It is defined as: apiVersion: v1 kind: PersistentVolume metadata: name: block-vol spec: accessModes: - ReadWriteOnce capacity: storage: 1Gi local: path: /dev/sdb # this…
0
votes
1 answer

Mounting a shared folder to all state full set replicas in k8

Context : We have a Apache Nifi cluster deployed in Kubernetes as Stateful sets, and a volume claim template is used for Nifi repositories. Nifi helm charts we are using There is a use case where file processing is done by Nifi. So the file feeds…
arunvg
  • 1,209
  • 1
  • 20
  • 31