def get_gateway_yamls(self) -> List[Dict]:
    import os
    test_pip = (os.getenv('JINA_K8S_USE_TEST_PIP') is not None)
    image_name = ('jinaai/jina:test-pip' if test_pip else f'jinaai/jina:{self.version}-py38-standard')
    cargs = copy.copy(self.deployment_args)
    cargs.env = None
    cargs.deployments_addresses = self.k8s_deployments_addresses
    from jina.helper import ArgNamespace
    from jina.parsers import set_gateway_parser
    taboo = {'uses_with', 'uses_metas', 'volumes', 'uses_before', 'uses_after', 'workspace', 'workspace_id', 'upload_files', 'noblock_on_start'}
    non_defaults = ArgNamespace.get_non_defaults_args(cargs, set_gateway_parser(), taboo=taboo)
    _args = ArgNamespace.kwargs2list(non_defaults)
    container_args = (['gateway'] + _args)
    if (not cargs.k8s_connection_pool):
        container_args.append('--k8s-disable-connection-pool')
    return kubernetes_deployment.get_deployment_yamls(self.dns_name, namespace=self.k8s_namespace, image_name=image_name, container_cmd='["jina"]', container_args=f'{container_args}', replicas=1, pull_policy='IfNotPresent', jina_deployment_name='gateway', pod_type=self.pod_type, port=self.common_args.port, env=cargs.env)
def get_gateway_yamls(self) -> List[Dict]:
    import os
    test_pip = (os.getenv('JINA_K8S_USE_TEST_PIP') is not None)
    image_name = ('jinaai/jina:test-pip' if test_pip else f'jinaai/jina:{self.version}-py38-standard')
    cargs = copy.copy(self.deployment_args)
    cargs.env = None
    cargs.deployments_addresses = self.k8s_deployments_addresses
    from jina.helper import ArgNamespace
    from jina.parsers import set_gateway_parser
    taboo = {'uses_with', 'uses_metas', 'volumes', 'uses_before', 'uses_after', 'workspace', 'workspace_id', 'upload_files', 'noblock_on_start'}
    non_defaults = ArgNamespace.get_non_defaults_args(cargs, set_gateway_parser(), taboo=taboo)
    _args = ArgNamespace.kwargs2list(non_defaults)
    container_args = (['gateway'] + _args)
    if (not cargs.k8s_connection_pool):
        container_args.append('--k8s-disable-connection-pool')
    return kubernetes_deployment.get_deployment_yamls(self.dns_name, namespace=self.k8s_namespace, image_name=image_name, container_cmd='["jina"]', container_args=f'{container_args}', replicas=1, pull_policy='IfNotPresent', jina_deployment_name='gateway', pod_type=self.pod_type, port=self.common_args.port, env=cargs.env)