class_docstr: Base configuration builder for Kubernetes replication controllers
class_docstr_tok: ["Base","configuration","builder","for","Kubernetes","replication","controllers"]
code: def __init__(
      self,
      name,
      image,
      replicas,
      resource_request=None,
      resource_limit=None,
      node_selectors=None,
  ):
      self._name = name
      self._image = image
      self._replicas = replicas
      self._envs = dict()
      self._node_selectors = node_selectors
  
      self.add_default_envs()
  
      self._resource_request = resource_request
      self._resource_limit = resource_limit
  
imports: from urllib.parse import urlparse
  from ...utils import parse_readable_size, calc_size_by_str
  from ..kubernetes.config import ContainerEnvConfig
label_desc: Use image node_id 1 to create a new ReplicaSpecConfig object  with example: obj = ReplicaSpecConfig(name, image, replicas, resource_request, resource_limit, node_selectors)