1"use strict";(self.webpackChunklitmus_docs2_0=self.webpackChunklitmus_docs2_0||[]).push([[1458],{603905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return h}});var r=n(667294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),c=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):s(s({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(i.Provider,{value:t},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},p=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,u=o(e,["components","mdxType","originalType","parentName"]),d=c(n),p=a,h=d["".concat(i,".").concat(p)]||d[p]||m[p]||l;return n?r.createElement(h,s(s({ref:t},u),{},{components:n})):r.createElement(h,s({ref:t},u))}));function h(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,s=new Array(l);s[0]=p;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o[d]="string"==typeof e?e:a,s[1]=o;for(var c=2;c<l;c++)s[c]=n[c];return r.createElement.apply(null,s)}return r.createElement.apply(null,n)}p.displayName="MDXCreateElement"},376783:function(e,t,n){n.r(t),n.d(t,{contentTitle:function(){return i},default:function(){return p},frontMatter:function(){return o},metadata:function(){return c},toc:function(){return u}});var r=n(487462),a=n(263366),l=(n(667294),n(603905)),s=["components"],o={id:"uninstall-litmus",title:"Uninstalling Litmus",sidebar_label:"Uninstall Litmus"},i=void 0,c={unversionedId:"user-guides/uninstall-litmus",id:"version-3.25.0/user-guides/uninstall-litmus",title:"Uninstalling Litmus",description:"---",source:"@site/versioned_docs/version-3.25.0/user-guides/uninstall-litmus.md",sourceDirName:"user-guides",slug:"/user-guides/uninstall-litmus",permalink:"/docs/3.25.0/user-guides/uninstall-litmus",editUrl:"https://github.com/litmuschaos/litmus-docs/edit/master/website/versioned_docs/version-3.25.0/user-guides/uninstall-litmus.md",tags:[],version:"3.25.0",frontMatter:{id:"uninstall-litmus",title:"Uninstalling Litmus",sidebar_label:"Uninstall Litmus"},sidebar:"docs",previous:{title:"Using different image registries",permalink:"/docs/3.25.0/user-guides/image-registry"},next:{title:"Installation",permalink:"/docs/3.25.0/litmusctl/installation"}},u=[{value:"Chaos Infrastructure",id:"chaos-infrastructure",children:[{value:"Remove the CRs",id:"remove-the-crs",children:[],level:3},{value:"Delete the Deployments",id:"delete-the-deployments",children:[],level:3},{value:"Removing Service Account, Role Bindings and Roles",id:"removing-service-account-role-bindings-and-roles",children:[],level:3}],level:2},{value:"Remove the CRDs",id:"remove-the-crds",children:[],level:2},{value:"ChaosCenter",id:"chaoscenter",children:[{value:"Using Kubectl",id:"using-kubectl",children:[],level:3},{value:"Using Helm",id:"using-helm",children:[],level:3}],level:2}],d={toc:u},m="wrapper";function p(e){var t=e.components,n=(0,a.Z)(e,s);return(0,l.kt)(m,(0,r.Z)({},d,n,{components:t,mdxType:"MDXLayout"}
1),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"chaos-infrastructure"},"Chaos Infrastructure"),(0,l.kt)("p",null,"To disconnect the ",(0,l.kt)("a",{parentName:"p",href:"/docs/3.25.0/getting-started/resources#chaosagents"},"Chaos Infrastructure")," connected to the ",(0,l.kt)("a",{parentName:"p",href:"/docs/3.25.0/getting-started/resources#chaoscenter"},"ChaosCenter"),", follow these steps -"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Remove the ChaosEngines of the respective Chaos Infrastructure")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-bash"},"kubectl delete chaosengine <CHAOSENGINE_NAMEs> --all -<INFRA_NAMESPACE>\n")),(0,l.kt)("div",{className:"admonition admonition-note alert alert--secondary"},(0,l.kt)("div",{parentName:"div",className:"admonition-heading"},(0,l.kt)("h5",{parentName:"div"},(0,l.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,l.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,l.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))),"note")),(0,l.kt)("div",{parentName:"div",className:"admonition-content"},(0,l.kt)("p",{parentName:"div"},"If ChaosEngines is unable to delete successfully then the Kubernetes finalizers need to be removed manually."))),(0,l.kt)("ol",{start:2},(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("p",{parentName:"li"},"Login to the ChaosCenter and navigate to the Chaos Infrastructures Page.")),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("p",{parentName:"li"},"Click on the three dot menu and select ",(0,l.kt)("inlineCode",{parentName:"p"},"Disable")," of the respective Chaos Infrastructure you want to disconnect.")),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("p",{parentName:"li"},"On the Modal that appears, confirm your selection by clicking ",(0,l.kt)("inlineCode",{parentName:"p"},"Yes")," and the selected Chaos Infrastructure would be disconnected from the ChaosCenter."),(0,l.kt)("div",{parentName:"li",className:"admonition admonition-note alert alert--secondary"},(0,l.kt)("div",{parentName:"div",className:"admonition-heading"},(0,l.kt)("h5",{parentName:"div"},(0,l.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,l.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,l.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))),"note")),(0,l.kt)("div",{parentName:"div",className:"admonition-content"},(0,l.kt)("p",{parentName:"div"},"The above disconnect would remove the subscriber component from Chaos Infrastructure and thus removing the connectivity between the Chaos Infrastructure and the ChaosCenter."),(0,l.kt)("p",{parentName:"div"},"If the Chaos Infrastructure is not reachable it would remove only the entry from the database of the ChaosCenter"))))),(0,l.kt)("h3",{id:"remove-the-crs"},"Remove the CRs"),(0,l.kt)("p",null,"To remove the CRs, use the following commands:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"To remove individual CRs")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-bash"}
1,"kubectl delete chaosexperiments <CHAOSEXPERIMENTS_NAMEs> -n <INFRA_NAMESPACE>\nkubectl delete chaosresults <CHAOSRESULTS_NAMEs> -n <INFRA_NAMESPACE>\nkubectl delete workflows <WORKFLOW_NAMEs> -n <INFRA_NAMESPACE>\nkubectl delete cronworkflows <CRONWORKFLOW_NAMEs> -n <INFRA_NAMESPACE>\nkubectl delete eventtrackerpolicies -n <INFRA_NAMESPACE>\n")),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"To remove all CRs")),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-bash"},"kubectl delete chaosengine,chaosexperiments,chaosresults --all <INFRA_NAMESPACE>\nkubectl delete workflows cronworflows --all <INFRA_NAMESPACE>\nkubectl delete eventtrackerpolicies -n <INFRA_NAMESPACE>\n")),(0,l.kt)("h3",{id:"delete-the-deployments"},"Delete the Deployments"),(0,l.kt)("p",null,"To remove the respective deployments of the Chaos Infrastructures you need to manually delete them."),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-bash"},"kubectl delete deployment chaos-operator-ce event-tracker workflow-controller chaos-exporter -n <INFRA_NAMESPACE>\n")),(0,l.kt)("h3",{id:"removing-service-account-role-bindings-and-roles"},"Removing Service Account, Role Bindings and Roles"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-bash"},"kubectl delete sa rolebindings role --all -n <NAMESPACE>\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"remove-the-crds"},"Remove the CRDs"),(0,l.kt)("p",null,"To remove all the CRDs Litmus uses, use the following command:"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-bash"},"kubectl delete -f https://raw.githubusercontent.com/litmuschaos/litmus/3.20.0/chaoscenter/manifests/litmus-portal-crds.yml\n")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"chaoscenter"},"ChaosCenter"),(0,l.kt)("blockquote",null,(0,l.kt)("p",{parentName:"blockquote"},"To remove the Chaos Infrastructure Resources you need to follow the above Chaos Infrastructure Uninstall process")),(0,l.kt)("p",null,"To uninstall the ChaosCenter from the system, follow these steps -"),(0,l.kt)("h3",{id:"using-kubectl"},"Using Kubectl"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-bash"},"kubectl delete -f ${LITMUS_PORTAL_NAMESPACE}-ns-scoped-litmus-portal-manifest.yml -n ${LITMUS_PORTAL_NAMESPACE}\n")),(0,l.kt)("h3",{id:"using-helm"},"Using Helm"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-bash"},"helm uninstall litmuschaos --namespace <NAMESPACE>\nkubectl delete ns <NAMESPACE>\n")))}p.isMDXComponent=!0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.