She's spent her formative years in the spotlight.

And Lea Michele revealed to Health magazine that she was diagnosed with PCOS (polycystic ovary syndrome) at the height of her Glee fame nearly a decade ago.

The 33-year-old actress struggled with 'weight gain and bad skin' before seeing a doctor who immediately recognized the issues and gave her expert opinion on how to fight back against her health problems.

Bold: Lea Michele revealed to Health magazine that she was diagnosed with PCOS (polycystic ovary syndrome) at the height of her Glee fame nearly a decade ago

'I was always able to eat what I wanted. But when I finished Glee and crept toward my 30th birthday, everything just halted,' Lea admitted. 'Around that same time, I also found out that I have PCOS (polycystic ovary syndrome), which is a very common condition. The side effects can be brutal—like weight gain and bad skin.'

Lea credited her dancing job with helping her stay active, but wanted to do more to stay healthy and fit, which meant taking a deeper look into what she was putting into her body.

'And then when I was in my late 20s, I realized I wanted to detox my body of all medications,' she said. 'That’s when everything happened—the return to bad skin and, this time, weight gain.

'I didn’t know what was going on. All people wanted to do was give me more medication. I don’t shun people for needing or wanting to take medication, but for me, I knew something wasn’t right.

Tough: The 33-year-old actress struggled with 'weight gain and bad skin' before seeing a doctor who immediately recognized the issues and gave her expert opinion on how to fight back against her health problems

'I didn’t know what was going on,' she said. 'All people wanted to do was give me more medication. I don’t shun people for needing or wanting to take medication, but for me, I knew something wasn’t right'

'I just felt medication wasn’t going to be the final cure.'

She found clarity after seeing a doctor and admitted that everything fell into place after receiving the diagnosis.

'Through diet, I have been able to manage it. But I am very fortunate,' Michele said. 'There are way more extreme versions of PCOS that women have a lot of difficulty with—mine is not as intense. Which is why I haven’t really talked about it, because there are women who have it so much more intense.'

Lea's remained focused on her health and wellness amid some challenging times in her life.

Tragic: In 2013, her boyfriend and Glee co-star Corey Monteith lost his battle with addiction and died from a toxic combination of heroin and alcohol in a Vancouver hotel room just months after seeking treatment for substance abuse; seen in 2012

In 2013, her boyfriend and Glee co-star Corey Monteith lost his battle with addiction and died from a toxic combination of heroin and alcohol in a Vancouver hotel room just months after seeking treatment for substance abuse.

Michele said that she's proud of herself for getting 'through a lot of tough moments in my life' despite the adversity.

'I came out a lot stronger than I ever imagined,' she said. 'Glee, just as it was, would’ve been tough in and of itself. But then everything that I experienced in my mid- to late 20s was very intense.'

Love was on the other side of those challenging times as she married Zandy Reich in March during a star-studded ceremony in Northern California.

'I have great people in my life, and I really fought hard to get through that and come out stronger,' she said. 'That is my greatest personal accomplishment.'