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

Update examples to use external hostname on AWS #86

Merged
merged 1 commit into from
Feb 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/jenkins-plus/jobs/hello_world/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script>node {
def currentVersion = getCurrentVersion()
def newVersion = getNextVersion(currentVersion)
def frontendIp = kubectl(&quot;get svc l5d -o jsonpath=\&quot;{.status.loadBalancer.ingress[0].ip}\&quot;&quot;).trim()
def frontendIp = kubectl(&quot;get svc l5d -o jsonpath=\&quot;{.status.loadBalancer.ingress[0].*}\&quot;&quot;).trim()
def originalDst = getDst(getDtab())

stage(&quot;clone&quot;) {
Expand Down
28 changes: 14 additions & 14 deletions k8s-daemonset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ curl -s https://raw.githubusercontent.com/BuoyantIO/linkerd-viz/master/k8s/linke
View the linkerd admin dashboard:

```bash
L5D_INGRESS_IP=$(kubectl get svc l5d -o jsonpath="{.status.loadBalancer.ingress[0].ip}")
open http://$L5D_INGRESS_IP:9990 # on OS X
L5D_INGRESS_LB=$(kubectl get svc l5d -o jsonpath="{.status.loadBalancer.ingress[0].*}")
open http://$L5D_INGRESS_LB:9990 # on OS X
```

Note: Kubernetes deploys loadbalancers asynchronously, which means that there
Expand All @@ -187,47 +187,47 @@ is, wait until the external IP is available, and then re-run the command.
If you deployed namerd, visit the namerd admin dashboard:

```bash
NAMERD_INGRESS_IP=$(kubectl get svc namerd -o jsonpath="{.status.loadBalancer.ingress[0].ip}")
open http://$NAMERD_INGRESS_IP:9990 # on OS X
NAMERD_INGRESS_LB=$(kubectl get svc namerd -o jsonpath="{.status.loadBalancer.ingress[0].*}")
open http://$NAMERD_INGRESS_LB:9990 # on OS X
```

### Zipkin

If you deployed zipkin, load the Zipkin UI:

```bash
ZIPKIN_IP=$(kubectl get svc zipkin -o jsonpath="{.status.loadBalancer.ingress[0].ip}")
open http://$ZIPKIN_IP # on OS X
ZIPKIN_LB=$(kubectl get svc zipkin -o jsonpath="{.status.loadBalancer.ingress[0].*}")
open http://$ZIPKIN_LB # on OS X
```

### Test Requests

Send some test requests:

```bash
http_proxy=$L5D_INGRESS_IP:4140 curl -s http://hello
http_proxy=$L5D_INGRESS_IP:4140 curl -s http://world
http_proxy=$L5D_INGRESS_LB:4140 curl -s http://hello
http_proxy=$L5D_INGRESS_LB:4140 curl -s http://world
```

If you deployed namerd, then linkerd is also setup to proxy edge requests:

```bash
curl http://$L5D_INGRESS_IP
curl http://$L5D_INGRESS_LB
```

If you deployed NGINX, then you can also use that to initiate requests:

```bash
NGINX_IP=$(kubectl get svc nginx -o jsonpath="{.status.loadBalancer.ingress[0].ip}")
curl -H 'Host: www.hello.world' http://$NGINX_IP
curl -H 'Host: api.hello.world' http://$NGINX_IP
NGINX_LB=$(kubectl get svc nginx -o jsonpath="{.status.loadBalancer.ingress[0].*}")
curl -H 'Host: www.hello.world' http://$NGINX_LB
curl -H 'Host: api.hello.world' http://$NGINX_LB
```

### linkerd-viz dashboard

View the linkerd-viz dashboard:

```bash
L5D_VIZ_IP=$(kubectl get svc linkerd-viz -o jsonpath="{.status.loadBalancer.ingress[0].ip}")
open http://$L5D_VIZ_IP # on OS X
L5D_VIZ_LB=$(kubectl get svc linkerd-viz -o jsonpath="{.status.loadBalancer.ingress[0].*}")
open http://$L5D_VIZ_LB # on OS X
```
11 changes: 4 additions & 7 deletions k8s-daemonset/k8s/linkerd-ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,15 @@ spec:
args:
- /io.buoyant/linkerd/config/config.yaml
ports:
- name: ingress
containerPort: 4142
hostPort: 4142
- name: incoming
containerPort: 4141
hostPort: 4141
- name: outgoing
containerPort: 4140
hostPort: 4140
- name: incoming
containerPort: 4141
- name: ingress
containerPort: 4142
- name: admin
containerPort: 9990
hostPort: 9990
volumeMounts:
- name: "l5d-config"
mountPath: "/io.buoyant/linkerd/config"
Expand Down
7 changes: 2 additions & 5 deletions k8s-daemonset/k8s/linkerd-namerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,15 @@ spec:
args:
- /io.buoyant/linkerd/config/config.yaml
ports:
- name: incoming
containerPort: 4141
hostPort: 4141
- name: outgoing
containerPort: 4140
hostPort: 4140
- name: incoming
containerPort: 4141
- name: external
containerPort: 4142
hostPort: 4142
- name: admin
containerPort: 9990
hostPort: 9990
volumeMounts:
- name: "l5d-config"
mountPath: "/io.buoyant/linkerd/config"
Expand Down
6 changes: 2 additions & 4 deletions k8s-daemonset/k8s/linkerd-tls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,13 @@ spec:
args:
- /io.buoyant/linkerd/config/config.yaml
ports:
- name: incoming
containerPort: 4141
hostPort: 4141
- name: outgoing
containerPort: 4140
hostPort: 4140
- name: incoming
containerPort: 4141
- name: admin
containerPort: 9990
hostPort: 9990
volumeMounts:
- name: "l5d-config"
mountPath: "/io.buoyant/linkerd/config"
Expand Down
6 changes: 2 additions & 4 deletions k8s-daemonset/k8s/linkerd-zipkin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,13 @@ spec:
args:
- /io.buoyant/linkerd/config/config.yaml
ports:
- name: incoming
containerPort: 4141
hostPort: 4141
- name: outgoing
containerPort: 4140
hostPort: 4140
- name: incoming
containerPort: 4141
- name: admin
containerPort: 9990
hostPort: 9990
volumeMounts:
- name: "l5d-config"
mountPath: "/io.buoyant/linkerd/config"
Expand Down
6 changes: 2 additions & 4 deletions k8s-daemonset/k8s/linkerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,13 @@ spec:
args:
- /io.buoyant/linkerd/config/config.yaml
ports:
- name: incoming
containerPort: 4141
hostPort: 4141
- name: outgoing
containerPort: 4140
hostPort: 4140
- name: incoming
containerPort: 4141
- name: admin
containerPort: 9990
hostPort: 9990
volumeMounts:
- name: "l5d-config"
mountPath: "/io.buoyant/linkerd/config"
Expand Down