PageSourceSearch

https://docs.litmuschaos.io/assets/js/8e93f014.285e31f0.js

js litmuschaos.io collected 2026-10-02 04:02:33 UTC 8,499 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklitmus_docs2_0=self.webpackChunklitmus_docs2_0||[]).push([[1426],{603905:function(e,t,n){n.d(t,{Zo:function(){return l},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 i(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?i(Object(n),!0).forEach((function(t){a(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 o(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),u=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):s(s({},t),e)),n},l=function(e){var t=u(e.components);return r.createElement(c.Provider,{value:t},e.children)},d="mdxType",p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,i=e.originalType,c=e.parentName,l=o(e,["components","mdxType","originalType","parentName"]),d=u(n),f=a,h=d["".concat(c,".").concat(f)]||d[f]||p[f]||i;return n?r.createElement(h,s(s({ref:t},l),{},{components:n})):r.createElement(h,s({ref:t},l))}));function h(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var i=n.length,s=new Array(i);s[0]=f;var o={};for(var c in t)hasOwnProperty.call(t,c)&&(o[c]=t[c]);o.originalType=e,o[d]="string"==typeof e?e:a,s[1]=o;for(var u=2;u<i;u++)s[u]=n[u];return r.createElement.apply(null,s)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},279076:function(e,t,n){n.r(t),n.d(t,{contentTitle:function(){return c},default:function(){return f},frontMatter:function(){return o},metadata:function(){return u},toc:function(){return l}});var r=n(487462),a=n(263366),i=(n(667294),n(603905)),s=["components"],o={id:"create-infrastructure",title:"Create an Infrastructure",sidebar_label:"Create an Infrastructure"},c=void 0,u={unversionedId:"user-guides/create-infrastructure",id:"version-3.7.0/user-guides/create-infrastructure",title:"Create an Infrastructure",description:"Before you begin",source:"@site/versioned_docs/version-3.7.0/user-guides/create-infrastructure.md",sourceDirName:"user-guides",slug:"/user-guides/create-infrastructure",permalink:"/docs/3.7.0/user-guides/create-infrastructure",editUrl:"https://github.com/litmuschaos/litmus-docs/edit/master/website/versioned_docs/version-3.7.0/user-guides/create-infrastructure.md",tags:[],version:"3.7.0",frontMatter:{id:"create-infrastructure",title:"Create an Infrastructure",sidebar_label:"Create an Infrastructure"},sidebar:"docs",previous:{title:"Delete an Environment",permalink:"/docs/3.7.0/user-guides/delete-environment"},next:{title:"Delete an Infrastructure",permalink:"/docs/3.7.0/user-guides/delete-infrastructure"}},l=[{value:"Before you begin",id:"before-you-begin",children:[],level:2},{value:"1. Go to the Infrastructure section",id:"1-go-to-the-infrastructure-section",children:[],level:2},{value:"2. Enable Chaos",id:"2-enable-chaos",children:[],level:2},{value:"3. Add details of the Infrastructure",id:"3-add-details-of-the-infrastructure",children:[],level:2},{value:"4. Tune the cluster level specifications",id:"4-tune-the-cluster-level-specifications",children:[],level:2},{value:"5. Deploy your Chaos Infrastructure",id:"5-deploy-your-chaos-infrastructure",children:[],level:2}],d={toc:l},p="wrapper";function f(e){var t=e.components,o=(0,a.Z)(e,s);return(0,i.kt)(p,(0,r.Z)({},d,o,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h2",{id:"before-you-begin"},"Before you begin"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("p",{parentName:"li"}
1,"You can learn about the concept of chaos infrastructures & chaos environments ",(0,i.kt)("a",{parentName:"p",href:"/docs/3.7.0/concepts/chaos-infrastructure"},"here"),".")),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("p",{parentName:"li"},"You will need to create an environment for your chaos infrastructure to reside within. Environments are an abstraction layer over infrastructures, and a detailed guide on the environment creation process can be found ",(0,i.kt)("a",{parentName:"p",href:"/docs/3.7.0/user-guides/create-environment"},"here")))),(0,i.kt)("h2",{id:"1-go-to-the-infrastructure-section"},"1. Go to the Infrastructure section"),(0,i.kt)("p",null,"Navigate to the ",(0,i.kt)("inlineCode",{parentName:"p"},"/environments")," page (Environments on the left nav), and click on the environment you wish to install the chaos infrastructure in:"),(0,i.kt)("img",{src:n(11638).Z}),(0,i.kt)("h2",{id:"2-enable-chaos"},"2. Enable Chaos"),(0,i.kt)("p",null,"Click on the ",(0,i.kt)("inlineCode",{parentName:"p"},"Enable Chaos")," button:"),(0,i.kt)("img",{src:n(358167).Z}),(0,i.kt)("h2",{id:"3-add-details-of-the-infrastructure"},"3. Add details of the Infrastructure"),(0,i.kt)("p",null,"Add the details of the infrastructure such as the name, description and tags, then click on the ",(0,i.kt)("inlineCode",{parentName:"p"},"Next")," button:"),(0,i.kt)("img",{src:n(26532).Z}),(0,i.kt)("h2",{id:"4-tune-the-cluster-level-specifications"},"4. Tune the cluster level specifications"),(0,i.kt)("p",null,"Choose one of the following modes:"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("strong",{parentName:"li"},"Cluster Wide:")," This mode of infrastructure installation allows targeting resources across the entire cluster, in all the namespaces, as part of an experiment."),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("strong",{parentName:"li"},"Namespace Mode:")," This mode of infrastructure installation allows targeting resources only in the namespace where the chaos infrastructure is deployed.")),(0,i.kt)("p",null,"By default the installation will take place in the ",(0,i.kt)("inlineCode",{parentName:"p"},"litmus")," namespace and uses ",(0,i.kt)("inlineCode",{parentName:"p"},"litmus")," service account, which can be configured under the K8s cluster details."),(0,i.kt)("p",null,"Optionally, you can also specify the node selectors and Kubernetes tolerations for chaos infrastructure deployment in the advanced section"),(0,i.kt)("img",{src:n(688309).Z}),(0,i.kt)("h2",{id:"5-deploy-your-chaos-infrastructure"},"5. Deploy your Chaos Infrastructure"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"For cluster-wide access:")),(0,i.kt)("ol",{type:"a"},(0,i.kt)("li",null,"Select Download, and then copy and run the kubectl command shown on your screen to install the chaos infrastructure.")),(0,i.kt)("img",{src:n(353354).Z}),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"For namespace access:")),(0,i.kt)("ol",{type:"a"},(0,i.kt)("li",null,"Run the first kubectl command to create the target namespace."),(0,i.kt)("li",null,"Run the second kubectl command to apply the chaos CRDs."),(0,i.kt)("li",null,"Select Download, and then copy and run the third command to install the chaos infrastructure.")),(0,i.kt)("img",{src:n(776295).Z}),(0,i.kt)("p",null,"Click ",(0,i.kt)("inlineCode",{parentName:"p"},"Done")),(0,i.kt)("p",null,"The newly created infrastructure will appear in the list of infrastructures:"),(0,i.kt)("img",{src:n(747048).Z}))}f.isMDXComponent=!0},11638:function(e,t,n){t.Z=n.p+"assets/images/step-1-19f31f2b9cb84edd65966bbe61dcae92.png"},358167:function(e,t,n){t.Z=n.p+"assets/images/step-2-1fafffff6fa4e5d74b7138e5636e240a.png"},26532:function(e,t,n){t.Z=n.p+"assets/images/step-3-b434f970e61cdbd19bcad28a646d421a.png"},688309:function(e,t,n){t.Z=n.p+"assets/images/step-4-c0336737db6a2de6312969b0218e7cdf.png"},353354:function(e,t,n){t.Z=n.p+"assets/images/step-5-3b3913536f3fdc3e7dbb26c15e0cc6bb.png"},776295:function(e,t,n){t.Z=n.p+"assets/images/step-6-3f6dd9e9bc4fe78b8d7d27ae8c9c3553.png"},747048:function(e,t,n){t.Z=n.p+"assets/images/step-7-2ec978de4687c0e82de753c8ba4154e1.png"}}]);

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.