<p>I'm experimenting with using kompose on <code>k3s</code> to turn the compose file into a K8s file, but when I type <code>kompose up</code>, it asks me to enter a <code>username and password</code>, but I don't know what to write.</p>
<p>The specific output is as follows</p>
<pre><code># kompose up
INFO We are going to create Kubernetes Deployments, Services and PersistentVolumeClaims for your Dockerized application. If you need different kind of resources, use the 'kompose convert' and 'kubectl create -f' commands instead. 
 
Please enter Username: test
Please enter Password: test
FATA Error while deploying application: Get https://127.0.0.1:6443/api: x509: certificate signed by unknown authority
</code></pre>
<p>However, the <code>kompose convert</code> command was successfully executed</p>
<p>I would appreciate it if you could tell me how to solve it?</p>
<blockquote>
<p>The kompose version is <code>1.21.0 (992df58d8)</code>, and install it by 'curl and chmod'</p>
<p>The k3s version is <code>v1.17.3+k3s1 (5b17a175)</code>, and install it by 'install.sh script'</p>
<p>OS is <code>Ubuntu18.04.3 TLS</code></p>
</blockquote>

moluzhui
<p>I seem to have found my problem, because I use k3s the install.sh scripts installed by default, it will k8s configuration file stored in the <code>/etc/rancher/k3s/k3s.yaml</code> instead of k8s <code>~/.Kube/config</code>.</p>

<p>This caused kompose up to fail to obtain certs.</p>

<p>You can use the <code>/etc/rancher/k3s/k3s.yaml</code> copied to <code>~/.Kube/config</code>.</p>

<pre><code>cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
</code></pre>

<p>Then <code>kompose up</code> executes successfully.</p>
