Here, we showed that antigen expression in the ER is crucial to prime CD8+ T-cell-mediated diabetes. Here, CD8A is linked to diabetes mellitus.