update k8s readme.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
411b6efc4a
commit
1918322185
15
README.md
15
README.md
|
@ -766,7 +766,7 @@ $ kubectl create -f k8s/gorush-redis-deployment.yaml
|
||||||
$ kubectl create -f k8s/gorush-redis-service.yaml
|
$ kubectl create -f k8s/gorush-redis-service.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Create gorush service:
|
Create gorush service with ELB:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ kubectl create -f k8s/gorush-deployment.yaml
|
$ kubectl create -f k8s/gorush-deployment.yaml
|
||||||
|
@ -775,8 +775,19 @@ $ kubectl create -f k8s/gorush-service.yaml
|
||||||
|
|
||||||
### Ingress Controller for AWS ALB
|
### 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:
|
### Clean up the gorush:
|
||||||
|
|
|
@ -9,8 +9,8 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
# if your cluster supports it, uncomment the following to automatically create
|
# if your cluster supports it, uncomment the following to automatically create
|
||||||
# an external load-balanced IP for the frontend service.
|
# an external load-balanced IP for the frontend service.
|
||||||
# type: LoadBalancer
|
type: LoadBalancer
|
||||||
type: NodePort
|
# type: NodePort
|
||||||
ports:
|
ports:
|
||||||
- port: 8088
|
- port: 8088
|
||||||
selector:
|
selector:
|
||||||
|
|
Loading…
Reference in New Issue