Replication Controller
Replication Controllers in Kubernetes ensure that a specified number of pod replicas are running at any given time. They provide a way to manage the lifecycle of pods by scaling them up or down to meet the desired state described in its configuration. Replication Controllers are pivotal in maintaining the reliability and scalability of applications in a Kubernetes environment. For more information, please refer to the official Kubernetes documentation on Replication Controllers.
Terraform Mappings:
kubernetes_replication_controller.metadata[0].name
kubernetes_replication_controller_v1.metadata[0].name
Supported Methods​
GET
: Get a ReplicationController by nameLIST
: List all ReplicationControllersSEARCH
: Search for a ReplicationController using the ListOptions JSON format e.g. ("labelSelector": "app=wordpress")
Possible Links​
Pod
​
Replication Controllers manage and maintain the desired state of pods, ensuring that the correct number and configuration of pod instances are running consistently. A Replication Controller will automatically create new pods if some are deleted or fail, or remove excess pods if there are more than what is required, thereby directly controlling the pod resources within a Kubernetes cluster.