You can ask the same question of two knights at a time. Split the pile into two halves and ask any two knights "is the treasure in this half?" about the same half. If they both answer the same, they are both lying and you know what the truth is. Split the half that contains the treasure and one of them (knowing they lie) if one of the new smaller piles contains the treasure. If your first pair of knights gives different answers, you can ask any third knight the same question, to work out which of your pair is lying and which is telling the truth. After the first question, you only need ask one knight at a time to continue your binary search.
If you didn't ever find the truth telling knight, you'd ask 2 to get it to 1000, then 1 each to get it to 500, 250, 125, 63 (I'm assuming the treasure is in the larger group to keep choosing the worst case), 32, 16, 8, 4, 2, and finally to 1 for a total of 11 questions.
If otoh you got diverging answers on the first go, you'd ask 3 to get it to 1000, then 1 each to 500, 250, 125, 62 (going best case this time), 31, 15, 7, 3, and again being lucky the first of those three is the treasure for a total of 12.
So if your definition of minimum includes good luck, 11. If it means minimum even with the worst luck, 12.