Skip to content

Commit

Permalink
Welcome to Stack Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalyan Reddy Daida authored and Kalyan Reddy Daida committed Jul 18, 2020
1 parent fbc6c9b commit c35f48d
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions 18-EKS-Monitoring-using-CloudWatch-Container-Insights/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
# Monitoring EKS using CloudWatch Container Insigths

## Step-00: Introduction
## Step-01: Introduction
- What is CloudWatch?
- What are CloudWatch Container Insights?
- What is CloudWatch Agent and Fluentd?


## Step-01: Deploy Sample Nginx Application to generate Load
```
# Deploy
kubectl apply -f kube-manifests
# Access Application
http://<Network-Load-Balancer-URL>/
```

## Step-02: Associate CloudWatch Policy to our EKS Worker Nodes Role
- Go to Services -> EC2 -> Worker Node EC2 Instance -> IAM Role -> Click on that role
```
Expand Down Expand Up @@ -51,25 +41,35 @@ curl -s https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-containe
kubectl -n amazon-cloudwatch get daemonsets
```

## Step-04: Create the load on our Sample Nginx Pod

## Step-04: Deploy Sample Nginx Application to generate Load
```
# Deploy
kubectl apply -f kube-manifests
# Access Application
http://<Network-Load-Balancer-URL>/
```

## Step-05: Create the load on our Sample Nginx Pod
```
# Generate Load
kubectl run --generator=run-pod/v1 apache-bench -i --tty --rm --image=httpd -- ab -n 500000 -c 1000 http://sample-nginx-service.default.svc.cluster.local/
```

## Step-05: Access CloudWatch Dashboard & Generate Traffic using Postman Runner
## Step-06: Access CloudWatch Dashboard & Generate Traffic using Postman Runner
- Access CloudWatch Container Insigths Dashboard


## Step-06: CloudWatch Log Insights
## Step-07: CloudWatch Log Insights
- View Container logs


## Step-07: CloudWatch Alarms from metrics
## Step-08: CloudWatch Alarms from metrics
- Create Alarms


## Step-08: Clean-Up Container Insights
## Step-09: Clean-Up Container Insights
```
# Template
curl https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/latest/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart.yaml | sed "s/{{cluster_name}}/cluster-name/;s/{{region_name}}/cluster-region/" | kubectl delete -f -
Expand All @@ -78,7 +78,7 @@ curl https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-i
curl https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/latest/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart.yaml | sed "s/{{cluster_name}}/eksdemo1/;s/{{region_name}}/us-east-1/" | kubectl delete -f -
```

## Step-09: Clean-Up Application
## Step-10: Clean-Up Application
```
# Delete Apps
kubectl delete -f kube-manifests/
Expand Down

0 comments on commit c35f48d

Please sign in to comment.