1
1
# Monitoring EKS using CloudWatch Container Insigths
2
2
3
- ## Step-00 : Introduction
3
+ ## Step-01 : Introduction
4
4
- What is CloudWatch?
5
5
- What are CloudWatch Container Insights?
6
6
- What is CloudWatch Agent and Fluentd?
7
7
8
-
9
- ## Step-01: Deploy Sample Nginx Application to generate Load
10
- ```
11
- # Deploy
12
- kubectl apply -f kube-manifests
13
-
14
- # Access Application
15
- http://<Network-Load-Balancer-URL>/
16
- ```
17
-
18
8
## Step-02: Associate CloudWatch Policy to our EKS Worker Nodes Role
19
9
- Go to Services -> EC2 -> Worker Node EC2 Instance -> IAM Role -> Click on that role
20
10
```
@@ -51,25 +41,35 @@ curl -s https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-containe
51
41
kubectl -n amazon-cloudwatch get daemonsets
52
42
```
53
43
54
- ## Step-04: Create the load on our Sample Nginx Pod
44
+
45
+ ## Step-04: Deploy Sample Nginx Application to generate Load
46
+ ```
47
+ # Deploy
48
+ kubectl apply -f kube-manifests
49
+
50
+ # Access Application
51
+ http://<Network-Load-Balancer-URL>/
52
+ ```
53
+
54
+ ## Step-05: Create the load on our Sample Nginx Pod
55
55
```
56
56
# Generate Load
57
57
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/
58
58
```
59
59
60
- ## Step-05 : Access CloudWatch Dashboard & Generate Traffic using Postman Runner
60
+ ## Step-06 : Access CloudWatch Dashboard & Generate Traffic using Postman Runner
61
61
- Access CloudWatch Container Insigths Dashboard
62
62
63
63
64
- ## Step-06 : CloudWatch Log Insights
64
+ ## Step-07 : CloudWatch Log Insights
65
65
- View Container logs
66
66
67
67
68
- ## Step-07 : CloudWatch Alarms from metrics
68
+ ## Step-08 : CloudWatch Alarms from metrics
69
69
- Create Alarms
70
70
71
71
72
- ## Step-08 : Clean-Up Container Insights
72
+ ## Step-09 : Clean-Up Container Insights
73
73
```
74
74
# Template
75
75
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 -
@@ -78,7 +78,7 @@ curl https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-i
78
78
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 -
79
79
```
80
80
81
- ## Step-09 : Clean-Up Application
81
+ ## Step-10 : Clean-Up Application
82
82
```
83
83
# Delete Apps
84
84
kubectl delete -f kube-manifests/
0 commit comments