def __init__(self, name: str, version: str, pod_type: PodRoleType, jina_deployment_name: str, shard_id: Optional[int], common_args: Union[('Namespace', Dict)], deployment_args: Union[('Namespace', Dict)], k8s_namespace: str, k8s_connection_pool: bool=True, k8s_deployments_addresses: Optional[Dict[(str, List[str])]]=None):
    self.name = name
    self.dns_name = to_compatible_name(name)
    self.version = version
    self.pod_type = pod_type
    self.jina_deployment_name = jina_deployment_name
    self.shard_id = shard_id
    self.common_args = common_args
    self.deployment_args = deployment_args
    self.num_replicas = getattr(self.deployment_args, 'replicas', 1)
    self.k8s_namespace = k8s_namespace
    self.k8s_connection_pool = k8s_connection_pool
    self.k8s_deployments_addresses = k8s_deployments_addresses
def __init__(self, name: str, version: str, pod_type: PodRoleType, jina_deployment_name: str, shard_id: Optional[int], common_args: Union[('Namespace', Dict)], deployment_args: Union[('Namespace', Dict)], k8s_namespace: str, k8s_connection_pool: bool=True, k8s_deployments_addresses: Optional[Dict[(str, List[str])]]=None):
    self.name = name
    self.dns_name = to_compatible_name(name)
    self.version = version
    self.pod_type = pod_type
    self.jina_deployment_name = jina_deployment_name
    self.shard_id = shard_id
    self.common_args = common_args
    self.deployment_args = deployment_args
    self.num_replicas = getattr(self.deployment_args, 'replicas', 1)
    self.k8s_namespace = k8s_namespace
    self.k8s_connection_pool = k8s_connection_pool
    self.k8s_deployments_addresses = k8s_deployments_addresses