Some description
Created by Alok Singh
Build Docker Image
cd app-matrix
docker build -t alokkusingh/app-matrix:arm64v8 --build-arg JAR_FILE=target/app-matrix-0.0.1-SNAPSHOT.jar --build-arg ARCH=arm64v8/ .
docker push alokkusingh/app-matrix:arm64v8
cd app-matrix
docker build -t alokkusingh/app-matrix:amd64 --build-arg JAR_FILE=target/app-matrix-0.0.1-SNAPSHOT.jar --build-arg ARCH=amd64/ .
docker push alokkusingh/app-matrix:amd64
Run the application by executing following command
docker run --rm --name app-matrix -p 8080:8080 alokkusingh/app-matrix:arm64v8
docker run --rm --name app-matrix -p 8080:8080 alokkusingh/app-matrix:amd64
kubectl apply -f yaml/monitoring-namespace.yaml
kubectl apply -f yaml/hello-service-config.yaml
kubectl apply -f yaml/hello-service-deploy.yaml
kubectl autoscale deployment hello-service --min=2 --max=3 --cpu-percent=80 -n monitoring
kubectl apply -f yaml/prometheus-config.yaml
kubectl apply -f yaml/prometheus-roles.yml
kubectl apply -f yaml/prometheus-deployment.yaml
kubectl apply -f yaml/grafana.yaml
kubectl get ep hello-service -n monitoring
kubectl describe svc hello-service -n monitoring
kubectl logs pod/hello-service-c668fb66-jtf97 app-matrix -n monitoring
kubectl logs pod/prometheus-c6d5c4d95-2c59b prometheus -n monitoring
kubectl describe pod/grafana-756fb84d84-b8mzm -n monitoring
kubectl get all -n monitoring
kubectl delete namespace monitoring