Nato was in no way bothered by Cuban or Vietnamese communism.
It’s explcitly to counter Russian influence on the continent, which at the time was communist. It’s not longer communist, but is clearly still a threat, which is why nato hasn’t become obsolete. Now nato is about two things, countering Islamic extremism, and Russia.