Open cej55 opened 3 years ago
spring: profiles: default cloud: gateway: routes:
spring: profiles: docker cloud: gateway: routes:
id: customer uri: http://customer:8080 predicates:
cmd 4번예약 Reserved 이벤트 확인 kafka-console-consumer.bat --bootstrap-server http://localhost:9092 --topic carsharing --from-beginning
kubernetes 클러스터에서 gateway/src/main/resource/application.yml 수정 profile : docker uri : http:///서비스 EXTERNAL IP:PORT 수정 mvn package az acr build --registry hanchyacr --image hanchyacr.azurecr.io/carsharing-gateway:latest --file Dockerfile . kubectl create deploy gateway --image=hanchyacr.azurecr.io/carsharing-gateway:latest -n ns-carsharing kubectl expose deploy gateway --type="LoadBalancer" --port=8080 -n ns-carsharing kubectl get svc -n ns-carsharing kubectl get pod -n ns-carsharing
curl http://20.84.24.69:8080/reservations
kubectl delete deploy/gateway -n ns-carsharing kubectl delete service/gateway -n ns-carsharing
kubectl exec -it pod/gateway-7b785bcbc7-t6w42 -n ns-carsharing /bin/sh kubectl get deploy/gateway -o yaml -n ns-carsharing
kubectl logs pod/gateway-7b785bcbc7-t6w42 -n ns-carsharing gateway EXTERNAL-IP, 포트 확인 예약 서비스 yaml 수정
spring: profiles: default cloud: gateway: routes:
spring: profiles: docker cloud: gateway: routes:
id: customer uri: http://customer:8080 predicates:
cmd 4번예약 Reserved 이벤트 확인 kafka-console-consumer.bat --bootstrap-server http://localhost:9092 --topic carsharing --from-beginning
kubernetes 클러스터에서
gateway/src/main/resource/application.yml 수정 profile : docker uri : http:///서비스 EXTERNAL IP:PORT 수정 mvn package az acr build --registry hanchyacr --image hanchyacr.azurecr.io/carsharing-gateway:latest --file Dockerfile . kubectl create deploy gateway --image=hanchyacr.azurecr.io/carsharing-gateway:latest -n ns-carsharing kubectl expose deploy gateway --type="LoadBalancer" --port=8080 -n ns-carsharing kubectl get svc -n ns-carsharing kubectl get pod -n ns-carsharing
curl http://20.84.24.69:8080/reservations
kubectl delete deploy/gateway -n ns-carsharing kubectl delete service/gateway -n ns-carsharing
kubectl exec -it pod/gateway-7b785bcbc7-t6w42 -n ns-carsharing /bin/sh kubectl get deploy/gateway -o yaml -n ns-carsharing
kubectl logs pod/gateway-7b785bcbc7-t6w42 -n ns-carsharing gateway EXTERNAL-IP, 포트 확인 예약 서비스 yaml 수정