Comments (8)
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.
@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.
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.
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.
* 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.
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.
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.
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)
- Failed to pull images HOT 5
- pprof endpoints HOT 6
- Update version number vote-bot-update.yml
- `make build` doesn't work with recent protocol
- "404" page is actually a 500 HOT 2
- The makefile target deploy-to-minikube is missing yaml file
- Remove api app
- Some emoji in emojivoto don't show up on older operating systems HOT 1
- Move vote-bot into its own pod for stat generation HOT 1
- Clarity / UX tweaks HOT 1
- Emoji on leaderboard look clickable but are not
- mitigate CrashLoopBackoff in lifecycle test app
- additional test dimensions in lifecycle test environment HOT 1
- consider renaming web deployment HOT 1
- Adding port-forward instructions to README
- the log of emojivoto-web HOT 2
- Missing LICENSE
- Add recommended k8s labels
- docker-compose example fails on MacOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emojivoto.