After three decades of calling every Yankees game on radio, John Sterling’s consecutive streak will end this week in Tampa, The Post has learned.

Sterling, who turns 81 on Thursday, July 4, will be replaced on his birthday by YES/ESPN’s Ryan Ruocco on the broadcast. Sterling’s streak is at 5,058 consecutive games, including playoffs, entering Tuesday’s Subway Series game, according to the Yankees.

Sterling said he has not been feeling 100 percent, but did not get into specifics.

“For the moment, I’m a little under the weather,” Sterling told The Post. “I’ve put in the time. I want to feel better and they think this is the time for me to do it — and I agree.”

Suzyn Waldman, Sterling’s longtime partner, will work with Ruocco. Sterling will be on the mic for the Subway Series games against the Mets.

The four-game respite will give Sterling an extended break with the All-Star break coming after the Tampa series. The Yankees have a 10-game homestand to begin the second half.

WFAN executives have encouraged Sterling to take some time off to stay strong and preserve his health during the long season.

During his first year as the radio voice of the Yankees in 1989, Sterling missed two games due to the death of his sister, Jane. Since then, he has had a Gehrig-like run.

“I thought it was very nice I was able to do it,” Sterling said.

For Sterling, the streak has been a source of pride and, as he has noted, good fortune, as he has managed to stay healthy during his 30 years with the franchise.

Sterling has called more play-by-play than anyone since he and Waldman first teamed together since 2004. Sterling has taken the lead for the full nine innings, as opposed to the more traditional setup in which the two radio announcers divvy up the call of the action.

The last time Sterling missed a Yankees game, Don Mattingly was the team’s first baseman and Deion Sanders played the outfield in the Bronx.