When it comes to domestic use america's military is finding themselves in a bind. I don't think we've seen a president that has pushed so hard for military use in relative peacetime. It's coming into more and more conflict with how the military has been trained and the principles they are held to. I think that internally the military is taking a hard look at what they can and should do about this.
They all took oaths. Enlisted members say this
"I, _____, do solemnly swear (or affirm) that I will support and defend the Constitution of the United States against all enemies, foreign and domestic; that I will bear true faith and allegiance to the same; and that I will obey the orders of the President of the United States and the orders of the officers appointed over me, according to regulations and the Uniform Code of Military Justice. So help me God."
Those regulations include the laws of war. All military members get yearly training on this. What is and isn't a combatant, what is and isn't a lawful order etc. This includes a duty and obligation to disobey illegal orders, but usually the process is to get clarification from one of their officers. An officer's oath of enlistment looks like this.
"I ___, do solemnly swear (or affirm) that I will support and defend the Constitution of the United States against all enemies, foreign and domestic; that I will bear true faith and allegiance to the same; that I take this obligation freely, without any mental reservation or purpose of evasion; and that I will well and faithfully discharge the duties of the office on which I am about to enter. So help me God. "
Note there is not a President mentioned there. The enlisted have a duty and obligation to disobey illegal orders, but officers play a key role in leading those units, and they have even greater obligations to their units legally. Enlisted members rejecting an order from some officer is one thing. Officers, or many officers rejecting an order is another.
I think what we are seeing is a careful balancing act. The military is going where they are told to go, but maybe not sending as many or being as aggressive as they administration would like. Stay involved enough to not be outright fired or replaced but try to hit the brakes on this mess and internally pushing back.