Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Update Kubernetes proxy URLs (#3405)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Zhong authored and joshfischer1108 committed Nov 28, 2019
1 parent 4bca2e5 commit 06b5acc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions deploy/kubernetes/general/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ $ kubectl proxy -p 8001
2. Verify we can access the API server:

```shell
$ curl http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-apiserver:9000/api/v1/version
$ curl http://localhost:8001/api/v1/namespaces/default/services/heron-apiserver:9000/proxy/api/v1/version
{
"heron.build.git.revision" : "bf9fe93f76b895825d8852e010dffd5342e1f860",
"heron.build.git.status" : "Clean",
Expand All @@ -90,7 +90,7 @@ $ curl http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-apis
3. Set service_url:
```shell
$ heron config kubernetes \
set service_url http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-apiserver:9000 \
set service_url http://localhost:8001/api/v1/namespaces/default/services/heron-apiserver:9000/proxy \
org.apache.heron.examples.api.AckingTopology acking
```

Expand All @@ -102,5 +102,5 @@ org.apache.heron.examples.api.AckingTopology acking

5. View heron ui:
```
http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-ui:8889
http://localhost:8001/api/v1/namespaces/default/services/heron-ui:8889/proxy
```
6 changes: 3 additions & 3 deletions deploy/kubernetes/minikube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $ kubectl proxy -p 8001
2. Verify we can access the API server:

```shell
$ curl http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-apiserver:9000/api/v1/version
$ curl http://localhost:8001/api/v1/namespaces/default/services/heron-apiserver:9000/proxy/api/v1/version
{
"heron.build.git.revision" : "bf9fe93f76b895825d8852e010dffd5342e1f860",
"heron.build.git.status" : "Clean",
Expand All @@ -89,7 +89,7 @@ $ curl http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-apis
3. Set service_url:
```shell
$ heron config kubernetes \
set service_url http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-apiserver:9000 \
set service_url http://localhost:8001/api/v1/namespaces/default/services/heron-apiserver:9000/proxy \
```

4. Submit an example topology:
Expand All @@ -100,5 +100,5 @@ org.apache.heron.examples.api.AckingTopology acking

5. View heron ui:
```
http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-ui:8889
http://localhost:8001/api/v1/namespaces/default/services/heron-ui:8889/proxy
```
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private KubernetesConstants() {
}

public static final String JOB_LINK =
"/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard/#/pod";
"/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy/#/pod";


public static final Pattern VALID_POD_NAME_REGEX =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Success! You can now manage Heron topologies on your GKE Kubernetes installation

```bash
$ heron submit kubernetes \
--service-url=http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-apiserver:9000 \
--service-url=http://localhost:8001/api/v1/namespaces/default/services/heron-apiserver:9000/proxy \
~/.heron/examples/heron-api-examples.jar \
org.apache.heron.examples.api.AckingTopology acking
```
Expand Down Expand Up @@ -445,7 +445,7 @@ That would enable you to manage topologies without setting the `--service-url` f

The [Heron UI](../../../heron-ui) is an in-browser dashboard that you can use to monitor your Heron [topologies](../../../../concepts/topologies). It should already be running in your GKE cluster.

You can access [Heron UI](../../../heron-ui) in your browser by navigating to http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-ui:8889.
You can access [Heron UI](../../../heron-ui) in your browser by navigating to http://localhost:8001/api/v1/namespaces/default/services/heron-ui:8889/proxy.

## Heron on Kubernetes configuration

Expand Down
4 changes: 2 additions & 2 deletions website2/docs/schedulers-k8s-by-hand.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ Success! You can now manage Heron topologies on your GKE Kubernetes installation

```bash
$ heron submit kubernetes \
--service-url=http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-apiserver:9000 \
--service-url=http://localhost:8001/api/v1/namespaces/default/services/heron-apiserver:9000/proxy \
~/.heron/examples/heron-api-examples.jar \
org.apache.heron.examples.api.AckingTopology acking
```
Expand Down Expand Up @@ -443,7 +443,7 @@ That would enable you to manage topologies without setting the `--service-url` f

The [Heron UI](user-manuals-heron-ui) is an in-browser dashboard that you can use to monitor your Heron [topologies](heron-topology-concepts). It should already be running in your GKE cluster.

You can access [Heron UI](user-manuals-heron-ui) in your browser by navigating to http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-ui:8889.
You can access [Heron UI](user-manuals-heron-ui) in your browser by navigating to http://localhost:8001/api/v1/namespaces/default/services/heron-ui:8889/proxy.

## Heron on Kubernetes configuration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ Success! You can now manage Heron topologies on your GKE Kubernetes installation

```bash
$ heron submit kubernetes \
--service-url=http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-apiserver:9000 \
--service-url=http://localhost:8001/api/v1/namespaces/default/services/heron-apiserver:9000/proxy \
~/.heron/examples/heron-api-examples.jar \
org.apache.heron.examples.api.AckingTopology acking
```
Expand Down Expand Up @@ -444,7 +444,7 @@ That would enable you to manage topologies without setting the `--service-url` f

The [Heron UI](user-manuals-heron-ui) is an in-browser dashboard that you can use to monitor your Heron [topologies](heron-topology-concepts). It should already be running in your GKE cluster.

You can access [Heron UI](user-manuals-heron-ui) in your browser by navigating to http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-ui:8889.
You can access [Heron UI](user-manuals-heron-ui) in your browser by navigating to http://localhost:8001/api/v1/namespaces/default/services/heron-ui:8889/proxy.

## Heron on Kubernetes configuration

Expand Down

0 comments on commit 06b5acc

Please sign in to comment.