378 questions
Advice
1
vote
1
replies
46
views
Why does a Kubernetes StatefulSet require a Headless Service
In Kubernetes, it is standard practice (and often a requirement) to associate a StatefulSet with a Headless Service to provide stable network identities. My current understanding of the mechanism is ...
0
votes
1
answer
60
views
GKE reports StatefulSet specified does not have a readiness probe but spec does contain it
GKE is reporting the alert "PDB_STATEFULSET_WITHOUT_PROBES" (https://cloud.google.com/kubernetes-engine/docs/how-to/workload-disruption-readiness) but the statefulsets it references do have ...
0
votes
1
answer
160
views
Is a single-node RabbitMQ StatefulSet on AKS likely to crash under high load?
I’m running RabbitMQ as a Kubernetes StatefulSet on Azure Kubernetes Service (AKS) in a “statefulpool” node pool that only has one node and a single Azure Managed Disk (ReadWriteOnce). My ...
0
votes
1
answer
57
views
Dockerfile and container gets ENV from k8s Statefulset [closed]
I need to process the ENV from k8s Statefulset in the container before it starts up.
Dockerfile:
RUN echo CREDENTIALS: $CREDENTIALS
ARG user="${CREDENTIALS%/*}"
ARG password="${...
0
votes
1
answer
88
views
kubectl rollout status for scale down - doesn't work
I'm using kubectl rollout status to monitor the scale up/down of statefulset. But on scale down it doesn't work the prompt/script right away continues even tho there are still pod out which are in the ...
-1
votes
1
answer
55
views
Why each pods in a StatefulSet has seprate PVC
I have a statefulset which has 3 replicas of mysql pods. Why it is not recommended to share the same backend storage/PV among these 3 replicas. Why each pod has its own pvc and pv.
This approach is ...
1
vote
2
answers
89
views
Unable to connect to Postgres StatefulSet in kubernetes cluster from go web server
I have a web server in Golang that connects to Postgres as a StatefulSet. However, I am getting an error with the connection where there is no such host found. The web server was created using ...
1
vote
0
answers
40
views
Redis keys are not showing after a certain period
I am trying to create StatefulSet for redis in a k8s cluster where I
will send streams, create hash values etc. I was checking some
configurations for the last 4/5 days. I am facing issues related to
...
0
votes
1
answer
234
views
GKE Autopilot Stateful set - not scaling
I have created a GKE Autopilot cluster however when I create a stateful set with 3 replicas I am getting the following error
FailedScheduling 77s (x3 over 11m) gke.io/optimize-utilization-scheduler ...
1
vote
2
answers
2k
views
How does rolling update work for a statefulset in kubernetes
I am trying to do a rolling update of my stateful set by setting the updateStrategy in the STS spec but it looks like on deleting the statefulset pod, it gets terminated and a new pod is coming up. So,...
0
votes
1
answer
295
views
How to specify the naming format of PVCs when using Statefulset in Kubernetes?
The following is the Statefulset yaml.
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mongodb
spec:
serviceName: mongo
replicas: 3
selector:
matchLabels:
app: mongo
( skip )
...
0
votes
0
answers
76
views
k8s: Statefulset with pvc templates and external pvc
I am trying to deploy my statefulset. The set contains 3 pvc templates and 1 externally managed PVC. The creation of the statefulset fails with the error shown below, I'm kind of lost what I am ...
0
votes
0
answers
339
views
Nginx pods restarted with below error saying epoll_wait() reported that client prematurely closed connection while connecting to upstream
I am using Nginx version 1.24, deployed in GKE. Sometimes, pods restart with liveness and readiness probes failing events. Below are the error logs from the previously restarted container:
2024/05/24 ...
1
vote
1
answer
180
views
Stateful set of Cassandra cluster pod are not scheduled to same node in case of restart
I have 20 worker nodes cassandra cluster in kubernetes where each pod scheduled in seperate worker node, when restart happened to multiple pods in case of threshold limit reached like cpu/Memory then ...
0
votes
1
answer
96
views
Allowing 2 Deployments access Persistent Disk in Kubernetes
Problem statement:
Designing a system where one Deployment (W) writes data to Persistent Disk (PD) and other Deployment/Daemonset (R) moves data out of the PD. It would be fair to assume this is a ...