GithubHelp home page GithubHelp logo

Comments (8)

ctaggart avatar ctaggart commented on August 30, 2024 1

Following the tutorial, I applied:

kubectl get -n emojivoto deploy -o yaml \
  | linkerd inject - \
  | kubectl apply -f -

I clicked around the port-forwarded web application a bunch, but I'm not getting anything to show up. Is there a minimum number of requests or something like that?

cameron@Azure:~$ linkerd -n emojivoto stat deploy
NAME       MESHED   SUCCESS   RPS   LATENCY_P50   LATENCY_P95   LATENCY_P99   TLS
emoji         1/1         -     -             -             -             -     -
vote-bot      1/1         -     -             -             -             -     -
voting        1/1         -     -             -             -             -     -
web           1/1         -     -             -             -             -     -

from emojivoto.

klingerf avatar klingerf commented on August 30, 2024

@ctaggart Hmm, interesting -- it looks like the <title> attribute of that page is loading, since it's displayed in your tab. Can you check your javascript console to see if the page is throwing javascript errors?

from emojivoto.

ctaggart avatar ctaggart commented on August 30, 2024

Can you check your javascript console to see if the page is throwing javascript errors?

There are no errors logged to the javascript console in Firefox or Chrome.

from emojivoto.

klingerf avatar klingerf commented on August 30, 2024

Hmm, ok, thanks for the quick reply. Can you also paste the output of curl -v http://localhost:8001/api/v1/namespaces/emojivoto/services/web-svc:http/proxy/?

from emojivoto.

ctaggart avatar ctaggart commented on August 30, 2024
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8001 (#0)
> GET /api/v1/namespaces/emojivoto/services/web-svc:http/proxy/ HTTP/1.1
> Host: localhost:8001
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Length: 678
< Content-Type: text/html
< Date: Tue, 27 Nov 2018 03:09:34 GMT
<

        <!DOCTYPE html>
        <html>
                <head>
                        <meta charset="UTF-8">
                        <title>Emoji Vote</title>
                        <link rel="icon" href="/api/v1/namespaces/emojivoto/services/web-svc:http/proxy/img/favicon.ico">

                        <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-60040560-4"></script>
                        <script>
                          window.dataLayer = window.dataLayer || [];
                          function gtag(){dataLayer.push(arguments);}
                          gtag('js', new Date());
                          gtag('config', 'UA-60040560-4');
                        </script>
                </head>
                <body>
                        <div id="main" class="main"></div>
                </body>

                        <script type="text/javascript" src="/api/v1/namespaces/emojivoto/services/web-svc:http/proxy/js" async=""></script>

* Connection #0 to host localhost left intact
        </html>

from emojivoto.

klingerf avatar klingerf commented on August 30, 2024

Ahh, interesting, I'm able to reproduce this locally as well. It looks like the emojivoto app doesn't work unless it's served from the root URL. Must be a javascript thing.

Instead of using kubectl proxy to view that app, can you try port forwarding instead? If you run:

kubectl -n emojivoto port-forward svc/web-svc 8899:80

Then you should hopefully see the app when you visit http://localhost:8899 in your browser.

from emojivoto.

ctaggart avatar ctaggart commented on August 30, 2024

Yes, the port-forward work-a-round works for me and I can proceed with linkerd evaluation. Would be nice to see the javascript thing fixed.

from emojivoto.

klingerf avatar klingerf commented on August 30, 2024

Hmm, yeah, that's unexpected. I saw your comment on linkerd/linkerd2#1451, which is a good place to track that. Will follow up there, and I'll rename the title of this issue to track fixing the javascript issue.

from emojivoto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.