Gates was speaking in Japan on Friday , during a week-long Asia tour focused on the threat posed by nuclear-armed North Korea and the increasing military assertiveness in the region of Pyongyang 's only major ally China .