Isn't everyone ex-IDF (except for the orthodox)?
[1] Exempt status is given for the ultra orthodox, arabs[1.1] and people with major physical or mental health issues. There are probably some fringe ways I forgot/don't know about, but these are the major ones.
[1.1] historically the IDF only fought Arab nations/groups, so it does make sense not to make it mandatory to fight your own people (if you view it that way). The fact that they can't volunteer however... It is possible to volunteer to an alternative civil service though (or just not to volunteer, up to the individual)