Skip to content

Instantly share code, notes, and snippets.

@mcastelino
Created March 8, 2019 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcastelino/c78ba1c46ae0cf7d2e3198cbd618de7b to your computer and use it in GitHub Desktop.
Save mcastelino/c78ba1c46ae0cf7d2e3198cbd618de7b to your computer and use it in GitHub Desktop.
k3s: Breaking down k3s

What is running

ps auxw | grep k3s
root      1626  0.0  0.0  63972  4328 pts/1    S    23:26   0:00 sudo ./k3s server
root      1627 11.9  1.4 333516 240412 pts/1   Sl   23:26   0:44 ./k3s server
root      1679  1.6  0.5 191392 83812 pts/1    Sl   23:26   0:06 containerd -c /var/lib/rancher/k3s/agent/etc/containerd/config.toml -a /run/k3s/containerd/containerd.sock --state /run/k3s/containerd --root /var/lib/rancher/k3s/agent/containerd
root      2014  0.0  0.0 108760  5672 pts/1    Sl   23:27   0:00 containerd-shim -namespace k8s.io -workdir /var/lib/rancher/k3s/agent/containerd/io.containerd.runtime.v1.linux/k8s.io/951dd6bb47ef012424dc526ef663bdeef1fe20942aa416a1b0c0ac5fcccf4b40 -address /run/k3s/containerd/containerd.sock -containerd-binary /var/lib/rancher/k3s/data/4df430e1473d0225734948e562863c82f20d658ed9c420c77e168aec42eccdb5/bin/containerd
root      2092  0.0  0.0 108760  5452 pts/1    Sl   23:27   0:00 containerd-shim -namespace k8s.io -workdir /var/lib/rancher/k3s/agent/containerd/io.containerd.runtime.v1.linux/k8s.io/4d4d58e740c9d42db919cb976220824df37b44b3b2788a4ecf8997e9498a5d23 -address /run/k3s/containerd/containerd.sock -containerd-binary /var/lib/rancher/k3s/data/4df430e1473d0225734948e562863c82f20d658ed9c420c77e168aec42eccdb5/bin/containerd
root      2287  0.0  0.0 108760  5324 pts/1    Sl   23:27   0:00 containerd-shim -namespace k8s.io -workdir /var/lib/rancher/k3s/agent/containerd/io.containerd.runtime.v1.linux/k8s.io/71aefdf38ebef1ebf38fa2a60ee0969144b1977e2fee296541a20c78e85d48d1 -address /run/k3s/containerd/containerd.sock -containerd-binary /var/lib/rancher/k3s/data/4df430e1473d0225734948e562863c82f20d658ed9c420c77e168aec42eccdb5/bin/containerd

Where are the other binaries/dependencies coming from

mrcastel@k3s:/var/lib/rancher/k3s/data/4df430e1473d0225734948e562863c82f20d658ed9c420c77e168aec42eccdb5/bin$ find . -type f
./pigz
./find
./containerd
./ipset
./conntrack
./coreutils
./busybox
./xtables-multi
./socat
./runc
./cni
./ebtables
./ip
./containerd-shim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment