One of the biggest reasons that Germany surrendered is because they were running out of supplies and they were economically poor. They didn't have enough money to get more equipment. Not only did they have insufficient funds, but they were also stabbed in the back on the home front in 1916 when Ludendorf initiated war socialism.
Hope this helped!