Code Monkey home page Code Monkey logo

Comments (6)

derekbit avatar derekbit commented on May 29, 2024

@yangchiu Can you take a look at the GitOPs Argo installation? Thank you.

from longhorn.

yangchiu avatar yangchiu commented on May 29, 2024

@derekbit Yes, I've confirmed after executing argocd app delete longhorn, only longhorn-manager and longhorn-ui pods are deleted, most of longhorn components like longhorn-instance-manager, engine-image and csi-component pods are still there, and longhorn crd are not deleted as well:

$ kubectl -n longhorn-system get pod -w
NAME                                                READY   STATUS    RESTARTS   AGE
longhorn-manager-68tmz                              1/1     Running   0          63s
longhorn-ui-5f4b7bbf69-66fr7                        1/1     Running   0          63s
longhorn-ui-5f4b7bbf69-56fd5                        1/1     Running   0          63s
longhorn-manager-wjgg7                              1/1     Running   0          63s
longhorn-manager-kjprb                              1/1     Running   0          63s
engine-image-ei-5cefaf2b-fq8z9                      1/1     Running   0          53s
engine-image-ei-5cefaf2b-pvwvw                      1/1     Running   0          53s
instance-manager-3ca568464e01498cff8cd840df76c140   1/1     Running   0          53s
longhorn-driver-deployer-9f4fc86-8cwmj              1/1     Running   0          63s
instance-manager-d174dd8689e3c1bff74a4ee030556bf8   1/1     Running   0          52s
engine-image-ei-5cefaf2b-6jr9m                      1/1     Running   0          53s
instance-manager-261db67db812c6f9c5d82a7140b1a7bd   1/1     Running   0          53s
csi-attacher-5c4bfdcf59-qz9sl                       1/1     Running   0          16s
csi-provisioner-667796df57-hmcx8                    1/1     Running   0          16s
csi-provisioner-667796df57-4cxgc                    1/1     Running   0          16s
csi-attacher-5c4bfdcf59-dhnb2                       1/1     Running   0          16s
csi-resizer-694f8f5f64-gkmd7                        1/1     Running   0          16s
csi-attacher-5c4bfdcf59-khs76                       1/1     Running   0          16s
csi-snapshotter-959b69d4b-sr6lf                     1/1     Running   0          16s
csi-resizer-694f8f5f64-ngjbn                        1/1     Running   0          16s
csi-snapshotter-959b69d4b-t5m5x                     1/1     Running   0          16s
csi-resizer-694f8f5f64-tg4kt                        1/1     Running   0          16s
longhorn-csi-plugin-pr7jd                           3/3     Running   0          15s
csi-snapshotter-959b69d4b-9gc2l                     1/1     Running   0          16s
csi-provisioner-667796df57-lwckj                    1/1     Running   0          16s
longhorn-csi-plugin-pft99                           3/3     Running   0          16s
longhorn-csi-plugin-ls7xn                           3/3     Running   0          15s

$ kubectl -n longhorn-system patch -p '{"value": "true"}' --type=merge lhs deleting-confirmation-flag
setting.longhorn.io/deleting-confirmation-flag patched

$ argocd app delete longhorn --cascade
Are you sure you want to delete 'longhorn' and all its resources? [y/n] Y
application 'longhorn' deleted

