英語 での Replicaset の使用例とその 日本語 への翻訳
{-}
-
Colloquial
-
Ecclesiastic
-
Computer
-
Programming
You can also check on the state of the replicaset:.
That is, a ReplicaSet can be auto-scaled by an HPA.
Display information about your ReplicaSet objects:.
The link a ReplicaSet has to its Pods is via the Pods' metadata.
The Deployment is scaling up its newest ReplicaSet.
You can remove Pods from a ReplicaSet by changing their labels.
The Deployment is scaling down its older ReplicaSet(s).
Here is an example HPA targeting the ReplicaSet we created in the previous example.
The ReplicaSet has two Pods, each of which runs the Hello World application.
Your Deployment mayget stuck trying to deploy its newest ReplicaSet without ever completing.
The ReplicaSet has five Pods, each of which runs the Hello World application.
Controllers such as Deployment or ReplicaSet may be better suited to your stateless needs.
A ReplicaSet can also be a target for Horizontal Pod Autoscalers(HPA).
This included ReplicationController, ReplicaSet, StatefulSet, DaemonSet, and Deployment.
A ReplicaSet can be easily scaled up or down by simply updating the. spec. replicas field.
Create a Deployment to rollout a ReplicaSet. The ReplicaSet creates Pods in the background.
The StatefulSet also recreates Pods if they're deleted,similar to what a ReplicaSet does for stateless Pods.
To see the ReplicaSet(rs) created by the Deployment, run kubectl get rs.
Looking at the Pods created,you see that 1 Pod created by new ReplicaSet is stuck in an image pull loop.
It's through this link that the ReplicaSet knows of the state of the Pods it is maintaining and plans accordingly.
Yaml and submitting it to a Kubernetes cluster shouldcreate the defined HPA that autoscales the target ReplicaSet depending on the CPU usage of the replicated Pods.
You can delete a ReplicaSet without affecting any of its Pods using kubectl delete with the--cascade=false option.
As with all other Kubernetes API objects, a ReplicaSet needs the apiVersion, kind, and metadata fields.
Once new Pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of Pods available at all times during the update is at least 70% of the desired Pods.
This actually means that you may never need to manipulate ReplicaSet objects: use a Deployment instead, and define your application in the spec section.
Use a ReplicationController, ReplicaSet, or Deployment for Pods that are not expected to terminate, for example, web servers.
Before the Deployment and ReplicaSet were added to Kubernetes, replicated applications were configured using a ReplicationController.
The reason for this is because a ReplicaSet is not limited to owning Pods specified by its template- it can acquire other Pods in the manner specified in the previous sections.
It is generated by hashing the PodTemplate of the ReplicaSet and using the resulting hash as the label value that is added to the ReplicaSet selector, Pod template labels, and in any existing Pods that the ReplicaSet might have.