Brown ground beef and onions. Most recipes suggest using the saute function on the Instant Pot for this step, but I usually do it separetely and then add to the pot when finished.
Add spices to taste. I rarely ever just use the ones mentioned. Things like dried basil, oregano, onion powder etc. all add nice flavour.
Add spaghetti sauce and 2 cups of water. I usually use some of the water to rinse out the spaghetti sauce from the jar.
Very important.......break spaghetti into three lenths and add to pot in a loose, criss-cross fashion.
Press spaghetti into liquid but do not stir.
Place lid on pot and turn pressure valve to lock
Select manual setting and timer for 8 minutes.
Quick release steam valve and remove lid.
I like to stir the mixture and let it sit for about 5 minutes then serve.