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

Bucket is deleted when POD/PVC is deleted #70

Open
ambiknai opened this issue Jul 5, 2023 · 0 comments
Open

Bucket is deleted when POD/PVC is deleted #70

ambiknai opened this issue Jul 5, 2023 · 0 comments
Assignees

Comments

@ambiknai
Copy link
Member

ambiknai commented Jul 5, 2023

Screenshot 2023-07-05 at 3 47 17 PM
root@new20221:~/.../satellite-object-storage-plugin# kubectl get pods
NAME                                     READY   STATUS    RESTARTS   AGE
cos-csi-app                              1/1     Running   0          63m
cos-s3-csi-controller-5dfb6d8d78-6qqfn   3/3     Running   0          108m
cos-s3-csi-driver-fdmng                  3/3     Running   0          108m
cos-s3-csi-driver-v86jz                  3/3     Running   0          108m
cos-s3-csi-driver-zmw22                  3/3     Running   0          108m
root@new20221:~/.../satellite-object-storage-plugin# kubectl exec -it cos-csi-app   /bin/bash
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
root@cos-csi-app:/# mount | grep s3fs
s3fs on /data type fuse.s3fs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
root@cos-csi-app:/# ls /data
root@cos-csi-app:/# echo "hi" > /data/new.txt
root@cos-csi-app:/# mount | grep s3fs
s3fs on /data type fuse.s3fs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
root@cos-csi-app:/# ls /data
new.txt
root@cos-csi-app:/# 
root@cos-csi-app:/# 
root@cos-csi-app:/# 
root@cos-csi-app:/# exit
exit
root@new20221:~/.../satellite-object-storage-plugin# 
Screenshot 2023-07-05 at 3 49 47 PM
root@new20221:~/.../satellite-object-storage-plugin# kubectl get pods
kubectl delete pod NAME                                     READY   STATUS    RESTARTS   AGE
cos-csi-app                              1/1     Running   0          76m
cos-s3-csi-controller-5dfb6d8d78-6qqfn   3/3     Running   0          121m
cos-s3-csi-driver-fdmng                  3/3     Running   0          121m
cos-s3-csi-driver-v86jz                  3/3     Running   0          121m
cos-s3-csi-driver-zmw22                  3/3     Running   0          121m
root@new20221:~/.../satellite-object-storage-plugin# kubectl delete pod cos-csi-app
pod "cos-csi-app" deleted
root@new20221:~/.../satellite-object-storage-plugin# kubectl get pvc
kubNAME             STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS    AGE
cos-s3-csi-pvc   Bound    pvc-58198af3-232d-48ac-b4d1-6d70e1646990   256Mi      RWO            cos-s3-csi-sc   77m
root@new20221:~/.../satellite-object-storage-plugin# kubectl delete pvc cos-s3-csi-pvc
persistentvolumeclaim "cos-s3-csi-pvc" deleted
root@new20221:~/.../satellite-object-storage-plugin# kubectl get pod
NAME                                     READY   STATUS    RESTARTS   AGE
cos-s3-csi-controller-5dfb6d8d78-6qqfn   3/3     Running   0          122m
cos-s3-csi-driver-fdmng                  3/3     Running   0          122m
cos-s3-csi-driver-v86jz                  3/3     Running   0          122m
cos-s3-csi-driver-zmw22                  3/3     Running   0          122m
root@new20221:~/.../satellite-object-storage-plugin# 
@ambiknai ambiknai self-assigned this Jul 5, 2023
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

1 participant