When you are serving volunteer professional military, you take an oath to the Constitution, not to a policy or a president and you swear to obey the lawful orders of the democratically elected government. And so at the end of the day you could table your personal political views and do your job.