What is the best way to mate a round pipe to a flat object? example handrail to a kick plate?

Looking for a best solution to mate round pipe to a flat surface (kickplate, steel channel, etc..).

SolidworksDrawings And Detailing