...
Code Block |
---|
az login
az aks get-credentials --resource-group ${RESOURCE_GROUP_NMAE} --name ${AKS_CLUSTER_NAME}
git clone https://github.com/felipemeriga/Eureka-Zuul-Kubernetes.git
cd account-service
docker build -t sansaeacr.azurecr.io/account-service:latest .
cd eureka-server
docker build -t sansaeacr.azurecr.io/eureka-server:latest .
cd feign-service
docker build -t sansaeacr.azurecr.io/feign-service:latest .
cd zuul-server
docker build -t sansaeacr.azurecr.io/zuul-server:latest .
docker push sansaeacr.azurecr.io/account-service:latest
docker push sansaeacr.azurecr.io/eureka-server:latest
docker push sansaeacr.azurecr.io/feign-service:latest
docker push sansaeacr.azurecr.io/zuul-server:latest
vi account-service/deployment.yaml
ㄴ sansaeacr.azurecr.io/account-service:latest
vi eureka-server/deployment.yaml
ㄴ sansaeacr.azurecr.io/eureka-server:latest
vi feign-service/deployment.yaml
ㄴ sansaeacr.azurecr.io/feign-service:latest
vi zuul-server/deployment.yaml
ㄴ sansaeacr.azurecr.io/zuul-server:latest
kubectl create -f account-service/deployment.yaml
kubectl create -f eureka-server/deployment.yaml
kubectl create -f feign-service/deployment.yaml
kubectl create -f zuul-server/deployment.yaml
kubectl get svc
Eureka-Zuul-Kubernetes/zuul-server$ kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
account-service NodePort 10.0.121.212 <none> 80:30161/TCP 2m36s
eureka ClusterIP None <none> 8761/TCP 77s
eureka-lb LoadBalancer 10.0.87.7 52.141.63.221 80:31370/TCP 77s
feign-service NodePort 10.0.122.99 <none> 80:30164/TCP 96s
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 6d19h
zuul-server LoadBalancer 10.0.60.135 20.194.22.136 80:30271/TCP 40s
|
http://20.194.22.136/api/account-service/account/login
http://20.194.22.136/feign-service/node/1