Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

https://github.com/felipemeriga/Eureka-Zuul-Kubernetes

Code Block
RESOURCE_GROUP_NMAE=sansae-aks-RG
AKS_CLUSTER_NAME=sansaeakscluster
ACR_NAME=sansaeacr

az login
az aks get-credentials --resource-group ${RESOURCE_GROUP_NMAE} --name ${AKS_CLUSTER_NAME}
az acr login -n ${ACR_NAME}
docker login ${ACR_NAME}.azurecr.io


git clone https://github.com/felipemeriga/Eureka-Zuul-Kubernetes.git

cd account-service
docker build -t sansaeacr${ACR_NAME}.azurecr.io/account-service:latest .
cd eureka-server
docker build -t sansaeacr${ACR_NAME}.azurecr.io/eureka-server:latest .
cd feign-service
docker build -t sansaeacr${ACR_NAME}.azurecr.io/feign-service:latest .
cd zuul-server
docker build -t sansaeacr${ACR_NAME}.azurecr.io/zuul-server:latest .


docker push sansaeacr${ACR_NAME}.azurecr.io/account-service:latest
docker push sansaeacr${ACR_NAME}.azurecr.io/eureka-server:latest
docker push sansaeacr${ACR_NAME}.azurecr.io/feign-service:latest
docker push sansaeacr${ACR_NAME}.azurecr.io/zuul-server:latest


vi account-service/deployment.yaml
	ㄴ sansaeacr${ACR_NAME}.azurecr.io/account-service:latest
vi eureka-server/deployment.yaml
	ㄴ sansaeacr${ACR_NAME}.azurecr.io/eureka-server:latest
vi feign-service/deployment.yaml
	ㄴ sansaeacr${ACR_NAME}.azurecr.io/feign-service:latest
vi zuul-server/deployment.yaml
	ㄴ sansaeacr${ACR_NAME}.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

Image Modified

http://20.194.22.136/api/feign-service/node/1

Image Modified