The Belgian, who had been nursing a virus in recent days, was coaching the team before feeling unwell and being rushed to hospital.
"Vincent Kompany had to seek medical treatment on Friday after collapsing during training for FC Bayern's amateurs. The first-team coach had been watching the second team's session," Bayern said in a statement.
"Kompany will undergo thorough examination in the hospital and remain in medical care. For the time being, his coaching staff will manage training and match operations."
The Bundesliga leaders, who drew 2-2 at home against Arsenal in the Champions League earlier this week, are due to travel to Freiburg on Sunday.
Reuters has reached out to the club for a comment.
