gNB DU is the one deployed close or along with the Radio Unit. UEs always interfaced with Radio Unit through air interface and Radio Units are connected gNB DU.
DU as name suggests is distributed units, there could be more than one distributed units deployed and they talk to Central Unit(CU).
CU and DU communicate using and interface called F1.