It - refers to the whole situation just described, ie being in a small tank with people drumming on it. You - is an impersonal reference, suggesting 'anyone'. eg You should always be polite.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.