Autoreactive CD8+ T cells play a key role in type 1 diabetes (T1D), but the antigen spectrum that activates autoreactive CD8+ T cells remains unclear. Endoplasmic reticulum stress (ERS) has been implicated in β-cell autoantigen generation. Here, we analyzed the major histocompatibility complex class I (MHC-I)-associated immunopeptidome (MIP) of islet β-cells under steady and ERS conditions and found that ERS reshaped the MIP of β-cells and promoted the MHC-I presentation of a panel of conventional self-peptides. Among them, OTUB258-66 showed immunodominance, and the corresponding autoreactive CD8+ T cells were diabetogenic in nonobese diabetic (NOD) mice. High glucose intake upregulated pancreatic OTUB2 expression and amplified the OTUB258-66-specific CD8+ T-cell response in NOD mice. Repeated OTUB258-66 administration significantly reduced the incidence of T1D in NOD mice. Interestingly, peripheral blood mononuclear cells (PBMCs) from patients with T1D, but not from healthy controls, showed a positive IFN-γ response to human OTUB2 peptides. This study provides not only a new explanation for the role of ERS in promoting β-cell-targeted autoimmunity but also a potential target for the prevention and treatment of T1D. The data are available via ProteomeXchange with the identifier PXD041227.