Krylov complexity from integrability to chaos