Questions tagged [kubernetes-statefulset]

357 questions
0
votes
0 answers

Persisting a SQLite database as part of a CronJob in Kubernetes?

I have an application that I am migrating from an Azure App Service which has the concept of scheduled jobs - the most natural fit I see from a Kubernetes perspectice is to convert this into a CronJob. However, the situation I am facing is that the…
0
votes
1 answer

Kubernetes - Stateful set ins't persisting data after cluster reboot

I have a Kubernetes cluster and I installed Postgresql and TeamCity-Server, but, as my enviorment is a sandbox, I always shutdown after comercial time and start on the next day. Said that, my data from Postgresql and TeamCity-Server always get lost…
0
votes
1 answer

MongoDB on kubernetes Community Operator. Statefulset pods on unique nodes

I'm deploying a mongodb cluster with the MongoDB Community Operator. ReplicaSet configuration. I followed this example for my configuration. The difference is that I want a pod on each node with his pv on the node. At every deploy the same node…
0
votes
1 answer

GKE cluster node ends up with CrashLoopBackOff

I've had a 3 node setup in GKE. And one of my pod creation is in CrashLoopBackOff state and it is not recovering. The log suggests the below java.lang.IllegalArgumentException. But the other 2 pods they have no such issue. They are up and running.…
0
votes
0 answers

mongo statefulset FailedMount volume after scale up replica

I am testing mongodb statefulset to have 3 replicas after using it for a while. It has some pods that restart and show error FailedMount. this my file mongo-statefulset.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: mongodb-stg …
0
votes
0 answers

calling a statefulset internally from another pod

If I have stateful set A ( 2 pods) running in my cluster and I want to call this stateful set internally from another pod, Should I call using it using the headless service or the Cluster IP service? Taking an example of Postgres stateful set and I…
0
votes
2 answers

Airflow Helm Chart - why stateful set is used for worker definition?

I am deploying Airflow with official Helm chart and trying to understand why it requires stateful set for worker deployment. When it makes perfect sense for redis and postgtre I am not sure why this is requirement for worker
0
votes
2 answers

Running a stateless app as a statefulset (Kubernetes)

In the Kubernetes world, a typical/classic pattern is using Deployment for Stateless Applications and using StatefulSet for a stateful application. I am using a vendor product (Ping Access) which is meant to be a stateless application (it plays the…
0
votes
3 answers

Safely unbind statefulset/my-pod-0 pvc without affecting the other replicas

I have a statefulset with 2 pods, running on separate dedicated nodes, each with its own pvc. I need to perform some maintenance to the PVs assigned to each of the PVCs assigned to the statefulset's pods. So far I've been able to scale down the…
J11
  • 426
  • 1
  • 6
  • 17
0
votes
1 answer

Why does k8s statefulset change from 1/1 to 0/0

I deployed a helm chart and used it for more than ten days, but when I used it today, I found that the pod was missing, and the statefulset instance became 0/0. I checked the history through kubectl rollout history, and the result was 1, which has…
moluzhui
  • 1,003
  • 14
  • 34
0
votes
0 answers

How can I access kubernetes service via dns name from localhost on which is Docker Desktop/Kubernetes?

I have such configuration localhost on which is installed Docker Desktop with Kubernetes. I deployed for example some cassandra server as statefulset I created such service to expose individual pods from statefulset. I can not use cassandra service…
0
votes
1 answer

connection string for mongodb with autoscaling in kubernetes

I have a problem(or doubt) with a set of mongodb replicas hosted in kubernetes. This is my part of my YAML that defines the set of replicas: spec: serviceName: "mongo" podManagementPolicy: OrderedReady replicas: 3 updateStrategy: type:…
0
votes
1 answer

Scale statefulset based on latest volumeSnapshot

If anyone know solutions please help me how I can do this. I have “statefulset” which has following “volumeClaimTemplates” inside: When I scale my replica count: “kubectl scale statefulset --replicas=2 my-statefulset” new “PVC” create from…
0
votes
2 answers

How to keep a variable value across pod restarts?

I'm trying to build an application that stores the specs of certain Kubernetes resources in a variable. It then sleeps for a pre-defined time like 7 days, then the application runs again, and compares the specs of the same resources now to the specs…
0
votes
1 answer

How to deploy stateful applications using Jenkins

Summary: is there a Jenkins plugin that allows to deploy stateful applications? I am using Jenkins to automate the development process using a multibranch CI/CD pipeline. I'm trying to deploy a stateful application. I am using the "Kubernetes…