Questions tagged [kubernetes-statefulset]
357 questions
0
votes
0 answers
Why kubernetes' statefulset didn't run evenly for 3 pods?
I deployed a logstash by statefulset kind with 3 replicas in k8s. Using filebeat to send data to it.
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: logstash-nginx
spec:
serviceName: "logstash"
selector:
matchLabels:
app:…

iooi
- 453
- 2
- 10
- 23
0
votes
1 answer
How to track stateful pods created in a k8s cluster?
Setup
I have a k8s cluster setup in the following manner:
1 Master Node
2 Worker Nodes
The cluster is setup using kubeadm and Flannel.
I have two different pod types:
Java Proxy Server
Java TCP Server
The Java Proxy Server pod is what I…

Krúžok
- 1
- 1
0
votes
0 answers
MySQL statefulset deployment with persitence volume not working
Environment :
Using Helm v3 charts for deployment.
Using Bitnami MySQL charts from the following source : https://artifacthub.io/packages/helm/bitnami/mysql
Username and Password is generated randomly for every deployment.
PersistenceVolume is…

Anthony Vinay
- 513
- 5
- 17
0
votes
1 answer
How to deploy logstash with persistent volume on kubernetes?
Using GKE to deploy logstash by statefulset kind with pvc. Also need to install an output plugin.
When don't use while true; do sleep 1000; done; in container's command args, it can't deploy with pvc successfully.
The pod will cause CrashLoopBackOff…

iooi
- 453
- 2
- 10
- 23
0
votes
1 answer
List Kubernetes containers that use docker local volumes
When deploying a workload that has a VOLUME in a Dockerfile, that volume may not be mapped to a persistent volume (PV/PVC) in Kubernetes.
Actually, unless a Kubernetes volume is attached to that workload, The docker daemon container will temporarily…

Franklin Piat
- 3,952
- 3
- 32
- 45
0
votes
1 answer
Statefulset - How automatically setting labels to pods after creation and restarting?
I have statefulset mongo-replica, It creates Two replica, I want to set a new label ( COMPANY ) foreach pod (replica) it's value should be the pod's name .e.g.:
in POD mongo-replica-0 -> COMPANY: mongo-replica-0
in POD mongo-replica-1 -> COMPANY:…

Net Sim
- 337
- 2
- 6
- 20
0
votes
1 answer
dynamically scale pods with new nodes addition in k8s cluster
I am building a application in k8s where I want the replicas of deployments/statefulsets to scale as per the number of nodes added.
Initially deployment should come up with 1 replicas when 1st node is created and grow as we add more worker/master…

yog raj
- 147
- 2
- 10
0
votes
2 answers
Kubernetes : InitContainer that takes more than 5 minutes to finish never ends and get restarted
At the very beginning of some of my statefulSets, one of my initContainers requieres to do a lot of operations.
It is not a problem at all. All those tasks are optimized to takes just some second.
The problem comes when it detects that it is an…

Nullzone
- 1
- 1
- 1
0
votes
1 answer
kubectl statefull set rolling restart with pvc cleanup
I have a stateful set with persistent volume.
If I do kubectl rollout restart statefulset pods are recreated and persistent volumes are reclaimed, as expected.
Hovewer, I need to create a cron job that once every now and then will do a rolling…

Ruslan Akhundov
- 2,178
- 4
- 20
- 38
0
votes
1 answer
Is it possible for a pod running in a satrefulset to get the hostname of the all the pod running in different statefulset?
I have a pod running in a statefulset but it needs to know the hostname or address of all pods running in another statefulset to communicate with them. The second statefulset is being created by a separate helm chart. Can the pod work this out…

atlantis.pd
- 68
- 1
- 9
0
votes
0 answers
StatefulSet breaking Kafka on worker reboot (unordered start)
In a worker node reboot scenario (1.14.3), does the order of starting stateful sets pods matter, I have a confluent kafka (5.5.1) situation where 1 member start a lot before 0 and a bit ahead of 2, as a result I see a lot of crashes on 0 is there…

anVzdGFub3RoZXJodW1hbg
- 171
- 1
- 6
0
votes
1 answer
How does Cassandra driver update contactPoints if all pods are restarted in Kubernetes without restarting the client application?
We have created a statefulset & headless service. There are 2 ways by which we can define peer ips in application:
Use 'cassandra-headless-service-name' in contactPoints
Fetch the peers ip from headless-service & externalize the peers ip and read…

Pushpendra
- 55
- 8
0
votes
1 answer
Need to run stateful applications on kubernetes cluster bootstrapped with Kubeadm
I have a kubernetes cluster bootstrapped with kubeadm. I want to run stateful applications on it but dont want to use hostpath. Is there any way to run stateful applications without using cloud storage(like EBS, Azure Disk etc) and hostPath? I saw a…

Dean Winchester
- 352
- 3
- 7
0
votes
1 answer
consul StatefulSet failing
I am trying to deploy consul using kubernetes StatefulSet with following manifest
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: consul
labels:
app: consul
rules:
- apiGroups: [""]
resources:
-…

roy
- 6,344
- 24
- 92
- 174
0
votes
1 answer
Dynamic volume provisioning folder per pod in a volume?
What I am aiming for is a folder(pod name) per pod created inside of a volume using a volumeClaimsTemplate in a StatefulSet.
An example would be:
PersistentVolume = "/data"
Pods:
pod-0 = "/data/pod-0"
pod-1 = "/data/pod-1"
I am struggling with…

StackDrenny
- 165
- 1
- 2
- 11