Skip to content

Commit

Permalink
Update test script
Browse files Browse the repository at this point in the history
  • Loading branch information
denverdino committed Dec 28, 2019
1 parent fe55445 commit f20368c
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions ingress-nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ In this example we deploy a simple web application and then configure load balan
Firstly we need to deploy nginx-ingress-controller in Serverless Kubernetes cluster.

```
kubectl create -f ./nginx-ingress-controller.yaml
$ kubectl create -f ./nginx-ingress-controller.yaml
...
kubectl -n kube-system get deploy|grep nginx
$ kubectl -n kube-system get deploy|grep nginx
nginx-ingress-controller 2 2 2 2 40s
kubectl -n kube-system get svc|grep nginx
$ kubectl -n kube-system get svc|grep nginx
nginx-ingress-lb LoadBalancer **** **** 80:32665/TCP,443:30338/TCP 1m
```

Expand All @@ -32,7 +33,7 @@ Check on the status of the pod using this command:
```
kubectl get pod
kubectl get svc
kubectl get ing
kubectl get ingress
```

You will see the service and ingress resources as following
Expand All @@ -45,14 +46,16 @@ coffee-f5cd54465-gm8qm 1/1 Running 0 16m
tea-6bcb468bfc-76fsd 1/1 Running 0 16m
tea-6bcb468bfc-jkjzw 1/1 Running 0 16m
tea-6bcb468bfc-mnw7h 1/1 Running 0 16m
$
$ kubectl -n viking-xianwei get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
alb-ingress-lb LoadBalancer 172.19.4.82 139.196.2.186 80:32268/TCP,443:30709/TCP 40m
coffee-svc ClusterIP None <none> 80/TCP 16m
tea-svc ClusterIP None <none> 80/TCP 16m
$
$ kubectl get ing
$ kubectl get svc --all-namespaces
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default coffee-svc ClusterIP None <none> 80/TCP 7m7s
default kubernetes ClusterIP 172.19.0.1 <none> 443/TCP 80m
default tea-svc ClusterIP None <none> 80/TCP 7m7s
kube-system nginx-ingress-lb LoadBalancer 172.19.4.82 139.196.2.186 80:30848/TCP,443:32167/TCP 9m4s
...
$ kubectl get ingress
NAME HOSTS ADDRESS PORTS AGE
cafe-ingress cafe.example.com 139.196.2.186 80 16m
```
Expand Down Expand Up @@ -81,5 +84,6 @@ Delete deployments, services, and ingress

```
kubectl delete -f ./ingress-cafe-demo.yaml
kubectl delete -f ./nginx-ingress-controller.yaml
```

0 comments on commit f20368c

Please sign in to comment.