I don’t think most jobs need a comparison to a military hierarchy. In general, lives are not on the line.
It is entirely possible to be friends with employees. You are not a king, or a despot, or a colonel in the armed forces. The first big mistake new managers make is to try to still act like a single contributor. The second one is taking the management part of the job too seriously.