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 ?
Clear Cache data in Kubernetes cluster
31.5k Views Asked by Shantanu Makkar At
3
There are 3 best solutions below
0

It would help if you could specify which kind of cache data you would like to clear, and what you would like to achieve.
For kubectl there is a default cache directory$HOME/.kube/cache
1, and $HOME/.kube/http-cache
for the http cache 2.
There’s also a cache server like Memcached that is used for caching web content in k8s reference 3.
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.