Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release-1.29] - Add data-dir to uninstall and killall scripts #6301

Closed
brandond opened this issue Jul 10, 2024 · 1 comment
Closed

[Release-1.29] - Add data-dir to uninstall and killall scripts #6301

brandond opened this issue Jul 10, 2024 · 1 comment
Assignees

Comments

@brandond
Copy link
Member

brandond commented Jul 10, 2024

Backport fix for Add data-dir to uninstall and killall scripts

@fmoral2
Copy link
Contributor

fmoral2 commented Jul 24, 2024

Validated on Version:

-$  rke2 version v1.29.7-rc4+rke2r1

Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
ubuntu
AMD

Cluster Configuration:
-1 node server

Steps to validate the fix

  1. Install rke2 with a custom data-dir
  2. Run kill all
  3. Validate that image was removed from custom dir

Reproduction Issue:


 v1.30.2+rke2r1


$ k get nodes
NAME               STATUS   ROLES                       AGE   VERSION
ip-172-31-19-115   Ready    control-plane,etcd,master   76s   v1.30.2+rke2r1

~$ sudo RKE2_DATA_DIR=/var/fran/rke2 rke2-killall.sh

 

$ ls  /var/fran/rke2/agent/

client-ca.crt          client-kube-proxy.key  client-kubelet.key          client-rke2-controller.key  etc     kubelet.kubeconfig    logs           rke2controller.kubeconfig  serving-kubelet.crt
client-kube-proxy.crt  client-kubelet.crt     client-rke2-controller.crt  containerd                  images  kubeproxy.kubeconfig  pod-manifests  server-ca.crt              serving-kubelet.key


$ ls /var/fran/rke2/agent/pod-manifests/

 
cloud-controller-manager.yaml  etcd.yaml  kube-apiserver.yaml  kube-controller-manager.yaml  kube-proxy.yaml  kube-scheduler.yaml

Validation Results:

  ~$ k get nodes
NAME               STATUS   ROLES                       AGE   VERSION
ip-             Ready    control-plane,etcd,master   57s   v1.30.3+rke2r1


~$ sudo RKE2_DATA_DIR=/var/fran/rke2 rke2-killall.sh

~$ ls /var/fran/rke2/agent/pod-manifests/
 #  empty


@fmoral2 fmoral2 closed this as completed Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants