California has 23,000 men in the California National Guard, their army more or less. National Guard units were made to swear allegiance to the US Constitution after the US Civil war.
California has natural defenses like Mordor which is interesting, but at most California could raise 100,000 trained soldiers and a probably a million untrained militia. I give California about a week fighting against the US.