I have cooked a few times on Camino, some albergues have terrific kitchens and nearby shops. Linares, just after O'Cebreiro has no restaurant and you pretty much have to cook your own dinner there. Expect some chances to cook, but don't take any equipment. Keep your pack as light as possible...