Questions tagged [statefulset]

StatefulSets are valuable for applications that require one or more of the following.

  • Stable, unique network identifiers.
  • Stable, persistent storage.
  • Ordered, graceful deployment and scaling.
  • Ordered, graceful deletion and termination.
  • Ordered, automated rolling updates.
91 questions
0
votes
1 answer

Deleting Stateful Sets in Kubernetes

How to delete the Stateful Sets in Kubernetes permanently? They get re-created even after I delete them by setting --force and --grace-period=0 flags. I know I can delete them all by removing the deployment itself. I'm interested in knowing if there…
Balajee Venkatesh
  • 1,041
  • 2
  • 18
  • 39
0
votes
2 answers

Backup of ignite stateful set in Kubernetes

I’m trying to come up with a strategy to backup data in my apache ignite cache hosted as a stateful set in google cloud Kubernetes. My ignite deployment uses ignite native persistence and runs a 3 node ignite cluster backed up by persistence volumes…
0
votes
0 answers

statefulset stuck on volumeClaimTemplates pending

I have a stateful set to spin up a postgres database - using the following PV: kind: PersistentVolume apiVersion: v1 metadata: name: cryoem-daq-dev--postgres--dev-0 labels: type: local spec: storageClassName: cryoem-daq-dev--postgres--dev …
yee379
  • 6,498
  • 10
  • 56
  • 101
0
votes
1 answer

Why deletion of a STS application is not deleting OpenEBS Jiva volume pvc's also automatically?

I am running one Mongo DB STS application which is consumed on OpenEBS 0.6.0 Jiva volume and I have deleted this app. But it is not deleting corresponding PVC. How can I clean up my system? Is this the default behavior?
0
votes
0 answers

statefulset roling update effects high availibility

Any way in kubernetes to first deploy a new pod with a new version, then take down the updated pod and add the one we created in advance to the statefulset ?When some pod gets recreated during rolling update it can take a lot of time and the app can…
Mika R
  • 105
  • 1
  • 7
0
votes
0 answers

How to run a zero downtime application in kubernetes StatefulSet

I would like to run a stateful application (performs read/ write operations into a specific folder) in Kubernetes without a single instance dependency. Can I use statefulset for this requirement. Is it necessary to use a shared file system (eg:…
Akhil KM
  • 109
  • 9
0
votes
1 answer

Deploy several wordpress instances with Kubernetes

I am missing a feature in Kubernetes for horizontal scaling of "standalone" application (where you can assign one application to one user). I would like to deploy several instances of Wordpress with kubernetes. Each instance should have its own…
phico
  • 1,303
  • 11
  • 12
0
votes
2 answers

How to create statefulset with nodeAffinity

I'm trying to create a statefulset in kubernetes 1.9 with nodeAffinity. I found some examples with a simple nodeselector, but that is not really what I would like to accomplish. I want to make sure that statefulset instances always start on the…
Rosse
  • 1
  • 1
  • 1
0
votes
1 answer

"UnknownHostException": Zookeeper 3.5.3 and StatefulSet Kubernetes

Zookeeper 3.5.3-beta does not work for me with GCloud Kubernetes Engine. Using the identical configuration with Zookeeper 3.4.10 works. When I run a client sanity test, the only exception returned is this: 2017-11-29 14:27:17,597 [myid:1] - WARN …
0
votes
1 answer

cassandra stateful set in kubernetes

I've been trying to setup a redundant stateful set in kubernetes with the google cassandra image, as depicted in kubernetes 1.7 documentation. According to the image used It's a stateful set with a consistency level of ONE. In my testing example…
0
votes
2 answers

Configure Kubernetes StatefulSet to start pods first restart failed containers after start?

Basic info Hi, I'm encountering a problem with Kubernetes StatefulSets. I'm trying to spin up a set with 3 replicas. These replicas/pods each have a container which pings a container in the other pods based on their network-id. The container…
Byebye
  • 934
  • 7
  • 24
0
votes
2 answers

Kubernetes statefulset ends in completed state

I'm running a k8s cluster on Google GKE where I have a statefulsets running Redis and ElasticSearch. So every now and then the pods end up in a completed state and so they aren't running anymore and my services depending on it fail. These pods will…
Niels
  • 599
  • 5
  • 28
0
votes
1 answer

What should be used for sharing the volume of StatefulSet between its pods: NFS ou etcd?

I want to deploy a high performance (multi node) database. To do that, StatefulSet will be used. So, what should be used for sharing the content of the database between the pods of the StatefulSet application? NFS could do the work? or etcd?…
Amine Jallouli
  • 3,919
  • 8
  • 36
  • 73
-1
votes
2 answers

Kubernetes - How to use statefulsets for my Stateful database?

I have a cluster on gke with apache, mysql and keyrock and i would like to scale it up with horizontal pod autoscaler. For mysql i am using statefulset and the code is here: apiVersion: apps/v1 kind: StatefulSet metadata: name: mysql spec: …
alex
  • 343
  • 2
  • 9
-1
votes
1 answer

Kubernetes PersistentVolumeClaim issues in AWS-using volumeClaimTemplates pending state

We have success creating the pods, services and replication controllers according to our project requirements. Now we are planning to setup persistence storage in AWS using Kubernetes. I have created the YAML file to create an EBS volume in AWS,…
Raju
  • 61
  • 1
  • 7