NASCAR Cup Series champion Kevin Harvick has signed a two-year contract extension with Stewart-Haas Racing through the 2023 season.