Sudden onset leg and foot cramps

Here's a new one. All night I have gotten foot and calf cramps. I drank the recommended amount of water today and have not gotten these at all during pregnancy until tonight. What the hell?