def scale(config=None, name=None, replicas=None):
        """
        Scales the number of pods in the specified K8sReplicationController to the desired replica count.

        :param config: an instance of K8sConfig

        :param name: the name of the ReplicationController we want to scale.

        :param replicas: the desired number of replicas.

        :return: An instance of K8sReplicationController
        """

        rc = K8sReplicationController(config=config, name=name).get()
        rc.desired_replicas = replicas
        rc.update()
        rc._wait_for_desired_replicas()
        return rc
def scale ( config = None , name = None , replicas = None ) : rc = K8sReplicationController ( config = config , name = name ) . get ( ) rc . desired_replicas = replicas rc . update ( ) rc . _wait_for_desired_replicas ( ) return rc
Scales the number of pods in the specified K8sReplicationController to the desired replica count.

        :param config: an instance of K8sConfig

        :param name: the name of the ReplicationController we want to scale.

        :param replicas: the desired number of replicas.

        :return: An instance of K8sReplicationController