$ kubectl -n longhorn-system get pod -w
NAME                                                READY   STATUS    RESTARTS      AGE
engine-image-ei-5cefaf2b-fq8z9                      1/1     Running   0             2m29s
engine-image-ei-5cefaf2b-pvwvw                      1/1     Running   0             2m29s
instance-manager-3ca568464e01498cff8cd840df76c140   1/1     Running   0             2m29s
instance-manager-d174dd8689e3c1bff74a4ee030556bf8   1/1     Running   0             2m28s
engine-image-ei-5cefaf2b-6jr9m                      1/1     Running   0             2m29s
instance-manager-261db67db812c6f9c5d82a7140b1a7bd   1/1     Running   0             2m29s
csi-provisioner-667796df57-hmcx8                    1/1     Running   0             112s
csi-provisioner-667796df57-4cxgc                    1/1     Running   0             112s
csi-attacher-5c4bfdcf59-dhnb2                       1/1     Running   0             112s
csi-resizer-694f8f5f64-gkmd7                        1/1     Running   0             112s
csi-attacher-5c4bfdcf59-khs76                       1/1     Running   0             112s
csi-snapshotter-959b69d4b-t5m5x                     1/1     Running   0             112s
csi-resizer-694f8f5f64-tg4kt                        1/1     Running   0             112s
longhorn-csi-plugin-pr7jd                           3/3     Running   0             111s
csi-snapshotter-959b69d4b-9gc2l                     1/1     Running   0             112s
longhorn-csi-plugin-pft99                           3/3     Running   0             112s
longhorn-csi-plugin-ls7xn                           3/3     Running   0             111s
csi-attacher-5c4bfdcf59-qz9sl                       1/1     Running   1 (41s ago)   112s
csi-resizer-694f8f5f64-ngjbn                        1/1     Running   1 (42s ago)   112s
csi-snapshotter-959b69d4b-sr6lf                     1/1     Running   1 (42s ago)   112s
csi-provisioner-667796df57-lwckj                    1/1     Running   1 (41s ago)   112s

$ kubectl get crd | grep longhorn
replicas.longhorn.io                    2024-04-20T03:03:23Z
engines.longhorn.io                     2024-04-20T03:03:23Z
recurringjobs.longhorn.io               2024-04-20T03:03:23Z
backingimagedatasources.longhorn.io     2024-04-20T03:03:23Z
orphans.longhorn.io                     2024-04-20T03:03:23Z
backupbackingimages.longhorn.io         2024-04-20T03:03:23Z
backingimagemanagers.longhorn.io        2024-04-20T03:03:23Z
settings.longhorn.io                    2024-04-20T03:03:23Z
systemrestores.longhorn.io              2024-04-20T03:03:23Z
snapshots.longhorn.io                   2024-04-20T03:03:23Z
sharemanagers.longhorn.io               2024-04-20T03:03:23Z
supportbundles.longhorn.io              2024-04-20T03:03:23Z
instancemanagers.longhorn.io            2024-04-20T03:03:23Z
systembackups.longhorn.io               2024-04-20T03:03:23Z
backups.longhorn.io                     2024-04-20T03:03:23Z
backupvolumes.longhorn.io               2024-04-20T03:03:23Z
volumeattachments.longhorn.io           2024-04-20T03:03:23Z
backingimages.longhorn.io               2024-04-20T03:03:23Z
backuptargets.longhorn.io               2024-04-20T03:03:23Z
engineimages.longhorn.io                2024-04-20T03:03:23Z
nodes.longhorn.io                       2024-04-20T03:03:23Z
volumes.longhorn.io                     2024-04-20T03:03:23Z

Do you have a clue about what's missing or what could cause this symptom?

from longhorn.

derekbit avatar derekbit commented on May 29, 2024

@yangchiu Thanks for the quick update. What's the longhorn version? Can you send me the kubeconfig in our internal slack channel? I will check it later. Thank you.

from longhorn.

derekbit avatar derekbit commented on May 29, 2024

After a quick check, I found argocd app delete longhorn directly deleted resources in longhorn-system namespace (codes). The deletion process doesn't execute longhorn-manager uninstall as the uninstallation process of helm.

Currently, the PreDelete is not supported in ArgoCD yet.

from longhorn.

derekbit avatar derekbit commented on May 29, 2024

@mantissahz @PhanLe1010 Do you have any thoughts for the uninstallation?

from longhorn.

derekbit avatar derekbit commented on May 29, 2024

DOC: https://longhorn.io/docs/1.7.0/deploy/uninstall/#uninstalling-longhorn-using-argo-cd

from longhorn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.