mirror of https://github.com/linkerd/linkerd2.git
Add instructions for running Web against K8s (#94)
The README.md in the Web project describes building and running the Web service locally, against a public API server in Docker. Add instructions for running the Web Service locally against a public API Server in Kubernetes. Signed-off-by: Andrew Seigner <andrew@sig.gy>
This commit is contained in:
parent
31e9846f62
commit
365d0eec36
|
@ -64,6 +64,23 @@ cd web
|
|||
go run main.go -api-addr=localhost:8085
|
||||
```
|
||||
|
||||
## Run Web against a public API server in Kubernetes
|
||||
|
||||
If you are running the public API server in Kubernetes, forward localhost:8085
|
||||
to the conduit controller pod:
|
||||
|
||||
```
|
||||
POD_NAME=$(kubectl --namespace=conduit get po --selector=app=controller -o jsonpath='{.items[*].metadata.name}')
|
||||
kubectl -n conduit port-forward $POD_NAME 8085:8085
|
||||
```
|
||||
|
||||
Then connect the local web process to the forwarded port:
|
||||
|
||||
```
|
||||
cd web
|
||||
go run main.go -api-addr=localhost:8085
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
### Golang unit tests
|
||||
|
|
Loading…
Reference in New Issue