-
Build the Dockerimage and pushed it to AWS ECR using Github actions
-
Used AWS to set up credentials aws configure
-
Terraform: Used to create eks cluster using terraform (terraform init and terraform plan)
-
Configure kubectl to Connect to an EKS Cluster
-
Configured kubectl to use AWS Kuberenetes cluster
-
Created deployment.yaml file and deployed to manifest file.
-
Deploying and verifying the application
-
Creating port-forward to access the deployed application
From the dockerfile under microservice application, Github actions workflow file builds the image and pushes tol AWS ECR repository
Output:
Adding prometheus and grafana using Helm
helm repo add grafana https://grafana.github.io/helm-charts```
**Creating a new namespace**
kubectl create namespace monitoring
**Install Prometheus**
helm install prometheus prometheus-community/kube-prometheus-stack --namespace monitoring
**Accesing prometheus GUI**
kubectl port-forward prometheus-kube-prometheus-stack-prometheus-0 9090
**Install Grafana**
helm install grafana grafana/grafana --namespace monitoring
## MONITOR EKS ClUSTER USING PROMETHEUS.
## SETTING UP LET'S ENCRPT CERTIFICATE
- Ingress Controller (ingress.yaml)
- Obtain SSL Certficate
Output: