class_docstr: Base configuration builder for Kubernetes replication controllers
class_docstr_tok: ["Base","configuration","builder","for","Kubernetes","replication","controllers"]
code: def build(self):
      return {
          "replicas": int(self._replicas),
          "restartPolicy": "Never",
          "template": {
              "metadata": {
                  "labels": {"mars/service-type": self._name},
              },
              "spec": self.build_template_spec(),
          },
      }
  
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 8 for calling the ReplicaSpecConfig obj's underlying member method code with example usage: obj.build() and returns: dict