Set the Instant Pot to Sauté and heat until hot.
Add the ground turkey or beef and kosher salt; cook while breaking up the meat with a wooden spoon until mostly browned, about 3 minutes.
Add the diced onion and minced garlic and continue to sauté until the onion is softened, about 3–4 minutes.
Press Cancel. Pour in the water and scrape the bottom of the pot with a wooden spoon to deglaze and remove any browned bits to prevent a burn notice.
Add the spaghetti, breaking the strands in half if needed so they fit; spread the pasta evenly but do not stir. Pour the marinara sauce over the pasta so it covers the noodles.
Close and lock the lid. Cook on high pressure for 9 minutes.
When the cook time is up, perform a quick release by turning the valve to venting to release steam, then open the lid.
Stir the pasta and sauce to combine. Serve topped with grated Parmesan if desired.