class_docstr: Base configuration builder for Kubernetes replication controllers
class_docstr_tok: ["Base","configuration","builder","for","Kubernetes","replication","controllers"]
code: def build_template_spec(self):
      return _remove_nones(
          {
              "serviceAccountName": DEFAULT_SERVICE_ACCOUNT_NAME,
              "nodeSelector": self._node_selectors,
              "containers": [self.build_container()],
          }
      )
  
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 7 for calling the ReplicaSpecConfig obj's underlying member method code with example usage: obj.build_template_spec() and returns: _remove_nones