HOW TO KUBERNETES FLUENTD ISSUES IN GOOGLE CLOUD

1. Connect to the context in the cloud

$ gcloud container clusters get-credentials my-sbx-us-central1 --region us-central1 --project my-sbx

2. Check fluentd pods with issues

$ for i in `kubectl get pods -A | grep fluentd | awk '{print $2}'
`; do echo $i; kubectl logs $i | tail -n 10 | wc -c; done

3. Validate logs 

$ kubectl logs pod <pod-name>

4. Delete Pods if you  need

$ kubectl delete pod <pod-name>


Comments