<p>How do you set up environment variable for config. Could some one please explain in details. I am using windows home and trying to <code>docker-compose.yml</code> to <code>k8s</code> but when I do <code>kompose</code> up it says:
I have installed <code>kubectl</code> and <code>minikube</code> and dont know how to set the config file so this api can be started</p>

<p><code>Error while deploying application: Get http://localhost:8080/api: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.</code></p>

<p>Thanks by advance</p>

sks123245
<p>Kompose always refer to <a href="http://localhost:8080/" rel="nofollow noreferrer">http://localhost:8080/</a> by default. The problem is that as you are using minikube, your api server is in a different address. </p>

<p>To check the address of your API, run any kubectl command and get your API server address:</p>

<pre><code>$ kubectl get nodes -v6
</code></pre>

<p>Output:</p>

<pre><code>I0518 07:27:05.109476    3656 loader.go:375] Config loaded from file:  /home/christofoletti/.kube/config
I0518 07:27:05.138651    3656 round_trippers.go:443] GET https://192.168.39.6:8443/api/v1/nodes?limit=500 200 OK in 19 milliseconds
NAME       STATUS   ROLES    AGE     VERSION
cluster2   Ready    master   3d19h   v1.18.2
</code></pre>

<p>As you can see, we have <code>GET https://192.168.39.36:8443/api/v1/nodes?limit=500 200 OK</code>.</p>

<p>So, my API server address is <code>https://192.168.39.26:8443/</code>.</p>

<p>Now you can run <code>$ kompose up --server https://192.168.39.26:8443/</code> and Kompose will know where to send the request. </p>
