Is the Deep State Controlling Trump’s Decisions on North Korea?

Who is in charge of the US foreign policy on North Korea? Does the Deep State control Trump’s White House? If not, then why is Trump taking actions that are the exact opposite of what he promised to do?