Project - Real Time Monitoring Project
Project - Real Time Monitoring Project
l
lo
x.
le
ip
.a
l
lo
Step 1.2 – Attach the IAM role having full access
x.
Go to EC2 -> Click on Actions on the left hand side -> Security -> Modify
IAM role
le
ip
.a
w
w
"awscliv2.zip"
chmod +x ./kubectl
l
lo
sudo mv ./kubectl /usr/local/bin
x.
kubectl version
le
Step 4 - Install and Setup eksctl
ip
curl --silent --location
"https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$
(uname -s)_amd64.tar.gz" | tar xz -C /tmp
.a
eksctl version
w
l
lo
3. Region : --region us-east-1
x.
5. Node Type : --nodegroup-type t2.medium
--nodes-min 2 --nodes-max 3
w
w
l
lo
Step 8 - Install Prometheus
x.
Add Prometheus helm chart repository
le
helm repo add prometheus-community
https://prometheus-community.github.io/helm-charts
ip
Step 8.1 - Update helm chart repository
lo
Your cluster has an OpenID Connect (OIDC) issuer URL associated with it. To
use AWS Identity and Access Management (IAM) roles for service accounts,
x.
an IAM OIDC provider must exist for your cluster's OIDC issuer URL.
us-east-1
w
arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy --approve
--role-only --role-name AmazonEKS_EBS_CSI_DriverRole --region us-east-1
l
lo
eksctl create addon --name aws-ebs-csi-driver --cluster eks2
--service-account-role-arn
arn:aws:iam::164297528770:role/AmazonEKS_EBS_CSI_DriverRole --force
x.
--region us-east-1
le
ip
Step 10.2 - kubectl get pods -n prometheus
.a
w
w
deployment ports
l
lo
helm repo update
x.
Step 11.1 - Create a namespace Grafana
le
ip
.a
This command will create the Grafana service with an external load
balancer to get the public view.
w
l
lo
Step 11.4 - Copy the EXTERNAL-IP and paste in browser
x.
Password you mentioned as EKS!sAWSome while creating Grafana
le
ip
.a
w
w
Go to Grafana Dashboard -> Add the Datasource -> Select the Prometheus
l
lo
Go to left side -> click on dashboards -> Click on New -> Import
x.
le
ip
.a
cd /kubernetes_java_deployment/Kubernetes/
Step 14 - Clean Up