Can you retire after 20 years of serving in the military?

You may be suprised that many people can’t actually retire after 20 years of service. In fact, I’ve never met anyone who has. How can you set yourself up for retirement after serving?