I have created Mongodb stateful set using mongodb kubernetes operator.
Now I want to delete that stateful set from kubernetes dashboard, but it is getting recreated again and again.
How do we delete stateful set permanently so that it doesn't get created again.
Harsh Manvar :
\nHow do we delete stateful set permanently so that it doesn't get\ncreated again.\n\nList and check the name of statefulset\nkubectl get statefulsets -n <namespace name>\n\nCommand to delete the stateful set permanently\nkubectl delete statefulset <Mongo statefulset name> -n <namespace name>\n\nUpdate\nTry deleting the CRD also\nkubectl get crd\n\ndelete CRD for mongo\nkubectl delete crd <CRD name>\n",
Are you trying to delete a pod or the Stateful set itself?\nTry to run:\nkubectl scale sts <Stateful Set name> --replicas=0 -n <your namespace>\n",