How wad a knights relationship to a lord was like?

They were nobility too and to become a knight a boy was sent to another noble family at age 7 and was trained. He became a knight at 21. A knight swore loyalty to the king and that he would give his life to protect him.