StatefulSet data consistency [closed] - kubernetes

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 1 year ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
So, a StatefulSet creates a new volume for each of its pod.
How does it maintain consistency of the written data. Because, each pod may serve a different client at a specific moment in time and will be writing different stuff to the volume. But, if this client tries to access the data later, it will have to connect to the same pod somehow to access its own data. Do these pods talk to each other to share data?
I may have asked a silly question
I think I know the answer, but I am confused. I won't tell the answer just to get an unbiased reply

How does it maintain consistency of the written data. Because, each pod may serve a different client at a specific moment in time and will be writing different stuff to the volume. But, if this client tries to access the data later, it will have to connect to the same pod somehow to access its own data. Do these pods talk to each other to share data?
Kubernetes does nothing about this. But you are right, these things are needed. The application is responsible for this. There are many ways to do this, e.g. using Raft Consensus Algorithm

Related

Deleted resources in kubernetes [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 20 days ago.
Improve this question
Someone deleted the deployment and i tried to find out from the event logs but i found below response:
No resources found in prometheus namespace.
Is there plugin or something to let me know who deleted this resource?
thanks a lot in advance.
Kubernetes auditing provides a security-relevant, chronological set of records documenting the sequence of actions in a cluster. The cluster audits the activities generated by users, by applications that use the Kubernetes API, and by the control plane itself.
As per the document:
Auditing allows cluster administrators to answer the following
questions:
what happened?
when did it happen?
who initiated it?
on what did it happen?
where was it observed?
from where was it initiated?
to where was it going?

How to claim an NFS persistent volume? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Being a beginner in kubernetes, I need:
A guide to the steps to be followed for creating a deployment, having claimed an nfs pv.
Please provide the yaml files to be applied in each step.
Sorry for being unclear, I have UPDATED THE EXACT ISSUE HERE:
Why do we get the error 'Mount failed with exit status 32'? How to resolve this?
You can find the documentation for the volume system at https://kubernetes.io/docs/concepts/storage/persistent-volumes/. That explains how to set up an PVC and PV to bind to it. NFS doesn't directly support dynamic provisioning, so to start with you'll just want to make them by hand.
StackOverflow is not here to hand-hold you through basic documentation. If you have a specific question the docs don't answer, try asking that instead :)

Is there a way to get the UID of the Kubernetes cluster? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm trying to make a Kubernetes multi-cluster, and I need a unique value to distinguish between cluster.
Does Kubernetes provide a UID to distinguish each cluster?
If not, is the best way to separate each cluster by the UID of the kube-system namespace?
if you have multi cluster and in each cluster you have multi user and namespace, and you want to handle switching between them, it is better to use kubernetes contexts, https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/
if you just need something unique about cluster, use certificate authority information(ca.crt or ca.key in /etc/kubernetes/pki/ directory). but be careful those files should be secured

Kops instance group in different accounts [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Is that possible to have IG in another account? We need to implement master multiaccount : 2 masters in 1 account and third master in second account. Is that possible from kops side?
You might be able to use kops terraform support in order to achieve that, but you'll have to perform some changes to the manifest.
Going down this path will probably remove a lot of the benefits for using kops, so there should be very good motives to implement such architecture.
Using kops alone will not allow this use case since it uses a single set of AWS credentials per cluster created.

iptables and PostgreSQL [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Edit: Being wiser now, this question doesn't make much sense. Unfortunately, I'm unable to delete it.
This is apples-and-pears, to a large degree.
iptables is used as a firewall to keep unwanted traffic out of the local network, pg_hba.conf determines not only who can connect to the database system on the server, but also what connections (users to databases) are allowed and how they are authenticated.
In a typical setup, iptables would only filter on the internet connection, while pg_hba.conf applies to all traffic trying to connect to the database system, specifically also traffic on the internal network. So in practice, yes, you would combine them, but they are rally not something where you should weigh the benefits of one option to the other, they both serve their own purpose.