<p><a href="https://marketplace.visualstudio.com/items?itemName=ballerina.ballerina" rel="nofollow noreferrer">Ballerina extension</a> was installed successfully in visual code. 
Also I configured <code>ballerina.home</code> to point to the installed package </p>

<pre><code>ballerina.home = "/Library/Ballerina/ballerina-0.975.1"
</code></pre>

<p>Visual code is linting correctly. However, when I introduced <code>@kubernetes:*</code> annotations:</p>

<pre><code>import ballerina/http;
import ballerina/log;

@kubernetes:Deployment {
    enableLiveness: true,
    image: "ballerina/ballerina-platform",
    name: "ballerina-abdennour-demo"
}

@kubernetes:Service {
    serviceType: "NodePort",
    name: "ballerina-abdennour-demo"

}
service&lt;http:Service&gt; hello bind { port: 9090 } {
    sayHello (endpoint caller, http:Request request) {
        http:Response res = new;
        res.setPayload("Hello World from Ballerina Service");
        caller -&gt;respond(res) but { error e =&gt; log:printError("Error sending response", err = e)};

    }
}
</code></pre>

<p>VisualCode reports an error :</p>

<pre><code>undefined package "kubernetes"
undefined annotation "Deployment"
</code></pre>

<p>Nevertheless, I have minikube up and running, and I don't know if I need another extension, so VisualCode can detect running clusters? </p>

<p>Or is it a package that is missing and should be installed inside Ballerina SDK/ Platform?</p>

<h2>UPDATE</h2>

<p>I am running <code>ballerina build file.bal</code>, and I can see this errors :</p>

<p><a href="https://i.stack.imgur.com/atVV8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/atVV8.png" alt="enter image description here"></a></p>

<p>Any thoughts ?</p>

Abdennour TOUMI
<p>Solved! Just add the <code>import</code> instruction at the beginning of the file</p>

<pre><code>import ballerinax/kubernetes;
</code></pre>

<p>Note, it is <code>ballerinax/kubernetes</code> and not <code>ballerina/kubernetes</code> (add <code>x</code>)</p>
