weaveworks / eks-quickstart-app-dev

Example flux manifests for eksctl gitops
Other
57 stars 44 forks source link

Fix cloudwatch-agent's CrashLoopBackOff on Error: no outputs found #11

Closed marccarre closed 5 years ago

marccarre commented 5 years ago

Follows up on #3.

Why?

Fixes cloudwatch-agent's CrashLoopBackOff on:

Error: no outputs found, did you provide a valid config file?

Also, the ConfigMap available at https://s3.amazonaws.com/cloudwatch-agent-k8s-yamls/kubernetes-monitoring/cwagent-configmap.yaml has logs instead of structuredlogs.

Before / With structuredlogs

$ kubectl get po -n amazon-cloudwatch
NAME                       READY   STATUS             RESTARTS   AGE
cloudwatch-agent-x9qrv     0/1     CrashLoopBackOff   5          4m25s
$ kubectl -n amazon-cloudwatch logs cloudwatch-agent-x9qrv
[...]
E! Error: no outputs found, did you provide a valid config file?

After / With logs

$ kubectl get po -n amazon-cloudwatch
NAME                       READY   STATUS    RESTARTS   AGE
cloudwatch-agent-7sqp2     1/1     Running   0          4s
[...]