Clear Cache data in Kubernetes cluster

9/27/2018

Is there any way of viewing cache data in kubernetes cluster ? Does it get stored in a folder somewhere or can It be shown via a monitoring tool (Prometheus) ? And how to clean the cache data in k8s cluster ?

-- Shantanu Makkar
amazon-web-services
google-kubernetes-engine
infrastructure
kubernetes
kubernetes-health-check

1 Answer

9/27/2018

There is cache directory in Kubernetes; however, it is held within the Master Node. As shown in this github link, the issue was found when debugging the kube-controller which is handled by the Master Node.

I am not familiar with Amazon's cloud service; however, within GKE, the Master node is a managed service and customers do not have access to it. So to answer your question, yes there is a cache directory in Kubernetes, but you cannot view it within GKE.

-- Jason
Source: StackOverflow