As Rick said in post #2, remove the valve covers to see if you find anything obvious. Look close with a bright light at the edges and corners of the rocker arms to check for metal to metal signs and nicks, and also make sure that none of the rocker arm nuts are loose. Then look close a the inside of the valve covers for contact marks.
NEXT: (if you've rules out the rocker arms and valve covers) fire up the engine, and get it to the rpm it makes the noise( if it doesn't do it at idle rpm) which might require you to get a hand from a buddy. While the engine is making that noise, pull one spark plug boot off to see if the knocking noise stops. If it doesn't, then replace the boot, and pull the next boot off. Keep doing that one at a time. If the noise stops with any one of the plug boots being pulled off, with the engine running, and it returns as soon as the boot is replaced back onto the spark plug, then the corresponding cylinder is in question, and one of the likely possibilities for the noise in that case would be a worn connecting rod bearing that needs replacement.
What about the oil pan? Have you recently replaced it?