Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain your ip address when visiting an appliation by trait #343

Open
zzxwill opened this issue Oct 15, 2021 · 3 comments
Open

Explain your ip address when visiting an appliation by trait #343

zzxwill opened this issue Oct 15, 2021 · 3 comments
Labels
good first issue Good for newcomers

Comments

@zzxwill
Copy link
Collaborator

zzxwill commented Oct 15, 2021

In the doc, users are asked to visit the application by the following command https://kubevela.io/zh/docs/next/quick-start#%E4%B8%80%E4%B8%AA%E6%9C%80%E7%AE%80%E5%8D%95%E7%9A%84%E7%A4%BA%E4%BE%8B, while your ip address is not well documented.
$ curl -H "Host:testsvc.example.com" http://<your ip address>/

You can see the endpoint or address of your ingress. By getting it, you can direct users to visit the console of a cloud provider or by listing the ingress ojbect.

➜  kubevela.io git:(main) kubectl get ingress
NAME             CLASS    HOSTS                 ADDRESS         PORTS   AGE
express-server   <none>   testsvc.example.com   8.210.233.186   80      13m
@zzxwill zzxwill added the good first issue Good for newcomers label Oct 15, 2021
@zzxwill
Copy link
Collaborator Author

zzxwill commented Oct 15, 2021

If there is an Ingress backend, you can visit the webapp by the domain.

➜  demo-1015 vela status first-vela-app
I1015 12:15:30.127161   40740 request.go:665] Waited for 1.012574189s due to client-side throttling, not priority and fairness, request: GET:https://47.242.250.36:6443/apis/apiextensions.k8s.io/v1?timeout=32s
About:

  Name:      	first-vela-app
  Namespace: 	default
  Created at:	2021-10-15 11:58:13 +0800 CST

Services:

  - Name: express-server
    Type: webservice
    NOT DIAGNOSED
    Traits:
      - ✅ ingress-1-20: Visiting URL: poc.c8cf3e761a86746c9ad1f054282232604.cn-hongkong.alicontainer.com, IP: 8.210.233.186
    Last Deployment:
      Created at: 2021-10-15 11:58:13 +0800 CST
➜  demo-1015 curl poc.c8cf3e761a86746c9ad1f054282232604.cn-hongkong.alicontainer.com
<pre>
Hello World


                                       ##         .
                                 ## ## ##        ==
                              ## ## ## ## ##    ===
                           /""""""""""""""""\___/ ===
                      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ /  ===- ~~~
                           \______ o          _,/
                            \      \       _,'
                             `'--.._\..--''
</pre>

@wonderflow
Copy link
Contributor

I'm not quite get what we should do in this issue. Would you like to send a pull request to refine it? @zzxwill

@zzxwill
Copy link
Collaborator Author

zzxwill commented Oct 17, 2021

People might not know what is your ip address. I was opening an issue as good first issue, intending someone to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants