Harry Kane and Thomas Müller were on target for Bayern Munich as Vincent Kompany oversaw his first competitive game in charge at the Allianz Arena.