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
1
vote
1 answer

Mount PVC in cronjob and statefulset

I have two services that I would like to access a PersistentVolumeClaim. One is a StatefulSet that is reading from the volume (and serving content to end users), the other is a Kubernetes CronJob that periodically updates the contents of the data in…
Darrien
  • 71
  • 2
  • 12
1
vote
1 answer

How to select concrete Pod from StatefulSet and assign it to concrete Node

Good day, does kubernetes StatefulSet has an option for set concrete Pod to concrete Node. For example: we have StatefulSet that contained 3 replicas of Pod's with unique labels (app-0, app-1, app-2) and 3 Node's with labels (node-0, node-1,…
Alexey Nikulin
  • 43
  • 1
  • 1
  • 3
1
vote
1 answer

Kubernetes PersistentVolumeClaim issues in AWS using Pod Autoscaling

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
1
vote
0 answers

How to deploy statefulset in Kubernetes Federation?

It seems like the federation api currently doesn't support statefulset deployment, but I would like to know is that possible to deploy statefulsets in Kubernetes Federation in the situation described below. For example, for three pods: pod-0, pod-1,…
HAO
  • 85
  • 8
1
vote
2 answers

How to rollaback Kubernetes StatefulSet application

Currently, I am migrating one of our microservice from K8S Deployment type to StatefulSets. While updating Kubernetes deployment config I noticed StatefulSets doesn't support revisionHistoryLimit and minReadySeconds. revesionHistoryLimit is used…
1
vote
1 answer

Kubernetes Helm Chart - Debugging

I'm unable to find good information describing these errors: [sarah@localhost helm] helm install statefulset --name statefulset --debug [debug] Created tunnel using local port: '33172' [debug] SERVER: "localhost:33172" [debug] Original chart…
1
vote
1 answer

Kubernetes Node Affinity and statefulsets

I'm looking to create a statefulset using affinity. I have added a label to my 3 nodes. Two of them have area=area1 and one node has area=area2. I'm looking to run my statefulset pods only on the nodes with area=area1. It's not working. I'm getting…
Nestor Camino
  • 21
  • 1
  • 1
  • 4
1
vote
1 answer

Kubernetes: use volumeClaimTemplate to select admin-provisioned PersistentVolume

I have created some Persistent Volumes myself. Is it possible to make the volumeClaimTemplates in my Stateful Set select those? It seems that it will always provision new persistent volumes, rather than use the existing ones. Kubernetes: 1.5
Niel de Wet
  • 7,806
  • 9
  • 63
  • 100
0
votes
1 answer

Resizing of stateful set persistent volumes - Clarity needed - AKS version : 1.26.6

I was trying to resize persistent volumes associated with a stateful set today. I am using Azure Kubernetes service v1.26.6. The persistent voluem is created from a storage class of type "default". As per the official Kubernetes documentation…
Kiran Hegde
  • 680
  • 4
  • 14
0
votes
0 answers

pvc is not bound when use statefulset volumeClaimTemplates,localPV and WaitForFirstConsumer

I want to use Local pv to provide storage for es statefulset, and Local pv needs to correspond to pod, so I try the following, Create a pv for each node local path (mkdir -p /data/logging/elasticsearch/master) create the corresponding storage class…
limboy
  • 9
0
votes
1 answer

Kubernetes StatefulSet error - serviceName environment variable doesn't exist

I'm supposed to make a StatefulSet with a Headless Service but when I make the Headless Service and create the StatefulSet only one pod gets made but with Error status and I get this error when trying to use kubectl log: serviceName environment…
0
votes
1 answer

I want to create pods with custom ordinal index in stateful set

Currently when I apply stateful set then pods are getting created with ab-app-0, ab-app-1 , ab-app-2 But I want pods like ab-app-1000, ab-app-1001
0
votes
2 answers

1 node(s) had volume node affinity conflict, 3 node(s) didn't match Pod's node affinity/selector

I am trying to configure a redis statefulset on a specific node_pool, but when I apply the manifest, I get the following error. 0/4 nodes are available: 1 node(s) had volume node affinity conflict, 3 node(s) didn't match Pod's node…
0
votes
2 answers

Is it possible to have 2 or more PVC in a statefulset?

I have a statefulset from mongo with 2 volumemounts: volumeMounts: - name: mongo-persistent-storage mountPath: /data/db - name: mongo-config-storage mountPath: /data/configdb I want to…
0
votes
1 answer

How to use the "bin/elasticsearch-certutil ca" with K8S?

I have a problem, I'm creating Elasticsearch as StatefulSet, and I need to use x-pack. For that, I know I need to configure the security properties below: - name: xpack.license.self_generated.type value: "basic" - name:…