Late Injector
There's a good chance you have a late injector. Try this simple test:
With the engine warmed up and idling, open each compression release in turn. The knock will most likely stop when you open the release on the affected cylinder. If so, that means you're not dealing with any kind of engine mount/shaft/alignment issue, it's an engine issue.
If you can make the knock go away by opening the compression release on the affected cylinder, then try the next step. With all cylinders operating, engine warmed up and idling, rapidly give the engine full throttle. If the knock gets worse before it gets better, it's probably a worn bearing.
Once the engine is running at full RPM, rapidly pull the throttle back to idle. If the knock gets worse, it's probably piston slap (piston is loose in the cylinder and clatters around).
If though, as I suspect, your knock at idle goes away when you're at higher RPM, and neither of the two actions above cause it to get worse, you probably just have a late injector. The best way to be sure is to swap injectors between cylinders and see if the problem follows the injector. But the easiest thing to do is to pull the bowl on your primary filter, fill it with injector cleaner, reinstall it and bleed the filter, start the engine, and run it for about a minute or so to get the cleaner into the injectors. Then shut the engine down for about a half hour. I bet when you restart it your knock will be gone.
Good luck.