Can a soldier be discharged from the army for being overweight with 18 years of service?

Yes, and it seems like the closer you get to retirement the more stringent they get--stuff that would get you an Summary Article 15 at 4 years will get you thrown out at 18.