Unfortunately patriotism itself is highly political; the ultimate question of "my country, right or wrong" results in some people noticing that it is in fact wrong in some cases.
Do they not teach Clausewitz in the US military? "War is the continuation of politics by other means". Every shot fired in anger is a political act. Not the politics of the person firing it, but those directing the fire.
It is possible to try to be non-partisan, but an apolitical military is an oxymoron.
The US military is the guarantor of a host of political lines across the world; supporting South Korea or Taiwan or Israel or Germany or Bosnia is a political act.
You can't sign up and then disclaim responsibility for the political results of following orders "apolitically". The last people who tried that got shot at Nuremberg.