Skip to content

Conversation

kke
Copy link
Contributor

@kke kke commented Aug 26, 2025

Fixes #930

Remove the k0s binaries from targets after k0s reset.

Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke kke added the enhancement New feature or request label Aug 26, 2025
@kke kke changed the title Delete k0s binary from host after reset Delete k0s binaries from hosts after reset Aug 27, 2025
kke added 3 commits August 27, 2025 14:59
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke
Copy link
Contributor Author

kke commented Aug 27, 2025

These are there after a k0s install + reset:

--- /tmp/tree_before.txt	2025-08-27 13:25:41.881114641 +0000
+++ /tmp/tree_after.txt	2025-08-27 13:26:18.136096634 +0000
@@ -49,6 +49,8 @@
+/etc/cni
+/etc/cni/net.d
+/etc/k0s
+/etc/k0s/containerd.d
+/etc/k0s/containerd.toml
+/opt/containerd
+/opt/containerd/bin
+/opt/containerd/lib
+/root/.kube
+/root/.kube/cache
+/root/.kube/cache/discovery
+/root/.kube/cache/discovery/localhost_6443
+/root/.kube/cache/discovery/localhost_6443/admissionregistration.k8s.io
+/root/.kube/cache/discovery/localhost_6443/admissionregistration.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/admissionregistration.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/apiextensions.k8s.io
+/root/.kube/cache/discovery/localhost_6443/apiextensions.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/apiextensions.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/apiregistration.k8s.io
+/root/.kube/cache/discovery/localhost_6443/apiregistration.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/apiregistration.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/apps
+/root/.kube/cache/discovery/localhost_6443/apps/v1
+/root/.kube/cache/discovery/localhost_6443/apps/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/authentication.k8s.io
+/root/.kube/cache/discovery/localhost_6443/authentication.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/authentication.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/authorization.k8s.io
+/root/.kube/cache/discovery/localhost_6443/authorization.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/authorization.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/autoscaling
+/root/.kube/cache/discovery/localhost_6443/autoscaling/v1
+/root/.kube/cache/discovery/localhost_6443/autoscaling/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/autoscaling/v2
+/root/.kube/cache/discovery/localhost_6443/autoscaling/v2/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/batch
+/root/.kube/cache/discovery/localhost_6443/batch/v1
+/root/.kube/cache/discovery/localhost_6443/batch/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/certificates.k8s.io
+/root/.kube/cache/discovery/localhost_6443/certificates.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/certificates.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/coordination.k8s.io
+/root/.kube/cache/discovery/localhost_6443/coordination.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/coordination.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/discovery.k8s.io
+/root/.kube/cache/discovery/localhost_6443/discovery.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/discovery.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/etcd.k0sproject.io
+/root/.kube/cache/discovery/localhost_6443/etcd.k0sproject.io/v1beta1
+/root/.kube/cache/discovery/localhost_6443/etcd.k0sproject.io/v1beta1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/events.k8s.io
+/root/.kube/cache/discovery/localhost_6443/events.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/events.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/flowcontrol.apiserver.k8s.io
+/root/.kube/cache/discovery/localhost_6443/flowcontrol.apiserver.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/flowcontrol.apiserver.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/helm.k0sproject.io
+/root/.kube/cache/discovery/localhost_6443/helm.k0sproject.io/v1beta1
+/root/.kube/cache/discovery/localhost_6443/helm.k0sproject.io/v1beta1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/networking.k8s.io
+/root/.kube/cache/discovery/localhost_6443/networking.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/networking.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/node.k8s.io
+/root/.kube/cache/discovery/localhost_6443/node.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/node.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/policy
+/root/.kube/cache/discovery/localhost_6443/policy/v1
+/root/.kube/cache/discovery/localhost_6443/policy/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/rbac.authorization.k8s.io
+/root/.kube/cache/discovery/localhost_6443/rbac.authorization.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/rbac.authorization.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/scheduling.k8s.io
+/root/.kube/cache/discovery/localhost_6443/scheduling.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/scheduling.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/servergroups.json
+/root/.kube/cache/discovery/localhost_6443/storage.k8s.io
+/root/.kube/cache/discovery/localhost_6443/storage.k8s.io/v1
+/root/.kube/cache/discovery/localhost_6443/storage.k8s.io/v1/serverresources.json
+/root/.kube/cache/discovery/localhost_6443/v1
+/root/.kube/cache/discovery/localhost_6443/v1/serverresources.json
+/root/.kube/cache/http
+/root/.kube/cache/http/.diskv-temp
+/root/.kube/cache/http/50de1e185cf10ab2d914ea21235bf424941a50e263da1cd059c26198c4c8e6b5
+/root/.kube/cache/http/6749ec1e5d659d5fd49317553e2097b89e8e78776035a2c1c5cc05296caf07a8

@kke kke merged commit b20c97d into main Aug 29, 2025
45 checks passed
@kke kke deleted the remove-binary-on-reset branch August 29, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove /usr/local/bin/k0s binary from hosts on reset

2 participants