From Halopedia, the Halo wiki
He joined the Marine Corps in 2555, two years after the supposed end of the Human-Covenant war. This is most likely a mistake on the part of the production company; they were likely unaware of Halo 3's ending, specifically regarding the date of the end of the war. It is possible he was involved in the various Covenant remnant conflicts after the war.
List of appearances