Container logs not working after cluster update on GKE

无人久伴 提交于 2020-06-01 01:36:11

问题


Recently I did an upgrade on my cluster that's running multiple containers for microservices written in Java (using default Spring Boot's log4j2 default configuration). Since then, the container log is not being updated anymore. The kubectl logs command is working fine, all the recent logs can be seen using this command, but the logs that should be appearing in the GKE dashboard is simply not working anymore. I checked the Google's Loggin API and it's enabled.

Does anyone know what's the possible reasons for this or how to solve it?


回答1:


The solution was to disable the Legacy Stackdriver and enable Stackdriver Kubernetes Engine Monitoring:

  1. Go to the cluster page and click on edit;
  2. Disable both Legacy Stackdriver Monitoring and Logging;
  3. Enable Stackdriver Kubernetes Engine Monitoring using the option "System and workload logging and monitoring"


来源:https://stackoverflow.com/questions/60175119/container-logs-not-working-after-cluster-update-on-gke

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!