Robert Gates retires as defense secretary at the end of this month, ending a career in government that began 45 years ago. Gates has served eight presidents in both parties, including as CIA director and Pentagon boss.