Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to check GKE logs without stack driver

I had deployed an angular app in gke. I have created a Standard GKE cluster with 20GB of storage. I wanted to know where does the logs of my angular application is stored will it use local storage or any other location and what is the default location for storage. 

I have a fileserver VM too can i use that and send logs to it. 

I want to avoid stack driver because of costing issues.

0 1 522
1 REPLY 1

Hello!

Applications running on Google Kubernetes Engine, including your Angular application, do not log to disk by default. Instead, they log to stdout (standard out) and stderr (standard error). These logs are then captured by the underlying Kubernetes system and kept until the Pod is alive. 

 

When pods are terminated and recreated, the logs for those pods are lost. They aren't stored on a local node storage or any persistent storage by default.

 

 If you want to keep the logs beyond the lifetime of a pod, you need a separate logging solution that collects and stores these logs. Google Cloud's Operations Suite (formerly Stackdriver) is one such solution,  you mentioned wanting to avoid it due to cost concerns but the benefits outweigh the cost if you look at it in the long run.

 

Top Solution Authors