kelproject / pykube

Python client library for Kubernetes
Apache License 2.0
349 stars 183 forks source link

pykube generating tons of files in tmp #133

Open looprock opened 7 years ago

looprock commented 7 years ago

I'm trying to use pykube for a monitoring project where I'm switching contexts a lot: https://github.com/looprock/riemann-kube-mon/blob/master/kube-monitor.py

I cannot figure out how or where it's happening from because the only place I see reference to tmp is under https://github.com/kelproject/pykube/blob/master/test/test_session.py, but for every context switch, it appears that pykube is generating 3 tmp files, two Certificates and an RSA secret key.

First, can someone help me understand where these are getting generated or how I can mitigate this? Is it maybe an artifact of httpie or something? Thanks.