onepanelio / onepanel

The open source, end-to-end computer vision platform. Label, build, train, tune, deploy and automate in a unified platform that runs on any cloud and on-premises.
https://docs.onepanel.ai/
Apache License 2.0
716 stars 69 forks source link

local deploy error #914

Closed pingchesu closed 3 years ago

pingchesu commented 3 years ago

Describe the bug

opctl app status error I followed the quickstart tutorial, and deploy onepanel with microk8s. All the steps work fine. However, when I finished KUBECONFIG=./kubeconfig opctl apply, the console shows


In your /etc/hosts file, add '192.168.99.0' and point it to cv-trainer.japaneast.cloudapp.azure.com

In your DNS, add an A record for *.japaneast.cloudapp.azure.com and point it to '192.168.99.0'
Once complete, your application will be running at http://cv-trainer.japaneast.cloudapp.azure.com

And I run opctl app status, but I got the error:

Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused

I check the listening port with following command but get nothing:

sudo netstat -tnlp | grep 8080

Then I execute the following command:

microk8s kubectl get pods -A

image

It's seems the service is running.

Have you ever encounter this problem?

Our any suggestion to fix this problems?

Many thanks!!

opctl version

$ opctl version

CLI version: 0.21.0
Manifest version: v0.21.0
API version: v0.21.0
Web UI version: v0.21.0
$ snap microk8s info

image

Vafilor commented 3 years ago

Hi @pingchesu ,

When deploying locally, you can use any domain/fqdn. I usually use

domain: "onepanel.test"
fqdn: "app.onepanel.test"

The message about the A record might be a bug when using microk8s, I'll look into it.

Also, when running app status, make sure to use the same kubeconfig file.

KUBECONFIG=./kubeconfig opctl app status
pingchesu commented 3 years ago

@Vafilor Really thanks!! The following command works for me

KUBECONFIG=./kubeconfig opctl app status

image

However my deploy situation is that I have to create a remote VM on cloud (Not aks,gks,eks), the only way I can access to VM is through ssh or browser. Can I access the onepanel (with microk8s deploy) from remote by using browser? For example once I deployed onepanel with microk8s on my remote VM Can I access onepanel UI by: http:{my_server_ip}:{my_server_expose_port} ?

Vafilor commented 3 years ago

@pingchesu

Sure thing.

Yes, but there are a few additional steps to do so.

I just updated our docs to document how to do this.

https://docs.onepanel.ai/docs/deployment/configuration/remote-microk8s

pingchesu commented 3 years ago

@Vafilor Really appreciate for the document!!! I got stuck when using nginx as proxy yesterday!! I will follow the remote-microk8s document and try it later!!

rushtehrani commented 3 years ago

Closing assuming this is resolved, feel free to open if issue is not resolved.

skytodmoon commented 2 years ago

@Vafilor Really appreciate for the document!!! I got stuck when using nginx as proxy yesterday!! I will follow the remote-microk8s document and try it later!!

Hi, guys. Have you successed to deploy the onpanel on a local machine, I met the same problem.