There's no apartheid in Israel itself but let's not get into that.
Expansion of settlements in the west bank. True. I don't understand how that's a provocation to Gazans to rape and murder random Israeli civilians. It's also true that Netanyahu pursued a divide and conquer approach. Again you're trying to claim that Israel's support of Hamas' rule in Gaza is provocation for Hamas to launch attacks on Israel civilians which makes no sense.
EDIT: To be fair the legal question of "when does an occupation end" is complicated. Gaza was occupied from Egypt and Egypt does not want it back. The uni-lateral withdrawal of Israel without a peace agreement left Gaza in a weird legal situation. This is why despite Gaza being under Palestinian control and not occupied the legal state of occupation is perhaps not fully resolved. There's reality on the ground though (not occupied) and international law status (debated).