The goal of this project is to deploy a simple web application and an api on a Kubernetes cluster.
The concerned repository are :
The ci/cd is done in each repo independently to create the docker images and push them to the docker hub. Thus, ci/cd should be checked in the above repositories.
cd kubernetes
kubectl create namespace monitoring
kubectl apply -f prometheus/<all-the-.yaml>
kubectl create namespace my-grafana
kubectl apply -f grafana/grafana.yaml
Go to http://localhost:30001 and login with admin/admin Then connect to prometheus datasource with the url: http://prometheus-service.monitoring.svc:8080
kubectl create namespace api
kubectl apply -f config-map-auth-api-postgresql.yaml
kubectl apply -f deployment-auth-api-postgredb.yaml
kubectl apply -f deployment-auth-api.yaml
kubectl create namespace indiancoffee
kubectl apply -f deployment-indian-coffee.yaml
cd sonar
docker-compose up -d
Go to http://localhost:9000 and login with admin/admin Create a new project and generate a token Then analyze the code