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:
Andrew Seigner 2017-12-27 11:42:23 -08:00 committed by GitHub
parent 31e9846f62
commit 365d0eec36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -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