From 19183221853845484495e82857c290f11692753b Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 22 Sep 2017 22:30:56 +0800 Subject: [PATCH] update k8s readme. Signed-off-by: Bo-Yi Wu --- README.md | 15 +++++++++++++-- ...s-ingress.yaml => gorush-aws-alb-ingress.yaml} | 0 k8s/gorush-service.yaml | 4 ++-- 3 files changed, 15 insertions(+), 4 deletions(-) rename k8s/{gorush-aws-ingress.yaml => gorush-aws-alb-ingress.yaml} (100%) diff --git a/README.md b/README.md index 10e85c6..66bcb40 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/k8s/gorush-aws-ingress.yaml b/k8s/gorush-aws-alb-ingress.yaml similarity index 100% rename from k8s/gorush-aws-ingress.yaml rename to k8s/gorush-aws-alb-ingress.yaml diff --git a/k8s/gorush-service.yaml b/k8s/gorush-service.yaml index d210f09..f63f11d 100644 --- a/k8s/gorush-service.yaml +++ b/k8s/gorush-service.yaml @@ -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: