Irony is imho much more complex and variegated, but a simple example would be any sort of self-deprecating humor, where someone is making fun of the mismatch between their aspirations and their capacity to achieve them. Irony isn't necessarily mean, whereas sarcasm is always a little bit mean even if it's mild.
That doesn't preclude it from being friendly. Part of the friend experience is jockingly busting each others balls ocassionally.
The man who is brutally honest enjoys the brutality as much as the honesty. Possibly more.
Another thing in the domain of "friendly" that this brings to mind is "fire".
I have oft experienced this metaphorical friendly fire but they never seem to be as therapeutic as well-targeted irony :)
Well, I'm a jock, if I may say so myself, and I do ocassionally deploy brutal honesty.
Though I was talking about sarcasm and playful busting of balls in general, not necessarily through brutal honestly. Could be sarcastic and outlandish or fan, not necessarily honest.
The way I see it, the non-friendly type shares a lot in common with the concept of shibboleth. Which is to say, you can absolutely make sarcastic insults to the detriment of someone else for your own, or a friend's enjoyment, by relying on shared exclusive knowledge. (In essence, holding that shared context above the other person in contempt) However, you can also just be abrasive for your own enjoyment, and that's something entirely differently. (Sadism, for example, is not inherently sarcastic) People frequently confuse the two, but without ironic context - a knowledge of false belief - it is not ironic, and therefore not sarcasm.