- Run locally https://kubernetes.io/docs/setup/learning-environment/minikube/
- Google Kubernetes Engine https://cloud.google.com/kubernetes-engine/docs/
- sudo kubectl create clusterrolebinding demo-role-binding --clusterrole=view --serviceaccount=default:default
- mvn clean package -f apps/reviews-service
- mvn clean package -f apps/products-service
- sudo docker build --no-cache -t {host}/{image}:{tag} --build-arg jar_file={jarFile} .
- sudo docker build --no-cache -f apps/reviews-service/Dockerfile -t quebicdocker/ms-demo-reviews-service:0.1.0 --build-arg jar_file=apps/reviews-service/target/reviews-service-0.1.0.jar .
- sudo docker build --no-cache -f apps/products-service/Dockerfile -t quebicdocker/ms-demo-products-service:0.1.0 --build-arg jar_file=apps/products-service/target/products-service-0.1.0.jar .
- sudo docker push {dockerImage}
- sudo docker push quebicdocker/ms-demo-reviews-service:0.1.0
- sudo docker push quebicdocker/ms-demo-products-service:0.1.0
- kubectl apply -f config-map/common-config.yaml
- kubectl apply -f apps/reviews-service/kubernetes.yaml
- kubectl apply -f apps/products-service/kubernetes.yaml
- gcloud compute addresses create ms-demo-static-ip --global
- kubectl apply -f ingress-basic.yaml