Test Service Account mount on host

  1. This test case should be tested on both yaml installation, chart installation (Helm and Rancher UI), as well as upgrade scenarios
  2. After install Longhorn using on of the above method, ssh into a worker node that has a longhorn-manager pod running
  3. check the mount point /run/secrets/kubernetes.io/serviceaccount by running:
    root@node-1:~# findmnt  /run/secrets/kubernetes.io/serviceaccount
    
  4. Verify that there is no such mount point
  5. Kill the longhorn-manager pod on the above node and wait for it to be recreated and running
  6. check the mount point /run/secrets/kubernetes.io/serviceaccount by running:
    root@node-1:~# findmnt  /run/secrets/kubernetes.io/serviceaccount
    
  7. Verify that there is no such mount point
  8. Repeat the step 5 to 7 a few times
[Edit]