All these magnesium and potassium suggestions are cute, but the only thing that works for me is 3/4 teaspoon of baking soda stirred in a cup water with a glop of molasses. Take after a workout or anytime you feel cramps lurking. And if it works for me, it'll work for you. Nobody has cramps like me.
Steak, eggs, potatoes - fruits, nuts, berries and forage. Coconut milk and potent herbs and spices. Tea instead of coffee now and teeny amounts of kelp daily. Let's see how this does! Not really had dairy much, and gut seems better for it.