You're misinterpreting what it means to find the asymptote of a function. It's NOT the same as finding the limit of the function.
And in your second attempt, you apparently set out to find the limit of the function, $\lim\limits_{x\to\infty}y(x)$ — which, as I said, is not the same thing, and which you didn't do correctly. Let me reiterate: once you said that you want to see what happens to $y$ as $x\to\infty$, you're talking about $\lim\limits_{x\to\infty}y(x)$. But if you're finding this limit with respect to $x$, you can't leave some of the $x$'s still in the "answer". As $x\to\infty$, not only does $1/x\to0$ in the denominator, but also $x\to\infty$ in the numerator; and as a result we find that
$$\lim_{x\to\infty}y(x)=\lim_{x\to\infty}\frac{x}{k+\frac{1}{x}}=\frac{\infty}{k+0}=\infty,$$
which is certainly true, but not particularly useful.
Finding an asymptote for a function $y(x)$ means that we need to find a linear function $ax+b$ such that $\lim\limits_{x\to\infty}[y(x)-(ax+b)]=0$. Your second approach doesn't address this question.