Handling electrical inside a galvanized pipe gazebo
It is not legal to use standard pipe as a wireway.
Standard pipe has a ridge that can cut the insulation.
If another code compliant wire way like flex is run inside the larger pipe that is code compliant (I use metal clad or MC cables in cases like this).
Any metal parts that may become energized require grounding so yes this framework with power will require grounding.