The Pittsburgh Penguins have agreed to terms with forward Eric Fehr to a three-year contract, it was announced today by executive vice president and general manager Jim Rutherford.

The deal runs through the 2017-18 season and has an average annual value of $2 million.

Fehr, 29, has played most of his 10-year NHL career with the Washington Capitals. He posted 19 goals, 33 points and a plus-8 in the 2014-15 campaign with Washington. His goal total was the second-highest mark of his career.

The 6-foot-4, 212-pound center was a key member of the Capitals’ penalty kill unit in ’14-15, logging 1:23 shorthanded minutes per game. The defensively reliable center won a career-high 52 percent of his faceoffs.

Fehr underwent elbow surgery June 3 and faces a recovery time of 4-6 months.

Fehr has been a plus or even nine times in his NHL career, and has broken the 30-point plateau three times, including each of the past two seasons.

He played parts of 10 NHL seasons with Washington and Winnipeg. The former first-round pick (18th overall) of the Capitals in the 2003 NHL Draft has appeared in 454 career games, notching 89 goals, 177 points and a plus-49.

Fehr’s best season came in 2009-10 when he posted career highs in goals (21), assists (t-18), points (39) and plus-minus (plus-18). Fehr scored two goals against the Penguins in the 2011 Winter Classic at Heinz Field in Washington’s 3-1 victory.

The Winkler, Manitoba native played parts of three seasons with Hershey of the American Hockey League. He posted 25 goals and 53 points for the Bears in 2005-06, chipping in eight goals and 11 points in 19 postseason games to help Hershey capture the Calder Cup.

Fehr played four seasons with Brandon of the Western Hockey League, totaling 146 goals and 277 points in 279 contests. He was named WHL Player of the Year in 2004-05 after leading the league in goals (59) and points (111). Fehr also led all league players with 32 postseason points (16G-16A) in 24 games that season.