Questions tagged [kubernetes-statefulset]

357 questions
0
votes
0 answers

Kubernetes statefulset replication

I am using kubernetes statefulset for my mongodb and influxdb. In summary, StatefulSets provide the following advantages when compared to Deployment objects: Ordered numbers for each Pod. The first Pod can be a primary, which makes it a good…
Rakesh
  • 23
  • 3
0
votes
1 answer

Enable load balancing and connection management for stateful set replica address

For statefulsets, I am wondering if it's possible to put each replica behind a virtual ip, perhaps using a Service, so that we have the same connection and DNS behavior for per replica host names as we do for ClusterIP hostname that we get for a…
0
votes
2 answers

How to set timeout for rolling update to statefulset?

I use helm and I have a problem, when a pod (statefulset) is entring to CrashLoopBackOff, it never exit this state. Even when there is a new rolling update, the statefulset still in the same state CrashLoopBackOff from the old rolling…
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171
0
votes
3 answers

Run different replica count for different containers within same pod

I have a pod with 2 closely related services running as containers. I am running as a StatefulSet and have set replicas as 5. So 5 pods are created with each pod having both the containers. Now My requirement is to have the second container run only…
ckv
  • 10,539
  • 20
  • 100
  • 144
0
votes
1 answer

MountVolume.SetUp failed for volume "data" : hostPath type check failed: /usr/share/elasticsearch/data is not a directory

Below is my YAML for volume mounting: initContainers: - name: fix-permissions image: busybox command: ["sh", "-c", "chown -R 1000:1000 /usr/share/elasticsearch/data"] securityContext: privileged: true volumeMounts: -…
0
votes
0 answers

How to move statefulset pod to another node?

Due to the following error, my MySQL statefulset pod cannot be run on the particular node. EXT4-fs error (device sdb): __ext4_find_entry:1532: inode #2: comm mysqld: reading directory lblock 0 The issue is described with the details here: GKE…
0
votes
1 answer

Best way to handle MySQL update in kubernetes

I have a MySql statefulset with just one replica. So, there will always be just one container running MySQL. The first time this container runs, it should create the schema of the db and insert all data (possibly via a python script). Storing…
user11626803
0
votes
0 answers

Is volume bound or not?

I am trying to make a mysql instant save on persistent volume, using minikube. PVCs get generated from a volumeClaimTemplate inside a statefulset. I created a few PVs (named pv-volume, pv-volume2, pv-volume3...) and the following…
user11626803
0
votes
1 answer

MySQL statefulset with persistent storage on minikube

I am trying to have a scalable mysql DB whith persistent memory. I thought it was something common, but it seems like online no one really explains it. I am using minikube for my single node cluster. I started off from the kubernetes guide on how to…
user11626803
0
votes
1 answer

Schema initiation in Binami postgresql image for kubernetes cluster

I am using bitnami PostgreSQL image to deploy StatfulSet inside my cluster node. I am not sure how to initiate schema for the PostgreSQL pod without building on top of bitnami image. I have looked around on the internet and someone said to use init…
0
votes
1 answer

Azure Kubernetes Service: What about PV and PVC in Stateful workload migration to new nodepool of different machine size

Context: [Regarding cost reduction for compute]. In AKS cluster, recently observed that compute resources are under-utilised and so my plan is: To create a new node pool(with lower cpu and memory, and so lower cost basically) and attach to the same…
Nin
  • 99
  • 1
  • 8
0
votes
3 answers

Why my pod error "Back-off restarting failed container" when I have `imagePullPolicy: "Always"`

Why my pod error "Back-off restarting failed container" when I have imagePullPolicy: "Always", Before It worked but today I deploy it on other machine, it show that error My Yaml: apiVersion: apps/v1 kind: StatefulSet metadata: name: couchdb …
cksawd
  • 11
  • 1
  • 2
  • 5
0
votes
0 answers

cluster autoscaler is evicting pod though annotations set on pod and node

Deployed cluster autoscaler (CA) on EKS cluster. Despite of adding required annotations, CA is rescheduling pod on another node. EKS cluster- 1.19 . CA version:- 1.19.4 workload:- jenkins statefulset annotation added- …
Yogesh Jilhawar
  • 5,605
  • 8
  • 44
  • 59
0
votes
1 answer

scale stateful set with shared volume per az

I would like to scale a kubernetes stateful set in EKS which serves static data. The data should be shared where possible, which means by availability zone. Can I specify a volume claim template to make this possible? Or is there another…
shaunc
  • 5,317
  • 4
  • 43
  • 58
0
votes
0 answers

Deploying a CouchDB Cluster on Kubernetes

I am deploying a CouchDB cluster on Kubernetes and I'm getting an error when I configuring this Cluster. Kubernetes Version: 1.22.4 Docker Version 20.10.11, build dea9396 Ubuntu 20.04 When I run "kubectl exec couchdb-0 -i -t -- bash" and "curl -X…
cksawd
  • 11
  • 1
  • 2
  • 5