The F-35 B and C models need an external gun pod too..
"The missionized gun system designed for the F-35B and F-35C will be hard-mounted to the centerline station of the aircraft. This gun system will include the CTOL-common GAU-22/A derivative gun, a gun system control unit and drive assembly, and a helical linear linkless ammunition feed system contained in a conformal pod."