The Kansas City Royals have agreed to terms on a two-year, $17 million deal with Jordan Lyles.

Lyles, 33, has pitched for seven teams over 12 seasons. He had a 4.42 ERA with the Baltimore Orioles this past year.