why are halogens and alkalie metals likely to form ions? explain your answer.
The octet rule isn't really a reason why. It's simply an observation as to what happens. The full answer is rather complex, but it mainly amounts to two properties: ionization energy (how much energy it takes to remove an electron) and electron affinity (the ability to gain electrons).
Simply put, alkali metals have relatively low ionization energies, so it is easy to remove electrons from the neutral atoms. They have unfavorable electron affinities, so they don't like to gain electrons.
On the other side of the periodic table, halogens are the opposite. They have favorable electron affinities, so it is favorable to gain electrons to form negative ions. They have very high ionization energies, so it is very difficult to remove electrons.
Once an atom has lost electrons to form an octet, the outermost electrons are in a lower shell, closer to the positively charged nucleus, so are much harder to remove. This is why they stop at the noble gas configuration.
The other end is a bit trickier, but once an electron has been added to a neutral atom, a negatively charged ion is formed. Adding a negative to a negative is always unfavorable (think of bringing two north poles on a magnet together). The reason it sometimes happens has to do with the very favorable formation of solid crystals and the efficiency of packing that results. In any case, once the octet is obtained, not only are you adding a negative to a negative, you are trying to add it to a higher level shell, farther from the nucleus, so there is very little attraction holding onto the electron.
Now, looking back at your original question, I notice that you are asking two completely different questions. The title of the question asks about covalent bonds, while the text asks about ionic bonds.