The Hasidim don't fight in the IDF, and they even believe there shouldn't be a state of Israel.
They might vote to create a single Palestinian state and then hope and pray that the Arabs don't slaughter them all when they take control.
Israel is about 20% religious, about half religious Zionist and half hareidi, which includes Lita’im, chassidim, and a few other groups.
Among the hareidi, a significant percentage do serve in the military, enough that they form a subgroup among hareidi called hardalim. There are hardal units in the IDF.
As hareidi become a larger proportion of Jewish Israel, the IDF will have to drop its negative attitude toward them and make accommodations.