Husband- Getting Worse and Worse

So I have been married for about a year now and together for over 2. It hasn't always been easy as he was overseas for the first few months of our marriage. My husband is very tempormentale as he has a very bad past (family) and has even been deployed. I knew this from the beginning though and I'm usually the one who calms him down. Well lately in the last few months he underwent a lot of medical issues and surgeries. Since then I've noticed how mean he has been treating me. He is very hot and cold. He seems to only be nice when he's drunk or on his pain meds. Otherwise he's been getting jealous, being rude to me in front of friends, and plain just disrespecting me. He says things like I don't care right now, don't talk to me. There's more rude actions but I think the idea is out there. What should I do? I love him more then anything but this can't continue. I've also tried talking to him and like I said he's very hot and cold. Any advice?