ReplicaSets:
ReplicaSet acts as cluster wide Pod manager and ensuring that right types & number of Pods are running at all times. It is providing the underpinning of self-healing for our applications at the infrastructure level.
The reconciliation loop is the notion of desire state versus observed or current state. The reconciliation loop is constantly running, observing the current level of the Pods and taking action in case of different state.
The ReplicaSet controller will notice that a Pod is missing and create a new copy, but still Pod is still running is available to developers for interactive debugging rather than debugging from logs.
ReplicaSet is define in the spec section while create a configuration file.
kind: ReplicaSet
metadata:
name: kuard
spec:
replicas: 1
template:
metadata:
labels:
app: kuard
version: "2"
spec:
containers:
- name: kuard
image: "gcr.io/kuar-demo/kuard-amd64:green"
No comments:
Post a Comment