(CNN) -- Jay Carney is stepping down as White House press secretary, President Barack Obama announced on Friday.
Obama said Carney told him of his decision in April, and Carney later said he plans to leave the position in mid-June.
The President announced that deputy press secretary Josh Earnest will step into the role. Earnest grew up in Kansas City and attended the Barstow School and graduated in 1993. He later went to Rice University and graduated with a degree in political science.
Obama considers Carney "one of my closest friends."
"He's got good judgment. He has good temperament and he's got a good heart, and I will miss him a lot," Obama said.
Carney previously spent 21 years in journalism, including a stint as Washington bureau chief for Time magazine, and Obama noted that he went from one of those asking the questions to the person behind the podium in the White House briefing room.
He is Obama's second press secretary during the more than five years of his presidency.
Carney took over in 2011 when Robert Gibbs stepped down, and has been Obama's chief spokesman through budget battles with Congress, the 2012 reelection, the rocky Obamacare rollout, the controversy over the Benghazi terror attack, the Edward Snowden NSA leaks, and now the scandal engulfing the Veterans Affairs Department.
"It's been an amazing experience," Carney told reporters.
"In midlife you don't often make a whole new set of friends, and not just friends, but people you would fight by and for under any circumstances and that's certainly what I have been lucky enough to get over these past five and a half years," he said.
Carney said that he's had discussions about what's next for him but hasn't made any firm decisions.
He was a former director of communications for Vice President Joe Biden before ascending to the White House job he has now.
Carney's married to journalist Claire Shipman, a senior correspondent for ABC News.
As for Carney's successor, Obama called Earnest a "straight shooter and a great guy."
He said their history dates to the 2008 Iowa caucus, where Earnest served as Obama's communication's director in the Hawkeye State.
"As you know, his name describes his demeanor," the President said of Earnest.
By CNN Staff
CNN's Dana Davidsen contributed to this report.