Why?
True, assuming the rump Red America isn't so enamored with states' rights that they allow individual states to handle that kind of thing. If not, it would instead have to be negotiated between "Blue America" and "Red America," but I expect that would be easy enough to work out. We manage to work out issues like that all the time with other countries, even though none are as close, culturally and historically, as the new Red and Blue Americas would be. For example, if you've ever flown to Europe, you're probably aware that there's a good chance that your plane will cross over another country en route (usually Canada, but also sometimes Denmark's Greenland, plus Iceland). There are treaties allowing for that. Red America and Blue America could negotiate similar treaties.
Each country would have an incentive to cooperate with the other, because each would be in a position where retaliatory non-cooperation would cause it serious economic issues (e.g., how would red America reach Alaska if effectively walled off by Blue America and Canada). In the event they decided to play hard ball with each other, though, "Blue America" would be in the better overall position, since it would likely be on better terms with both Canada and Mexico than their more petulant Red America cousins, giving them more alternatives (e.g., transit from New Mexico to California by way of Mexico).
With our military, of course. A hypothetical Blue America, along the lines I drew, would have a decent number of military bases, military contractors, and military personnel. California alone has 130,000 active duty military personnel -- the most of any state. Reserve forces might be a better indicator, though, since that tells you where people are really at home, versus where they happen to be stationed. Depending on which purple states you throw in which bucket, about 46% of reserve forces are in "Blue America," suggesting that if you split the military along the lines of where the individual soldiers considered their home state, you'd get something close to a 50/50 split, with slightly more sticking with the old Red America than going with Blue America.
Even if you go with a low-end estimate and imagine "Blue America" getting only 40% of the old US's military potency, with 60% staying with Red America, and even if you further imagine that the more dovish Blue America cut its military by a quarter after the division, such that it was only 30% as potent as the old United States, that would still make it the world second-leading super-power (after Red America). It would spend a little less than three times as much as the Russians on its military. Nobody, not even Red America, would be stupid enough to try to invade a country that militarily potent.
Of course, in an amicable split, there'd need to be negotiations about who gets what and what kinds of compensation has to be made (for example, if California is going to keep its share of the US military, it should also take on its share of the US federal debt that financed that military). Again, each side would have an incentive to work that out, since each would be screwed by an overly abrupt and ill-planned division -- for example, most weapons systems are built in a wide assortment of districts, for political reasons, so you'd need a reasonable transition period to consolidate the respective supply chains within each country, or both sides would wind up with a bunch of half weapons (e.g., a jet airplane's fuselage, but not its actual engine, which is manufactured in the other country). It would also make sense for both nations to remain part of NATO, for their mutual defense. Even if "Blue America" cut its military spending by a quarter, as discussed above, it would still be compliant with the current demand to spend 2% on defense.
Out of curiosity, I took a look at where the military suppliers are located. Of the top ten military contractors in the world, seven are based in the US. Of those, Lockheed is based in Maryland, Boeing in Illinois (though the lion's share of manufacturing is in Washington), Raytheon in Massachusetts, Northrop and General Dynamics in Virginia, and United Technologies in Connecticut. So, it would be a red/blue split, unless Virginia (which went for Hillary Clinton by a margin of over five points, and has gone blue in each of the last three elections) opted to go with "Blue America," in which case the new nation would have all the major defense contractors. They'd also have Ruger, Smith and Wesson, Savage, Colt, Mossberg, and Winchester. They'd also have the lion's share of top labs and technical universities, for developing new military technology, plus each of the military academies. So, defensibility shouldn't be an issue.