Over-View
Image Added
- Validation JWT Token on Zuul
- Create Transaction-Id on Zuul
Pre-Conditions
Azure Login and get AKS credentials
- az login
- az acr login -n ${ACR_NAME}
- az account set --subscription ${subscription_id}
- az aks get-credentials --resource-group ${AKS_RESOURCE_GROUP} --name ${AKS_CLUSTER_NAME} --admin
Clone code
Deploy Book MicroService
- cd complete/book
- mvn clean package -Dmaven.test.skip=true
- docker build -t ${ACR_NAME}.azurecr.io/book:latest .
- docker push ${ACR_NAME}.azurecr.io/book:latest
- vi deployment.yml --> replace acrname
- kubectl create -f deployment.yml
Deploy Gateway MicroService
- cd complete/gateway
- mvn clean package -Dmaven.test.skip=true
- docker build -t ${ACR_NAME}.azurecr.io/gateway:latest .
- docker push ${ACR_NAME}.azurecr.io/gateway:latest
- vi deployment.yml --> replace acrname
- kubectl create -f deployment.yml
Create Ingress
- cd complete/k8s-ingress
- kubectl create -f ingress.yml
- kubectl get ingress
Appendix
{"serverDuration": 74, "requestCorrelationId": "01977d8de6ff6bd7"}