1"use strict";(globalThis.webpackChunkdocs_new=globalThis.webpackChunkdocs_new||[]).push([[10012,52416,89314],{4865:(e,n,r)=>{r.d(n,{A:()=>p});r(96540);var s=r(18215),a=r(17559),t=r(47751),l=r(23104),o=r(92303);const i={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var u=r(74848);function c({className:e}){const{selectedValue:n,selectValue:r,tabValues:a,block:o}=(0,t.uc)(),c=[],{blockElementScrollPositionUntilNextRender:d}=(0,l.a_)(),h=e=>{const s=e.currentTarget,t=c.indexOf(s),l=a[t].value;l!==n&&(d(s),r(l))},p=e=>{let n=null;switch(e.key){case"Enter":h(e);break;case"ArrowRight":{const r=c.indexOf(e.currentTarget)+1;n=c[r]??c[0];break}case"ArrowLeft":{const r=c.indexOf(e.currentTarget)-1;n=c[r]??c[c.length-1];break}}n?.focus()};return(0,u.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":o},e),children:a.map((({value:e,label:r,attributes:a})=>(0,u.jsx)("li",{role:"tab",tabIndex:n===e?0:-1,"aria-selected":n===e,ref:e=>{c.push(e)},onKeyDown:p,onClick:h,...a,className:(0,s.A)("tabs__item",i.tabItem,a?.className,{"tabs__item--active":n===e}),children:r??e},e)))})}function d({children:e}){return(0,u.jsx)("div",{className:"margin-top--md",children:e})}function h({className:e,children:n}){return(0,u.jsxs)("div",{className:(0,s.A)(a.G.tabs.container,"tabs-container",i.tabList),children:[(0,u.jsx)(c,{className:e}),(0,u.jsx)(d,{children:n})]})}function p(e){const n=(0,o.A)(),r=(0,t.OC)(e);return(0,u.jsx)(t.O_,{value:r,children:(0,u.jsx)(h,{className:e.className,children:(0,t.vT)(e.children)})},String(n))}},19365:(e,n,r)=>{r.d(n,{A:()=>i});r(96540);var s=r(18215),a=r(47751);const t={tabItem:"tabItem_Ymn6"};var l=r(74848);function o({children:e,className:n,hidden:r}){return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.A)(t.tabItem,n),hidden:r,children:e})}function i({children:e,className:n,value:r}){const{selectedValue:s,lazy:t}=(0,a.uc)(),i=r===s;return!i&&t?null:(0,l.jsx)(o,{className:n,hidden:!i,children:e})}},34168:(e,n,r)=>{r.d(n,{A:()=>i});var s=r(83457),a=r(4865),t=r(19365),l=r(21312),o=r(74848);function i(e){(0,l.T)({id:"OcbootRun.runChinaAliRegComment",message:"# \u76f4\u63a5\u90e8\u7f72\uff0c\u4f1a\u4ece registry.cn-beijing.aliyuncs.com \u62c9\u53d6\u5bb9\u5668\u955c\u50cf"}),(0,l.T)({id:"OcbootRun.runChinaPip",message:"# \u5982\u679c\u9047\u5230 pip \u5b89\u88c5\u5305\u4e0b\u8f7d\u8fc7\u6162\u7684\u95ee\u9898\uff0c\u53ef\u4ee5\u7528 -m \u53c2\u6570\u6307\u5b9a pip \u6e90\n# \u6bd4\u5982\u4e0b\u9762\u4f7f\u7528: https://mirrors.aliyun.com/pypi/simple/ \u6e90"}),(0,l.T)({id:"OcbootRun.otherRegionHint",message:"\u5bf9\u4e8e\u67d0\u4e9b\u7f51\u7edc\u73af\u5883\uff0c\u5982\u679c\u51fa\u73b0 registry.cn-beijing.aliyuncs.com \u8bbf\u95ee\u7f13\u6162\u6216\u4e0d\u53ef\u8fbe\uff0c\u53ef\u6307\u5b9a\u955c\u50cf\u6e90: docker.io/yunion \u6765\u5b89\u88c5\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a"});return(0,o.jsx)("div",{children:(0,o.jsxs)(a.A,{children:[(0,o.jsxs)(t.A,{value:(0,l.T)({message:"K3s"}),label:(0,l.T)({message:"K3s"}),children:[(0,o.jsx)("p",{children:"\u5378\u8f7d K3s \u670d\u52a1"}),(0,o.jsx)(s.A,{language:"bash",children:"$ k3s-uninstall.sh\n$ k3s-agent-uninstall.sh"}),(0,o.jsx)("p",{children:"\u505c\u6b62\u5e76\u7981\u7528\u76f8\u5173\u670d\u52a1\uff1a"}),(0,o.jsx)(s.A,{language:"bash",children:"$ systemctl disable --now yunion-executor"})]}),(0,o.jsxs)(t.A,{value:(0,l.T)({message:"Kubernetes"}),label:(0,l.T)({message:"Kubernetes"}),children:[(0,o.jsx)("p",{children:"\u5378\u8f7dKubernetes\u670d\u52a1"}),(0,o.jsx)(s.A,{language:"bash",children:"$ kubeadm reset --force\n$ ipvsadm --clear"}),(0,o.jsx)("p",{children:"\u505c\u6b62\u5e76\u7981\u7528\u76f8\u5173\u670d\u52a1\uff1a"}),(0,o.jsx)(s.A,{language:"bash",children:"$ systemctl disable --now docker.socket docker kubelet yunion-executor"}),(0,o.jsx)("p",{children:"\u5378\u8f7dkubelet, yunion-executor\u7b49\u5305\uff0c\u5e76\u6e05\u9664\u76f8\u5173\u7684\u6570\u636e\u76ee\u5f55\uff0c\u4e0b\u9762\u4ee5 centos \u4e3e\u4f8b\uff1a"}),(0,o.jsx)(s.A,{language:"bash",children:"$ rpm -qa |grep kube |xargs -I {} yum -y remove {} \n$ rpm -qa |grep yunion |xargs -I {} yum -y remove {}\n$ rm -rf /etc/kubernetes/ /var/lib/etcd/ /root/.kube/ /opt/cloud/"})]})]})})}},47751:(e,n,r)=>{r.d(n,{OC:()=>b,O_:()=>v,uc:()=>f,vT:()=>c});var s=r(96540),a=r(56347),t=r(205),l=r(57485),o=r(89466),i=r(31682),u=r(74848);function c(e){return s.Children.toArray(e).filter((e=>"\n"!==e))}function d(e){const{values:n,children:r}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return s.Children.toArray(e).flatMap((e=>{if(!e)return[];if((0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return[e];
1const n="string"==typeof e.type?e.type:e.type.name;throw new Error(`Docusaurus error: Bad <Tabs> child <${n}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.\nIf you do not want to pass on a "value" prop to the direct children of <Tabs>, you can also pass an explicit <Tabs values={...}> prop.`)})).map((({props:{value:e,label:n,attributes:r,default:s}})=>({value:e,label:n,attributes:r,default:s})))}(r);return function(e){const n=(0,i.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>`'${e.value}'`)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,r])}function h({value:e,tabValues:n}){return n.some((n=>n.value===e))}function p({queryString:e=!1,groupId:n}){const r=(0,a.W6)(),t=function({queryString:e=!1,groupId:n}){if("string"==typeof e)return e;if(!1===e)return null;if(!0===e&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:e,groupId:n});return[(0,l.aZ)(t),(0,s.useCallback)((e=>{if(!t)return;const n=new URLSearchParams(r.location.search);n.set(t,e),r.replace({...r.location,search:n.toString()})}),[t,r])]}function b(e){const{defaultValue:n,queryString:r=!1,groupId:a}=e,l=d(e),[i,u]=(0,s.useState)((()=>function({defaultValue:e,tabValues:n}){if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(e){if(!h({value:e,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${e}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return e}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:l}))),[c,b]=p({queryString:r,groupId:a}),[m,f]=function({groupId:e}){const n=function(e){return e?`docusaurus.tab.${e}`:null}(e),[r,a]=(0,o.Dv)(n);return[r,(0,s.useCallback)((e=>{n&&a.set(e)}),[n,a])]}({groupId:a}),v=(()=>{const e=c??m;return h({value:e,tabValues:l})?e:null})();(0,t.A)((()=>{v&&u(v)}),[v]);return{selectedValue:i,selectValue:(0,s.useCallback)((e=>{if(!h({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);u(e),b(e),f(e)}),[b,f,l]),tabValues:l,lazy:e.lazy??!1,block:e.block??!1}}const m=(0,s.createContext)(null);function f(){const e=s.useContext(m);if(!e)throw new Error("useTabsContext() must be used within a Tabs component");return e}function v(e){return(0,u.jsx)(m.Provider,{value:e.value,children:e.children})}},53600:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>u,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"operations/platform-issues/uninstallation","title":"\u5378\u8f7d\u5e73\u53f0","description":"\u6839\u636e\u5e73\u53f0\u5b89\u88c5\u65b9\u5f0f\uff0c\u5378\u8f7d\u65b9\u5f0f\u5404\u6709\u4e0d\u540c\uff0c\u65b9\u5f0f\u5982\u4e0b\u3002","source":"@site/docs/shared/operations/platform-issues/uninstallation.md","sourceDirName":"operations/platform-issues","slug":"/operations/platform-issues/uninstallation","permalink":"/docs/shared/operations/platform-issues/uninstallation","draft":false,"unlisted":false,"editUrl":"https://github.com/yunionio/website/tree/master/docs/shared/operations/platform-issues/uninstallation.md","tags":[],"version":"current","sidebarPosition":25,"frontMatter":{"edition":"ce","sidebar_position":25},"sidebar":"sharedSidebar","previous":{"title":"\u6e05\u7406\u672a\u4f7f\u7528\u7684\u5b89\u5168\u7ec4","permalink":"/docs/shared/operations/platform-issues/clean-kvm-security-groups"},"next":{"title":"\u5f00\u53d1\u624b\u518c","permalink":"/docs/shared/development/"}}');var a=r(74848),t=r(28453),l=r(34168);const o={edition:"ce",sidebar_position:25},i="\u5378\u8f7d\u5e73\u53f0",u={},c=[{value:"Ocboot \u5b89\u88c5",id:"ocboot",level:2},{value:"Kubernetes Helm \u5b89\u88c5",id:"kubernetes-helm-\u5b89\u88c5",level:2},{value:"Docker Compose \u5b89\u88c5",id:"docker-compose-\u5b89\u88c5",level:2}];function d(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"\u5378\u8f7d\u5e73\u53f0",children:"\u5378\u8f7d\u5e73\u53f0"})}),"\n",(0,a.jsx)(n.p,{children:"\u6839\u636e\u5e73\u53f0\u5b89\u88c5\u65b9\u5f0f\uff0c\u5378\u8f7d\u65b9\u5f0f\u5404\u6709\u4e0d\u540c\uff0c\u65b9\u5f0f\u5982\u4e0b\u3002"}),"\n",(0,a.jsx)(n.h2,{id:"ocboot",children:"Ocboot \u5b89\u88c5"}),"\n",(0,a.jsx)(n.p,{children:"Ocboot \u5feb\u901f\u5b89\u88c5\u662f\u6307\u4ee5 All in One \u7684\u65b9\u5f0f\uff0c\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u4e86\u4e00\u4e2a K3s \u6216\u8005 Kubernets \u96c6\u7fa4\uff0c\u8fdb\u800c\u5728\u96c6\u7fa4\u4e2d\u90e8\u7f72\u4e86Cloudpods\u3002"}),"\n",(0,a.jsx)(n.p,{children:"\u56e0\u6b64\u5378\u8f7dCloupods\u53ea\u9700\u8981\u5378\u8f7d\u5b89\u88c5\u7684 K3s \u6216\u8005 Kubernetes \u96c6\u7fa4\uff0c\u4ee5\u53ca\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u7684\u76f8\u5173\u5305\u3002"}),"\n","\n",(0,a.jsx)(l.A,{}),"\n",(0,a.jsx)(n.p,{children:"\u5378\u8f7d\u6570\u636e\u5e93(\u4ee5 CentOS \u4e3e\u4f8b):"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'$ yum -y remove mariadb*\n$ rm -rf /var/lib/mysql # \u4fdd\u7559\u539f\u59cb\u6570\u636e\u6267\u884c mv -f /var/lib/mysql /var/lib/mysql.$(date +"%Y%m%d-%H%M").bak\n$ rm -rf /etc/my.conf\n'})}),"\n",(0,a.jsx)(n.p,{children:"\u673a\u5668\u91cd\u542f\uff0c\u6062\u590d\u4e4b\u524d\u7684\u7f51\u7edc\uff1a"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"$ reboot\n"})}),"\n",(0,a.jsx)(n.p,{children:"\u5378\u8f7dopenvswitch\uff08\u5148\u91cd\u542f\uff0c\u518d\u5378\u8f7d openvswitch\uff0c\u4ee5\u514d\u53ef\u80fd\u51fa\u73b0\u7684\u65ad\u7f51\u60c5\u51b5\uff09\u3002\u547d\u4ee4\u5982\u4e0b\uff1a"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"$ systemctl disable --now openvswitch\n$ yum -y remove openvswitch-*\n$ rm -rf /etc/
1openvswitch\n"})}),"\n",(0,a.jsx)(n.h2,{id:"kubernetes-helm-\u5b89\u88c5",children:"Kubernetes Helm \u5b89\u88c5"}),"\n",(0,a.jsx)(n.p,{children:"\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5378\u8f7d\uff1a"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"helm uninstall -n onecloud default\n"})}),"\n",(0,a.jsx)(n.h2,{id:"docker-compose-\u5b89\u88c5",children:"Docker Compose \u5b89\u88c5"}),"\n",(0,a.jsx)(n.p,{children:"\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5378\u8f7d\uff1a"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"docker compose down\n"})})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(d,{...e})}):d(e)}}}]);
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.