Questions tagged [kubernetes-statefulset]

357 questions
0
votes
1 answer

Best way to update docker images on pods generated by statefulset

I have three pods generated by a statefulset which are using outdated public docker images from docker hub. I would like to update the images by changing the image entry in the statefulset yaml file. What i have tried so far is kubectl -n…
JBoy
  • 5,398
  • 13
  • 61
  • 101
0
votes
2 answers

Redis Pods are not able to join Redis cluster

I want to create redis cluster of 6 nodes in kubernetes. I am running kubernetes using Minikube. Below is my implementation for creating the 6 node cluster. kind: StatefulSet metadata: generation: 1 labels: app: demo-app name: demo-app …
Supermacy
  • 1,429
  • 15
  • 24
0
votes
3 answers

Is Stateful set for single replica an overkill?

I need to run my application with "at most once" semantics. It is absolutely crucial that only one instance of my app is running at any given time or none at all At first I was using resource type "deployment" with single replica but then I realized…
0
votes
1 answer

How does Elasticseach's model translate into these High-Availability patterns?

I've been studying Elasticsearch model of availability where you create a cluster with master nodes and data nodes [1], where master nodes control the cluster and data nodes hold data. You can also set for each index, a number of shards and replicas…
0
votes
1 answer

rabbitmq-peer-discovery-k8s fails. I still need to manually stop, join_cluster and start every node

Deployed the sample yaml files but doesn't work as expected. I still need to run a batch job on the cluster to manually stop, join_cluster and start for every pod. In addition, is there a way to configure vhosts, users and credentials using…
0
votes
1 answer

minikube postgres statefulset error - FATAL: role "password=" does not exist

I'm using the Kubernetes Postgres StateulSet example repo here by Arianit Uka: https://github.com/arianitu/postgres-statefulset with minikube and my pod container isn't coming up. The secrets have been applied and it seems to have the…
Mikeumus
  • 3,570
  • 9
  • 40
  • 65
0
votes
1 answer

Node affinity ignored for a node

I have 3 nodes, each of them labeled like following: node-0 -> mongo-volume=volume-0 node-1 -> mongo-volume=volume-1 node-2 -> mongo-volume=volume-2 I'm looking for a way to schedule the replicas of a statefulset on a special node. I first used…
LaurentP22
  • 586
  • 5
  • 15
0
votes
1 answer

Exposing and Connecting MongoDB ReplicaSet running as K8S Statefulset

I deployed a MongoDB ReplicaSet as StatefulSet in Kubernetes. I'm running a Bare Metal K8S Cluster and therefore I'm using MetalLB to expose Services of type LoadBalancer. In case of my MongoDB-RS Setup exposed Services look like this: NAME …
0
votes
2 answers

How can I maintain a set of unique number crunching containers in kubernetes?

I want to run a "set" of containers in kubernetes, each which only differs in the docker environment variables (each one searches it's own dataset, which is located on network storage, then cached into the container's ram). For example: container 1…
0
votes
1 answer

How to run pod with existing statefulset in kubernetes cluster?

I used this command to start my statefulset: kubectl scale statefulset my-set --replicas=1 But pod is not running. How could I start pod with existing stateful set "my-set"?
Janis Karklins
  • 503
  • 1
  • 7
  • 19
0
votes
1 answer

How to migrate volume of statefulset to a helm chart

I have a functionning zookeeper stateful set, i have manually created. I want to migrate to a helm installation of zookeeper. My kubernetes cluster run on aws. How to migrate volume from one stateful to the other ?
0
votes
2 answers

How to reconnect Redis cluster nodes?

I have a Redis cluster of 6 nodes, running in my Kubernetes cluster as a stateful set. Since it was for testing and not yet on production, all of the Redis nodes were on the same machine. Of course, the machine failed, and all of Redis' nodes…
Yuval
  • 764
  • 1
  • 9
  • 23
0
votes
1 answer

How to expose the scale of a deployment or statefulset to the pods in it?

My first thought was using the downward API, but that doesn't seem to expose the scale of a deployment / statefulset. I was hoping to be able to avoid adding it in as a separate environment variable manually, or having to rely on pods all…
0
votes
0 answers

RBD StorageClass issue with Kubernetes StatefulSet

I am deploying a Jenkins service on K8S as a StatefulSet. My VolumeMounts looks like : volumeMounts: - name: jenkins-jobs mountPath: /srv/jenkins/jobs And my volumeClaimTemplates section in my StatefulSet declaration looks…
user4889345
0
votes
1 answer

Can't ping other pods by hostname on minikube

I have a statefulSet with two replicas. It's headless service name is "gov-svc" It's -> .metadata.name: sts .metadata.namespace: default .spec.serviceName: gov-svc .spec.template.spec.subdomain: gov-svc .spec.replicas: 2 Before running…
1 2 3
23
24