According to the deal, he agreed to make restitution to the victims, paying "approximately $50,000" to each who has requested it.
While initially facing a 20-year jail term, TMZ reported that prosecutors were seeking a sentence of between four and seven years.
Under the plea deal, Salling will register as a sex offender and participate in counseling or psychiatric treatment.
Salling appeared in all six seasons of the hit television show Glee, which ended in 2015.
In March, Salling reached a $2.7m settlement with a woman who sued him for sexual battery, claiming Salling forced her to engage in unprotected sex.
The sentencing comes almost two years after police entered his home using a battering ram and discovered the images on his computer during a raid.
Following the 35-year-old's release from prison, he must stay 100 feet away from schoolyards and parks, public swimming pools, playgrounds, and video arcade facilities and will be supervised for 20 years.
He was subsequently fired from his starring role in the miniseries "Adi Shankar's Gods and Secrets" a few days later.