PageSourceSearch

https://chaos-mesh-website-archived.netlify.app/assets/js/6c5c66fd.d70fe66d.js

js chaos-mesh-website-archived.netlify.app collected 2026-10-03 10:36:02 UTC 9,199 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkchaos_mesh_website_archived=self.webpackChunkchaos_mesh_website_archived||[]).push([[18360],{47853:(e,t,n)=>{n.d(t,{A:()=>u,t:()=>o});var a=n(93905),r=n(21403),i=n(93219),s=n(66553),l=n(37953);const o=(e,t)=>{const n=window.location.pathname;let a=window.localStorage.getItem("docs-preferred-version-default");if(n===e.baseUrl&&a)return"current"===a?"latest":a;if(n.includes("/docs/next"))return"latest";const r=t.find((e=>e.isLast)),i=t.find((e=>n.includes(e.name)));return i?i.name:r.name};const u=({children:e,replaced:t="latest",isArchive:n=!1,className:u="language-bash"})=>{const{siteConfig:c}=(0,r.A)(),{versions:p}=(0,i.P_)("docusaurus-plugin-content-docs");return l.createElement(a.A,null,(()=>{const a=o(c,p),r=n?e.replace(t,function(e){return"latest"===e?"refs/heads/master":`refs/tags/v${e}`}(a)):"latest"===a?e:e.replace(t,"v"+a);return l.createElement(s.A,{className:u},r)}))}},58860:(e,t,n)=>{n.d(t,{xA:()=>c,yg:()=>h});var a=n(37953);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=a.createContext({}),u=function(e){var t=a.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):s(s({},t),e)),n},c=function(e){var t=u(e.components);return a.createElement(o.Provider,{value:t},e.children)},p="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},d=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,i=e.originalType,o=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),p=u(n),d=r,h=p["".concat(o,".").concat(d)]||p[d]||m[d]||i;return n?a.createElement(h,s(s({ref:t},c),{},{components:n})):a.createElement(h,s({ref:t},c))}));function h(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=n.length,s=new Array(i);s[0]=d;var l={};for(var o in t)hasOwnProperty.call(t,o)&&(l[o]=t[o]);l.originalType=e,l[p]="string"==typeof e?e:r,s[1]=l;for(var u=2;u<i;u++)s[u]=n[u];return a.createElement.apply(null,s)}return a.createElement.apply(null,n)}d.displayName="MDXCreateElement"},73008:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>s,metadata:()=>o,toc:()=>c});var a=n(4462),r=(n(37953),n(58860)),i=n(47853);const s={title:"Get started on Minikube"},l=void 0,o={unversionedId:"installation/get_started_on_minikube",id:"version-0.9.1/installation/get_started_on_minikube",title:"Get started on Minikube",description:"This document describes how to deploy Chaos Mesh in Kubernetes on your laptop (Linux or macOS) using Minikube.",source:"@site/versioned_docs/version-0.9.1/installation/get_started_on_minikube.md",sourceDirName:"installation",slug:"/installation/get_started_on_minikube",permalink:"/docs/0.9.1/installation/get_started_on_minikube",draft:!1,editUrl:"https://github.com/chaos-mesh/website-archived/edit/master/versioned_docs/version-0.9.1/installation/get_started_on_minikube.md",tags:[],version:"0.9.1",frontMatter:{title:"Get started on Minikube"},sidebar:"version-0.9.1/docs",previous:{title:"Get started on kind",permalink:"/docs/0.9.1/installation/get_started_on_kind"},next:{title:"Run Chaos Experiment",permalink:"/docs/0.9.1/user_guides/run_chaos_experiment"}},u={},c=[{value:"Prerequisites",id:"prerequisites",level:2},{value:"Step 1: Set up the Kubernetes environment",id:"step-1-set-up-the-kubernetes-environment",level:2},{value:"Step 2: Install Chaos Mesh",id:"step-2-install-chaos-mesh",level:2},{value:"Verify your installation",id:"verify-your-installation",level:3},{value:"Uninstallation",id:"uninstallation",level:2},{value:"Limitations",id:"limitations",level:2}],p={toc:c},m="wrapper";function d({components:e,...t}){return(0,r.yg)(m,(0,a.A)({},p,t,{components:e,mdxType:"MDXLayout"}),(0,r.yg)("p",null,"This document describes how to deploy Chaos Mesh in Kubernetes on your laptop (Linux or macOS) using Minikube."),(0,r.yg)("h2",{id:"prerequisites"},"Prerequisites"),(0,r.yg)("p",null,"Before deployment, make sure ",(0,r.yg)("a",{parentName:"p",href:"https://kubernetes.io/docs/tasks/tools/install-minikube/"},"Minikube")," is installed on your local machine."),(0,r.yg)("h2",{id:"step-1-set-up-the-kubernetes-environment"},"Step 1: Set up the Kubernetes environment"),(0,r.yg)("p",null,"Perform the following steps to set up the local Kubernetes environment:"),(0,r.yg)("ol",null,(0,r.yg)("li",{parentName:"ol"},(0,r.yg)("p",{parentName:"li"},"Start a Kubernetes cluster:"),(0,r.yg)("pre",{parentName:"li"},(0,r.yg)("code",{parentName:"pre",className:"language-bash"},'minikube start --kubernetes-version v1.15.0 --cpus 4 --memory "8192mb"\n')),(0,r.yg)("blockquote",{parentName:"li"},(0,r.yg)("p",{parentName:"blockquote"},(0,r.yg)("strong",{parentName:"p"},"Note:")),(0,r.yg)("p",{parentName:"blockquote"},"It is recommended to allocate enough RAM (more than 8192 MiB) to the Virtual Machine 
1(VM) using the ",(0,r.yg)("inlineCode",{parentName:"p"},"--cpus")," and ",(0,r.yg)("inlineCode",{parentName:"p"},"--memory")," flag."))),(0,r.yg)("li",{parentName:"ol"},(0,r.yg)("p",{parentName:"li"},"Install helm:"),(0,r.yg)("pre",{parentName:"li"},(0,r.yg)("code",{parentName:"pre",className:"language-bash"},"curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | bash\nhelm init\n"))),(0,r.yg)("li",{parentName:"ol"},(0,r.yg)("p",{parentName:"li"},"Check whether the helm tiller pod is running:"),(0,r.yg)("pre",{parentName:"li"},(0,r.yg)("code",{parentName:"pre",className:"language-bash"},"kubectl -n kube-system get pods -l app=helm\n")))),(0,r.yg)("h2",{id:"step-2-install-chaos-mesh"},"Step 2: Install Chaos Mesh"),(0,r.yg)(i.A,{className:"language-bash",mdxType:"PickVersion"},"curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash"),(0,r.yg)("p",null,"The above command installs all the CRDs, required service account configuration, and all components. Before you start running a chaos experiment, verify if Chaos Mesh is installed correctly."),(0,r.yg)("p",null,"You also can use ",(0,r.yg)("a",{parentName:"p",href:"https://helm.sh/"},"helm")," to ",(0,r.yg)("a",{parentName:"p",href:"/docs/0.9.1/installation/#install-by-helm"},"install Chaos Mesh manually"),"."),(0,r.yg)("h3",{id:"verify-your-installation"},"Verify your installation"),(0,r.yg)("p",null,"Verify if Chaos Mesh is running"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-bash"},"kubectl get pod -n chaos-testing\n")),(0,r.yg)("p",null,"Expected output:"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-bash"},"NAME                                        READY   STATUS    RESTARTS   AGE\nchaos-controller-manager-6d6d95cd94-kl8gs   1/1     Running   0          3m40s\nchaos-daemon-5shkv                          1/1     Running   0          3m40s\nchaos-dashboard-d998856f6-vgrjs             1/1     Running   0          3m40s\n")),(0,r.yg)("h2",{id:"uninstallation"},"Uninstallation"),(0,r.yg)("p",null,"You can uninstall Chaos Mesh by deleting the namespace."),(0,r.yg)(i.A,{className:"language-bash",mdxType:"PickVersion"},"curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --template | kubectl delete -f -"),(0,r.yg)("h2",{id:"limitations"},"Limitations"),(0,r.yg)("p",null,"There are some known restrictions for Chaos Operator deployed in the Minikube cluster:"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("inlineCode",{parentName:"li"},"netem chaos")," is only supported for Minikube clusters >= version 1.6.")),(0,r.yg)("p",null,"In Minikube, the default virtual machine driver's image does not contain the ",(0,r.yg)("inlineCode",{parentName:"p"},"sch_netem")," kernel module in earlier versions. You can use ",(0,r.yg)("inlineCode",{parentName:"p"},"none")," driver (if your host is Linux with the ",(0,r.yg)("inlineCode",{parentName:"p"},"sch_netem")," kernel module loaded) to try these chaos actions using Minikube or ",(0,r.yg)("a",{parentName:"p",href:"https://minikube.sigs.k8s.io/docs/contrib/building/iso/"},"build an image with sch_netem by yourself"),"."))}d.isMDXComponent=!0},93905:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(37953),r=n(17074);function i({children:e,fallback:t}){return(0,r.A)()?a.createElement(a.Fragment,null,e?.()):t??null}}}]);

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.