def get_project_pod_spec(volume_mounts,<EOL>volumes,<EOL>image,<EOL>command,<EOL>args,<EOL>ports,<EOL>env_vars=None,<EOL>env_from=None,<EOL>container_name=None,<EOL>resources=None,<EOL>node_selector=None,<EOL>affinity=None,<EOL>tolerations=None,<EOL>image_pull_policy=None,<EOL>restart_policy=None,<EOL>service_account_name=None):
volume_mounts = to_list(volume_mounts, check_none=True)<EOL>volumes = to_list(volumes, check_none=True)<EOL>gpu_volume_mounts, gpu_volumes = get_gpu_volumes_def(resources)<EOL>volume_mounts += gpu_volume_mounts<EOL>volumes += gpu_volumes<EOL>ports = [client.V1ContainerPort(container_port=port) for port in ports]<EOL>pod_container = get_pod_container(<EOL>volume_mounts=volume_mounts,<EOL>image=image,<EOL>command=command,<EOL>args=args,<EOL>ports=ports,<EOL>env_vars=env_vars,<EOL>env_from=env_from,<EOL>container_name=container_name,<EOL>resources=resources,<EOL>image_pull_policy=image_pull_policy)<EOL>containers = [pod_container]<EOL>if service_account_name and not conf.get('<STR_LIT>'):<EOL><INDENT>service_account_name = None<EOL><DEDENT>return client.V1PodSpec(restart_policy=restart_policy,<EOL>security_context=get_security_context(),<EOL>service_account_name=service_account_name,<EOL>containers=containers,<EOL>volumes=volumes,<EOL>node_selector=node_selector,<EOL>affinity=affinity,<EOL>tolerations=tolerations)<EOL>
Pod spec to be used to create pods for project: tensorboard, notebooks.