Question: are all astronauts in the military?
Answer: Prospective astronauts must have “at least three years of related, progressively responsible, professional experience” (Astronaut Selection and Training, PDF). ... Though most pilots are from the military, that is not a requirement to become an astronaut anymore.