docker build -t starchx/centos-httpd-cloudwatch .
docker push starchx/centos-httpd-cloudwatch
kubectl delete -f pod.yaml
kubectl apply -f pod.yaml
- CloudWatch installer requires system init, so I use this one as base image from Centos https://hub.docker.com/r/centos/systemd/
- Container needs to be launched with privileges and access to sys-fs-cgroup (refer to pod.yaml)
- EKS worker node instance role needs to have "CloudWatchAgentServerPolicy" policy attached