Combine onion, garlic, pickling spices, and water in the insert of a 6-quart Instant Pot. Place the corned beef, fat side up, on a rack on top of the onions. Pour in the beer.
Seal lid and cook at High pressure for 85 minutes, with a 20 minute natural release. Remove corned beef from the IP and tent with foil. Strain the cooking liquid.