Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 904 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 904 Bytes

kubefs is a FUSE driver for Kubernetes

Use the plaintext tools which you already know inside out to interact with your clusters.

kubefs makes your clusters available as a tree of plaintext files.

kubectl --context majestic-gnat --namespace flycatcher get po nginx-1 -oyaml
becomes
cat /tmp/kubefs/majestic-gnat/namespaces/flycatcher/pods/nginx-1/def.yaml

You can exec commands on containers too;

kubectl --context majestic-gnat --namespace flycatcher exec nginx-1 --container nginx-ingress -- cat blah
becomes
echo "cat blah" >> /tmp/kubefs/majestic-gnat/namespaces/flycatcher/pods/nginx-1/containers/nginx-ingress

But it's true power comes when you use your existing tools:

Diff two pod definitions with emacs:
ediff /tmp/kubefs/majestic-gnat/namespaces/flycatcher/pods/nginx-1/def.yaml /tmp/kubefs/majestic-gnat/namespaces/flycatcher/pods/nginx-2/def.yaml