Skip to content

Latest commit

 

History

History
23 lines (23 loc) · 1009 Bytes

g2.md

File metadata and controls

23 lines (23 loc) · 1009 Bytes

Guestbook

2. Deploy guestbook.

  • Deploy setup files.
    • $ ./kubectl create -f redis-master-controller.yaml
    • $ ./kubectl create -f redis-master-service.yaml
    • $ ./kubectl create -f redis-slave-controller.yaml
    • $ ./kubectl create -f redis-slave-service.yaml
    • $ ./kubectl create -f frontend-controller.yaml
    • $ ./kubectl create -f frontend-service.json
  • Observe created pods.
    • $ ./kubectl get po
NAME                 READY     STATUS    RESTARTS   AGE
frontend-28z7x       1/1       Running   0          38m
frontend-t6iga       1/1       Running   0          38m
frontend-y76rd       1/1       Running   0          38m
redis-master-2sw6o   1/1       Running   0          38m
redis-slave-3lc6x    1/1       Running   0          38m
redis-slave-gwllm    1/1       Running   0          38m
  • Instead of letting Kubernetes system pick a random nodePort, "nodePort": 30000 is fixed in file frontend-service.json.
  • Use a browser to access guestbook.