One potential solution to this dilemma is to create what's known as a CD ladder. This involves splitting your money into several equal parts and using it to buy CDs with various maturities. For example, if you have $10,000, you might open five different CDs with maturities of one, two, three, four, and five years.
The idea is that some of your money will always be within one year of maturity and some will be locked in at longer-term interest rates. If you need the money as it matures, you can use it. But if you don't, you can simply reinvest it in a new five-year CD once it matures.