A Jefferson City man avoided a potential death penalty by pleading guilty in the stabbing deaths of his ex-girlfriend and her boyfriend in 2016.

JEFFERSON CITY — A Jefferson City man avoided a potential death penalty by pleading guilty in the stabbing deaths of his ex-girlfriend and her boyfriend in 2016.

Brandon Rapier, 30, pleaded guilty Tuesday to two counts of first-degree murder and armed criminal action in the deaths of Micah Hall and Ciera Kolb, both 27, in November 2016, The Jefferson City News-Tribune reported.

Rapier will be formally sentenced at a later date. The plea agreement calls for him to serve two life sentences without parole, to run consecutively.

Before the stabbings, Rapier posted comments on social media about being "betrayed" by his ex-girlfriend and a friend, according to court documents. Police said Rapier had a prior relationship with Kolb, who had taken out a protection order against Rapier.

At the time of the killings, Rapier was on parole for a second-degree assault conviction after a 2014 knife attack.