Remove all parts from the chicken cavity (usually in a bag); rinse and pat dry with a paper towel.
Salt the cavity with half of the salt and pepper. Place the garlic cloves, onion and lemon in the cavity of the chicken. Using kitchen twine, tie the legs of the chicken.
Mix together remaining spices with 2 tbsp oil to create a rub. Rub HALF of mixture on the breast side of the chicken.
Turn Instant Pot to saute setting. Add 1 tbsp oil. Place the chicken, breast side down, in the preheated Instant Pot.
Carefully rub the remaining spices on the other side of the chicken.
Allow the breast side to crisp up, 4-5 minutes. Carefully flip the chicken over to the other side, 4-5 more minutes.
If your Instant Pot came with a trivet, you can remove the chicken, add the trivet, and place whole chicken over trivet, breast side up. Add in the chicken stock, or water.
Place the lid on and lock it. Set to manual high pressure for 25 minutes. Once done, allow the Instant Pot to depressurize naturally, about 10-12 minutes.
Remove from Instant Pot. Transfer the chicken to a serving dish, or cutting board. Let the chicken rest for about 10 minutes before carving.