Here we show that the pro-inflammatory signaling pathway IKK2/NFkB, is critical for both the generation and maintenance of the CD8+ TRM pool after infection. Here, NFKB1 is linked to infection.