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
4
votes
1 answer

Add additional volumeClaimTemplate to statefulSet

We are using Kubernetes 1.10.1 I'm having a statefulset which has a single volumeClaim attached. I would like to add an additional volumeClaim since resizing of an existing PV is still in beta and also not available in Kubernetes 1.10. My change…
mat1010
  • 756
  • 1
  • 9
  • 17
4
votes
1 answer

StatefulSet behavior when a node dies/gets restarted and has a PersistentVolume

Suppose I have a resource foo which is a statefulset with 3 replicas. Each makes a persistent volume claim. One of the foo pods (foo-1) dies, and a new one starts in its place. Will foo-1 be bound to the same persistent volume that the previous…
4
votes
1 answer

Kubernetes StatefulSet pod startup error recovery

A Kubernetes StatefulSet (v1.8) will automagically rollover the pods it is managing to a new image if you patch the image name in the StatefulSet spec -- orchestrating this kind of update is one of its main jobs, after all. However, if deployment…
4
votes
2 answers

Can I use existing GCE persistent disk in volumeClaimTemplate of Kubernetes Statefulset

I am using Google Container Engine to run a StatefulSet for MongoDB replica set (3 replica pods). This works fine with dynamic provisioning of persistent storage - that is new storage is provisioned for each pod when the stateful set is created. …
3
votes
1 answer

Strategy Replace for StatefulSet

I have simple issue with StatefulSet update on my dev environment and CI. I want to replace all StatefulSet replicas instantly without using Kubectl delete first. Is it possible to change the manifest to strategy: Replace as in Deployments and…
mkasepuu
  • 243
  • 5
  • 13
3
votes
1 answer

Is there a way/config where I could change default revisionHistoryLimit from 10 to another limit?

I'm setting up a new server with kubernetes and because of storage limitations I need to change revisionHistoryLimit for all our existing and new projects to 2 or 3. I know I can change it in each deployment with spec.revisionHistoryLimit but I need…
3
votes
1 answer

Kubernetes - How to create one Pod per Node?

I want a Kubernetes StatefulSet with: Number of Replicas/Pods = Number of Nodes in Kubernetes Cluster One Pod on on every node Is there a simple example on how to solve this typical requirement?
Simon_Prewo_Frankfurt
  • 1,209
  • 2
  • 11
  • 18
3
votes
2 answers

How to add a Configmap to a specific Pod In a StatefulSet?

I'd like to know how I can add a ConfigMap to a specific pod spawned by a StatefulSet. I've looked at the spec and I can't figure out how to ensure that a pod only mounts a ConfigMap with a specific label. I've already got a workaround ready in the…
Byebye
  • 934
  • 7
  • 24
3
votes
1 answer

Helm / Kubernetes - Statefulset & Permissions

I keep seeing this error: Events: FirstSeen LastSeen Count From SubObjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 12s 2s 12 …
3
votes
0 answers

Route to a given replica of a statefulset in Openshift/Kubernetes

Do you know if there is a way with the statefulset feature in kubernetes/openshift to create 1 route per replica (ie 1 route that will allow me to access from the outside 1 specific replica of my statefulset). The context is the following. I am…
Julien
  • 55
  • 7
3
votes
2 answers

Kubernetes: Expose only single pod of StatefulSet

For for a StateFul set, I can access its pods via a headless service internally. I think, it would make sense, to have an easy way to expose also single pods externally (since the pods usually have a state and therefore loadbalancing over them makes…
2
votes
2 answers

Kubernetes control the order of scale and upgrade for a StatefulSet

I have the following scenario: A StatefulSet with 1 replica Update the template section and scale it in the same operation using helm as application manager The order of operation is the following: Scaling to 3 Update the replica with name…
2
votes
1 answer

Kubernetes StatefulSets and livenessProbes

Liveness probes are supposed to trigger a restart of failed containers. Do they respect the default stateful set deployment and scaling guarantees. E.g. if the liveness probe fails at the same time for multiple pods within one and the same stateful…
2
votes
2 answers

Deleting the prometheus stateful set recreating itself

I have deployed prometheus-operator using helm charts, I need to customize Prometheus stateful set but couldn't do it due to the nature of stateful set. I have to delete the stateful by "kubectl delete sts…
udayr
  • 31
  • 2
2
votes
3 answers

Deploy a scalable application on Kubernetes which requires each replica Pod to have different args

I am trying to understand how to deploy an application on Kubernetes which requires each Pod of the same deployment to have different args used with the starting command. I have this application which runs spark on Kubernetes and needs to spawn…
AndD
  • 2,281
  • 1
  • 8
  • 22