Leonard Ortiz/MediaNews Group/Orange County Register/Getty Travis Barker
The Blink-182 rocker, 46, announced the news on Instagram Thursday evening, alongside a photo of himself shirtless, wielding drumsticks.
"Covid sucks🤬 I'd rather be playing drums," Barker wrote in the caption.
Barker's diagnosis comes weeks after the musician was hospitalized for "life-threatening" pancreatitis in late June.
Never miss a story — sign up for PEOPLE's free daily newsletter to stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human-interest stories.
Steve Jennings/WireImage Travis Barker
On June 28, Barker found himself in a life-and-death situation when he was hospitalized due to pancreatitis, an inflammation of the organ that aids in digestion and regulating blood sugar.
He has since updated his Instagram followers that he is doing "much better," and was photographed last month walking outside his recording studio in Calabasas, California.
"Oh what a scary and emotional week it has been," she wrote on Instagram in July. "Our health is everything and sometimes we take for granted how quickly it can change."
RELATED VIDEO: Travis Barker Hospitalized for Pancreatitis After "Complaining of Cramps": Source
Barker recently hit the road to perform on Machine Gun Kelly's Mainstream Sellout Tour with Kardashian by his side, having first returned to the stage last month in his first public performance since his health scare.
The musician surprised the crowd at The Kia Forum in Los Angeles while joining pal Kelly, 32, on stage. Kardashian, 43, was also in attendance at the event to support her husband.
A week before the performance, Barker and Kardashian updated fans on his well-being, and the reality TV star said she was "so grateful to God for healing my husband."
The Poosh founder also said she was grateful to their fans' prayers and the specialists, doctors and nurses at Cedars-Sinai Medical Center in Los Angeles "for taking such wonderful care" of them.