Skip to content

Commit 370e218

Browse files
committed
update echo-server image
1 parent c2c9b1a commit 370e218

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

site/content/en/docs/handbook/controls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ minikube dashboard
2525
Once started, you can interact with your cluster using `kubectl`, just like any other Kubernetes cluster. For instance, starting a server:
2626

2727
```shell
28-
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4
28+
kubectl create deployment hello-minikube --image=kicbase/echo-server:1.0
2929
```
3030

3131
Exposing a service as a NodePort

site/content/en/docs/start/_index.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,8 @@ minikube dashboard
539539
Create a sample deployment and expose it on port 80:
540540

541541
```shell
542-
kubectl create deployment hello-minikube --image=docker.io/nginx:1.23
543-
kubectl expose deployment hello-minikube --type=NodePort --port=80
542+
kubectl create deployment hello-minikube --image=kicbase/echo-server:1.0
543+
kubectl expose deployment hello-minikube --type=NodePort --port=8080
544544
```
545545

546546
It may take a moment, but your deployment will soon show up when you run:
@@ -558,19 +558,19 @@ minikube service hello-minikube
558558
Alternatively, use kubectl to forward the port:
559559

560560
```shell
561-
kubectl port-forward service/hello-minikube 7080:80
561+
kubectl port-forward service/hello-minikube 7080:8080
562562
```
563563

564564
Tada! Your application is now available at [http://localhost:7080/](http://localhost:7080/).
565565

566-
You should be able to see the request metadata from nginx such as the `CLIENT VALUES`, `SERVER VALUES`, `HEADERS RECEIVED` and the `BODY` in the application output. Try changing the path of the request and observe the changes in the `CLIENT VALUES`. Similarly, you can do a POST request to the same and observe the body show up in `BODY` section of the output.
566+
You should be able to see the request metadata in the application output. Try changing the path of the request and observe the changes. Similarly, you can do a POST request and observe the body show up in the output.
567567
{{% /tab %}}
568568
{{% tab LoadBalancer %}}
569569
To access a LoadBalancer deployment, use the "minikube tunnel" command. Here is an example deployment:
570570

571571
```shell
572-
kubectl create deployment balanced --image=docker.io/nginx:1.23
573-
kubectl expose deployment balanced --type=LoadBalancer --port=80
572+
kubectl create deployment balanced --image=kicbase/echo-server:1.0
573+
kubectl expose deployment balanced --type=LoadBalancer --port=8080
574574
```
575575

576576
In another window, start the tunnel to create a routable IP for the 'balanced' deployment:
@@ -585,7 +585,7 @@ To find the routable IP, run this command and examine the `EXTERNAL-IP` column:
585585
kubectl get services balanced
586586
```
587587

588-
Your deployment is now available at <EXTERNAL-IP>:80
588+
Your deployment is now available at <EXTERNAL-IP>:8080
589589
{{% /tab %}}
590590
{{% tab Ingress %}}
591591
Enable ingress addon:
@@ -604,7 +604,7 @@ metadata:
604604
spec:
605605
containers:
606606
- name: foo-app
607-
image: docker.io/ealen/echo-server:0.7.0
607+
image: kicbase/echo-server:1.0
608608
---
609609
kind: Service
610610
apiVersion: v1
@@ -615,7 +615,7 @@ spec:
615615
app: foo
616616
ports:
617617
# Default port used by the image
618-
- port: 80
618+
- port: 8080
619619
---
620620
kind: Pod
621621
apiVersion: v1
@@ -626,7 +626,7 @@ metadata:
626626
spec:
627627
containers:
628628
- name: bar-app
629-
image: docker.io/ealen/echo-server:0.7.0
629+
image: kicbase/echo-server:1.0
630630
---
631631
kind: Service
632632
apiVersion: v1
@@ -637,7 +637,7 @@ spec:
637637
app: bar
638638
ports:
639639
# Default port used by the image
640-
- port: 80
640+
- port: 8080
641641
---
642642
apiVersion: networking.k8s.io/v1
643643
kind: Ingress
@@ -653,14 +653,14 @@ spec:
653653
service:
654654
name: foo-service
655655
port:
656-
number: 80
656+
number: 8080
657657
- pathType: Prefix
658658
path: "/bar"
659659
backend:
660660
service:
661661
name: bar-service
662662
port:
663-
number: 80
663+
number: 8080
664664
---
665665
```
666666

@@ -678,8 +678,13 @@ example-ingress nginx * <your_ip_here> 80 5m45s
678678

679679
Now verify that the ingress works
680680
```shell
681-
curl <ip_from_above>/foo
682-
curl <ip_from_above>/bar
681+
$ curl <ip_from_above>/foo
682+
Request served by foo-app
683+
...
684+
685+
$ curl <ip_from_above>/bar
686+
Request served by bar-app
687+
...
683688
```
684689
{{% /tab %}}
685690
{{% /tabs %}}

0 commit comments

Comments
 (0)