chap04는 chap03 구조 위에 frontend와 WebSocket이 추가된 단계다.
그래서 확인 방식도 조금 달라진다.
이전 장에서는 Postman으로 API 요청을 보내고 로그를 확인하는 흐름이 중심이었다.
이번 장에서는 브라우저 화면에서 주문 완료 알림을 받아야 한다.
다만 배송 완료 같은 일부 트리거는 Postman으로 보내는 편이 이해하기 쉽다.
따라서 이 장에서는 브라우저와 Postman을 함께 사용한다.

minikube start
chap04 폴더에서 아래 이미지를 빌드한다.
minikube image build -t metacoding/db:3 ./db
minikube image build -t metacoding/gateway:3 ./gateway
minikube image build -t metacoding/order:3 ./order
minikube image build -t metacoding/product:3 ./product
minikube image build -t metacoding/user:3 ./user
minikube image build -t metacoding/delivery:3 ./delivery
minikube image build -t metacoding/orchestrator:3 ./orchestrator
minikube image build -t metacoding/frontend:3 ./frontend
chap04에서는 frontend 이미지가 추가된다는 점을 눈여겨보면 좋다.
kubectl create namespace metacoding
이미 네임스페이스가 있다면 이 명령은 실패할 수 있다.
그 경우에는 이미 만들어진 네임스페이스를 그대로 사용하면 된다.
kubectl apply -f k8s/kafka
kubectl wait --for=condition=ready pod -l app=kafka -n metacoding --timeout=120s