You definitely should have reservations in advance for summer lodging in Ketchikan, Sitka, Glacier Bay (Gustavus}, and Skagway. They all depend on cruise ship passengers for most of their tourist income, so don't have a lot of lodging for non-cruisers.
Haines, Petersburg, and Wrangell don't get nearly as many cruisers, but are small towns that don't have a lot of lodging. Juneau is big enough and gets enough non-tourist visitors that it has lots of motels, B&Bs, etc. Some of them are even within a short distance of the ferry dock, which is miles from the downtown cruise ship dock where you likely went ashore on your cruise.
If you haven't been there before, you'll love Sitka. It is one of the most picturesque towns in Alaska and our favorite place to visit in the whole state. Dozens of bald eagles flying around the harbor and landing in the enormous Sitka spruce covering the tiny islets that dot the harbor were a highlight for us. And, if you are there on a clear evening, the sunset over the ocean, with the trees and volcanic cone in the foreground, is something you'll never forget. Just describing it makes me want to go back again! But you may find, as we did, that once the cruise ship passengers are tendered back to their ships, most of the eating establishments close up shop.