Ball joint of earthmoving machinery