update k8s readme.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-09-22 22:30:56 +08:00
parent 411b6efc4a
commit 1918322185
3 changed files with 15 additions and 4 deletions

View File

@ -766,7 +766,7 @@ $ kubectl create -f k8s/gorush-redis-deployment.yaml
$ kubectl create -f k8s/gorush-redis-service.yaml
```
Create gorush service:
Create gorush service with ELB:
```sh
$ kubectl create -f k8s/gorush-deployment.yaml
@ -775,8 +775,19 @@ $ kubectl create -f k8s/gorush-service.yaml
### Ingress Controller for AWS ALB
Update the following in `k8s/gorush-service.yaml`
```diff
- type: LoadBalancer
- # type: NodePort
+ # type: LoadBalancer
+ type: NodePort
```
$ kubectl create -f k8s/gorush-aws-ingress.yaml
Then start the AWS ALB by the follwong command.
```
$ kubectl create -f k8s/gorush-aws-alb-ingress.yaml
```
### Clean up the gorush:

View File

@ -9,8 +9,8 @@ metadata:
spec:
# if your cluster supports it, uncomment the following to automatically create
# an external load-balanced IP for the frontend service.
# type: LoadBalancer
type: NodePort
type: LoadBalancer
# type: NodePort
ports:
- port: 8088
selector: