Files
rancher-docs/zh/assets/js/d93da2ca.27bb220e.js
T

1 line
18 KiB
JavaScript

"use strict";(self.webpackChunkrancher_docs=self.webpackChunkrancher_docs||[]).push([[7046],{3905:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>h});var a=r(67294);function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},l=Object.keys(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var p=a.createContext({}),s=function(e){var t=a.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},u=function(e){var t=s(e.components);return a.createElement(p.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,l=e.originalType,p=e.parentName,u=o(e,["components","mdxType","originalType","parentName"]),m=s(r),h=n,k=m["".concat(p,".").concat(h)]||m[h]||c[h]||l;return r?a.createElement(k,i(i({ref:t},u),{},{components:r})):a.createElement(k,i({ref:t},u))}));function h(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var l=r.length,i=new Array(l);i[0]=m;var o={};for(var p in t)hasOwnProperty.call(t,p)&&(o[p]=t[p]);o.originalType=e,o.mdxType="string"==typeof e?e:n,i[1]=o;for(var s=2;s<l;s++)i[s]=r[s];return a.createElement.apply(null,i)}return a.createElement.apply(null,r)}m.displayName="MDXCreateElement"},18085:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>p,contentTitle:()=>i,default:()=>c,frontMatter:()=>l,metadata:()=>o,toc:()=>s});var a=r(87462),n=(r(67294),r(3905));const l={title:"\u542f\u7528\u5b9e\u9a8c\u529f\u80fd"},i=void 0,o={unversionedId:"pages-for-subheaders/enable-experimental-features",id:"pages-for-subheaders/enable-experimental-features",title:"\u542f\u7528\u5b9e\u9a8c\u529f\u80fd",description:"Rancher \u5305\u542b\u4e00\u4e9b\u9ed8\u8ba4\u5173\u95ed\u7684\u5b9e\u9a8c\u529f\u80fd\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f8b\u5982\u5f53\u4f60\u8ba4\u4e3a\u4f7f\u7528\u4e0d\u652f\u6301\u7684\u5b58\u50a8\u7c7b\u578b\u7684\u597d\u5904\u5927\u4e8e\u4f7f\u7528\u672a\u7ecf\u6d4b\u8bd5\u7684\u529f\u80fd\u7684\u98ce\u9669\u65f6\uff0c\u4f60\u53ef\u80fd\u60f3\u8981\u542f\u7528\u5b9e\u9a8c\u529f\u80fd\u3002\u4e3a\u4e86\u8ba9\u4f60\u80fd\u591f\u8bd5\u7528\u8fd9\u4e9b\u9ed8\u8ba4\u5173\u95ed\u7684\u529f\u80fd\uff0c\u6211\u4eec\u5f15\u5165\u4e86\u529f\u80fd\u5f00\u5173\uff08feature flag\uff09\u3002",source:"@site/i18n/zh/docusaurus-plugin-content-docs/current/pages-for-subheaders/enable-experimental-features.md",sourceDirName:"pages-for-subheaders",slug:"/pages-for-subheaders/enable-experimental-features",permalink:"/zh/pages-for-subheaders/enable-experimental-features",draft:!1,editUrl:"https://github.com/rancher/rancher-docs/edit/main/docs/pages-for-subheaders/enable-experimental-features.md",tags:[],version:"current",lastUpdatedAt:1669185570,formattedLastUpdatedAt:"2022\u5e7411\u670823\u65e5",frontMatter:{title:"\u542f\u7528\u5b9e\u9a8c\u529f\u80fd"},sidebar:"tutorialSidebar",previous:{title:"\u4e3a\u96c6\u7fa4\u626b\u63cf\u521b\u5efa\u81ea\u5b9a\u4e49 Benchmark \u7248\u672c",permalink:"/zh/how-to-guides/advanced-user-guides/cis-scan-guides/create-a-custom-benchmark-version-to-run"},next:{title:"\u5728 ARM64 \u4e0a\u8fd0\u884c Rancher\uff08\u5b9e\u9a8c\u6027\uff09",permalink:"/zh/how-to-guides/advanced-user-guides/enable-experimental-features/rancher-on-arm64"}},p={},s=[{value:"\u542f\u52a8 Rancher \u65f6\u542f\u7528\u529f\u80fd",id:"\u542f\u52a8-rancher-\u65f6\u542f\u7528\u529f\u80fd",level:2},{value:"Kubernetes \u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u542f\u7528\u529f\u80fd",id:"kubernetes-\u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u542f\u7528\u529f\u80fd",level:3},{value:"\u79bb\u7ebf\u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u6e32\u67d3 Helm Chart",id:"\u79bb\u7ebf\u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u6e32\u67d3-helm-chart",level:3},{value:"Docker \u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u542f\u7528\u529f\u80fd",id:"docker-\u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u542f\u7528\u529f\u80fd",level:3},{value:"\u4f7f\u7528 Rancher UI \u542f\u7528\u529f\u80fd",id:"\u4f7f\u7528-rancher-ui-\u542f\u7528\u529f\u80fd",level:2},{value:"\u4f7f\u7528 Rancher UI \u7981\u7528\u529f\u80fd",id:"\u4f7f\u7528-rancher-ui-\u7981\u7528\u529f\u80fd",level:3},{value:"\u4f7f\u7528 Rancher API \u542f\u7528\u529f\u80fd",id:"\u4f7f\u7528-rancher-api-\u542f\u7528\u529f\u80fd",level:2},{value:"\u4f7f\u7528 Rancher API \u7981\u7528\u529f\u80fd",id:"\u4f7f\u7528-rancher-api-\u7981\u7528\u529f\u80fd",level:3}],u={toc:s};function c(e){let{components:t,...r}=e;return(0,n.kt)("wrapper",(0,a.Z)({},u,r,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("p",null,"Rancher \u5305\u542b\u4e00\u4e9b\u9ed8\u8ba4\u5173\u95ed\u7684\u5b9e\u9a8c\u529f\u80fd\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f8b\u5982\u5f53\u4f60\u8ba4\u4e3a\u4f7f\u7528",(0,n.kt)("a",{parentName:"p",href:"/zh/how-to-guides/advanced-user-guides/enable-experimental-features/unsupported-storage-drivers"},"\u4e0d\u652f\u6301\u7684\u5b58\u50a8\u7c7b\u578b"),"\u7684\u597d\u5904\u5927\u4e8e\u4f7f\u7528\u672a\u7ecf\u6d4b\u8bd5\u7684\u529f\u80fd\u7684\u98ce\u9669\u65f6\uff0c\u4f60\u53ef\u80fd\u60f3\u8981\u542f\u7528\u5b9e\u9a8c\u529f\u80fd\u3002\u4e3a\u4e86\u8ba9\u4f60\u80fd\u591f\u8bd5\u7528\u8fd9\u4e9b\u9ed8\u8ba4\u5173\u95ed\u7684\u529f\u80fd\uff0c\u6211\u4eec\u5f15\u5165\u4e86\u529f\u80fd\u5f00\u5173\uff08feature flag\uff09\u3002"),(0,n.kt)("p",null,"\u5b9e\u9a8c\u529f\u80fd\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4e09\u79cd\u65b9\u5f0f\u542f\u7528\uff1a"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},(0,n.kt)("a",{parentName:"li",href:"#%E5%90%AF%E5%8A%A8-rancher-%E6%97%B6%E5%90%AF%E7%94%A8%E5%8A%9F%E8%83%BD"},"\u4f7f\u7528 CLI"),"\uff1a\u5728\u4f7f\u7528 CLI \u5b89\u88c5 Rancher \u65f6\uff0c\u4f7f\u7528\u529f\u80fd\u5f00\u5173\u9ed8\u8ba4\u542f\u7528\u67d0\u4e2a\u529f\u80fd\u3002"),(0,n.kt)("li",{parentName:"ul"},(0,n.kt)("a",{parentName:"li",href:"#%E4%BD%BF%E7%94%A8-rancher-ui-%E5%90%AF%E7%94%A8%E5%8A%9F%E8%83%BD"},"\u4f7f\u7528 Rancher UI"),"\uff1a\u5728",(0,n.kt)("strong",{parentName:"li"},"\u8bbe\u7f6e"),"\u9875\u9762\u542f\u7528\u529f\u80fd\u3002"),(0,n.kt)("li",{parentName:"ul"},(0,n.kt)("a",{parentName:"li",href:"#%E4%BD%BF%E7%94%A8-rancher-api-%E5%90%AF%E7%94%A8%E5%8A%9F%E8%83%BD"},"\u4f7f\u7528 Rancher API"),"\uff1a\u5b89\u88c5 Rancher \u540e\u542f\u7528\u529f\u80fd\u3002")),(0,n.kt)("p",null,"\u6bcf\u4e2a\u529f\u80fd\u5747\u6709\u4ee5\u4e0b\u4e24\u4e2a\u503c\uff1a"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},"\u9ed8\u8ba4\u503c\uff1a\u53ef\u4ee5\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u4f7f\u7528\u6807\u5fd7\u6216\u73af\u5883\u53d8\u91cf\u8fdb\u884c\u914d\u7f6e\u3002"),(0,n.kt)("li",{parentName:"ul"},"\u8bbe\u7f6e\u503c\uff1a\u53ef\u4ee5\u901a\u8fc7 Rancher API \u6216 UI \u8fdb\u884c\u914d\u7f6e\u3002")),(0,n.kt)("p",null,"\u5982\u679c\u6ca1\u6709\u8bbe\u7f6e\u503c\uff0cRancher \u4f1a\u4f7f\u7528\u9ed8\u8ba4\u503c\u3002"),(0,n.kt)("p",null,"\u8bbe\u7f6e\u503c\u662f\u901a\u8fc7 API \u8bbe\u7f6e\u7684\uff0c\u800c\u9ed8\u8ba4\u503c\u662f\u901a\u8fc7\u547d\u4ee4\u884c\u8bbe\u7f6e\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u4f7f\u7528 API \u6216 UI \u542f\u7528\u6216\u7981\u7528\u67d0\u4e2a\u529f\u80fd\uff0c\u547d\u4ee4\u884c\u4e2d\u8bbe\u7f6e\u7684\u503c\u5c06\u88ab\u8986\u76d6\u3002"),(0,n.kt)("p",null,"\u5982\u679c\u4f60\u5b89\u88c5 Rancher \u540e\u4f7f\u7528 Rancher API \u5c06\u529f\u80fd\u5f00\u5173\u8bbe\u7f6e\u4e3a true\uff0c\u7136\u540e\u5728\u4f7f\u7528\u547d\u4ee4\u5347\u7ea7 Rancher \u65f6\u5c06\u529f\u80fd\u5f00\u5173\u8bbe\u7f6e\u4e3a false\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u867d\u7136\u9ed8\u8ba4\u503c\u4f1a\u662f false\uff0c\u4f46\u662f\u8be5\u529f\u80fd\u4f9d\u7136\u4f1a\u88ab\u542f\u7528\uff0c\u56e0\u4e3a\u5b83\u662f\u901a\u8fc7 API \u8bbe\u7f6e\u7684\u3002\u5982\u679c\u4f60\u968f\u540e\u4f7f\u7528 Rancher API \u5220\u9664\u8bbe\u7f6e\u503c\uff08true\uff09\u5e76\u5c06\u5b83\u8bbe\u7f6e\u4e3a NULL\uff0c\u5219\u9ed8\u8ba4\u503c\uff08false\uff09\u5c06\u751f\u6548\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605",(0,n.kt)("a",{parentName:"p",href:"/zh/getting-started/installation-and-upgrade/installation-references/feature-flags"},"\u529f\u80fd\u5f00\u5173\u9875\u9762"),"\u3002"),(0,n.kt)("h2",{id:"\u542f\u52a8-rancher-\u65f6\u542f\u7528\u529f\u80fd"},"\u542f\u52a8 Rancher \u65f6\u542f\u7528\u529f\u80fd"),(0,n.kt)("p",null,"\u5b89\u88c5 Rancher \u65f6\uff0c\u4f7f\u7528\u529f\u80fd\u5f00\u5173\u542f\u7528\u4f60\u6240\u9700\u7684\u529f\u80fd\u3002\u901a\u8fc7\u5355\u8282\u70b9\u5bb9\u5668\u5b89\u88c5 Rancher\uff0c\u548c\u5728 Kubernetes \u96c6\u7fa4\u4e0a\u5b89\u88c5 Rancher \u5bf9\u5e94\u7684\u547d\u4ee4\u6709\u6240\u4e0d\u540c\u3002"),(0,n.kt)("h3",{id:"kubernetes-\u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u542f\u7528\u529f\u80fd"},"Kubernetes \u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u542f\u7528\u529f\u80fd"),(0,n.kt)("admonition",{type:"note"},(0,n.kt)("p",{parentName:"admonition"},"\u901a\u8fc7 Rancher API \u8bbe\u7f6e\u7684\u503c\u4f1a\u8986\u76d6\u547d\u4ee4\u884c\u4f20\u5165\u7684\u503c\u3002")),(0,n.kt)("p",null,"\u4f7f\u7528 Helm Chart \u5b89\u88c5 Rancher \u65f6\uff0c\u4f7f\u7528 ",(0,n.kt)("inlineCode",{parentName:"p"},"--set")," \u9009\u9879\u3002\u4e0b\u9762\u7684\u793a\u4f8b\u901a\u8fc7\u4f20\u9012\u529f\u80fd\u5f00\u5173\u540d\u79f0\uff08\u7528\u9017\u53f7\u5206\u9694\uff09\u6765\u542f\u7528\u4e24\u4e2a\u529f\u80fd\uff1a"),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre"},"helm install rancher rancher-latest/rancher \\\n --namespace cattle-system \\\n --set hostname=rancher.my.org \\\n --set 'extraEnv[0].name=CATTLE_FEATURES'\n --set 'extraEnv[0].value=<FEATURE-FLAG-NAME-1>=true,<FEATURE-FLAG-NAME-2>=true'\n")),(0,n.kt)("admonition",{type:"note"},(0,n.kt)("p",{parentName:"admonition"},"\u5982\u679c\u4f60\u5b89\u88c5\u7684\u662f alpha \u7248\u672c\uff0cHelm \u8981\u6c42\u4f60\u5728\u547d\u4ee4\u4e2d\u6dfb\u52a0 ",(0,n.kt)("inlineCode",{parentName:"p"},"--devel")," \u9009\u9879\u3002")),(0,n.kt)("h3",{id:"\u79bb\u7ebf\u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u6e32\u67d3-helm-chart"},"\u79bb\u7ebf\u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u6e32\u67d3 Helm Chart"),(0,n.kt)("p",null,"\u5982\u679c\u4f60\u662f\u5728\u79bb\u7ebf\u73af\u5883\u5b89\u88c5 Rancher \u7684\uff0c\u5728\u4f7f\u7528 Helm \u5b89\u88c5 Rancher \u4e4b\u524d\uff0c\u4f60\u9700\u8981\u6dfb\u52a0\u4e00\u4e2a Helm Chart \u4ed3\u5e93\u5e76\u6e32\u67d3\u4e00\u4e2a Helm \u6a21\u677f\u3002\u8be6\u60c5\u8bf7\u53c2\u89c1",(0,n.kt)("a",{parentName:"p",href:"/zh/getting-started/installation-and-upgrade/other-installation-methods/air-gapped-helm-cli-install/install-rancher-ha"},"\u79bb\u7ebf\u5b89\u88c5\u6587\u6863"),"\u3002"),(0,n.kt)("p",null,"\u4ee5\u4e0b\u662f\u5728\u6e32\u67d3 Helm \u6a21\u677f\u65f6\u4f20\u5165\u529f\u80fd\u5f00\u5173\u540d\u79f0\u7684\u547d\u4ee4\u793a\u4f8b\u3002\u4e0b\u9762\u7684\u793a\u4f8b\u901a\u8fc7\u4f20\u9012\u529f\u80fd\u5f00\u5173\u540d\u79f0\uff08\u7528\u9017\u53f7\u5206\u9694\uff09\u6765\u542f\u7528\u4e24\u4e2a\u529f\u80fd\u3002"),(0,n.kt)("p",null,"Helm \u547d\u4ee4\u5982\u4e0b\uff1a"),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre"},"helm template rancher ./rancher-<VERSION>.tgz --output-dir . \\\n --no-hooks \\ # \u907f\u514d\u751f\u6210 Helm \u94a9\u5b50\u6587\u4ef6\n --namespace cattle-system \\\n --set hostname=<RANCHER.YOURDOMAIN.COM> \\\n --set rancherImage=<REGISTRY.YOURDOMAIN.COM:PORT>/rancher/rancher \\\n --set ingress.tls.source=secret \\\n --set systemDefaultRegistry=<REGISTRY.YOURDOMAIN.COM:PORT> \\ # \u8bbe\u7f6e\u5728 Rancher \u4e2d\u4f7f\u7528\u7684\u9ed8\u8ba4\u79c1\u6709\u955c\u50cf\u4ed3\u5e93\n --set useBundledSystemChart=true # \u4f7f\u7528\u6253\u5305\u7684 Rancher System Chart\n --set 'extraEnv[0].name=CATTLE_FEATURES'\n --set 'extraEnv[0].value=<FEATURE-FLAG-NAME-1>=true,<FEATURE-FLAG-NAME-2>=true'\n")),(0,n.kt)("h3",{id:"docker-\u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u542f\u7528\u529f\u80fd"},"Docker \u5b89\u88c5\u7684\u60c5\u51b5\u4e0b\u542f\u7528\u529f\u80fd"),(0,n.kt)("p",null,"\u5982\u679c Rancher \u662f\u4f7f\u7528 Docker \u5b89\u88c5\u7684\uff0c\u8bf7\u4f7f\u7528 ",(0,n.kt)("inlineCode",{parentName:"p"},"--features")," \u9009\u9879\u3002\u4e0b\u9762\u7684\u793a\u4f8b\u901a\u8fc7\u4f20\u9012\u529f\u80fd\u5f00\u5173\u540d\u79f0\uff08\u7528\u9017\u53f7\u5206\u9694\uff09\u6765\u542f\u7528\u4e24\u4e2a\u529f\u80fd\uff1a"),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre"},"docker run -d -p 80:80 -p 443:443 \\\n --restart=unless-stopped \\\n rancher/rancher:rancher-latest \\\n --features=<FEATURE-FLAG-NAME-1>=true,<FEATURE-FLAG-NAME-2>=true\n")),(0,n.kt)("h2",{id:"\u4f7f\u7528-rancher-ui-\u542f\u7528\u529f\u80fd"},"\u4f7f\u7528 Rancher UI \u542f\u7528\u529f\u80fd"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},"\u5728\u5de6\u4e0a\u89d2\uff0c\u5355\u51fb ",(0,n.kt)("strong",{parentName:"li"},"\u2630 > \u5168\u5c40\u8bbe\u7f6e"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5355\u51fb",(0,n.kt)("strong",{parentName:"li"},"\u529f\u80fd\u5f00\u5173"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5982\u9700\u542f\u7528\u67d0\u4e2a\u529f\u80fd\uff0c\u627e\u5230\u8be5\u5df2\u7981\u7528\u7684\u529f\u80fd\uff0c\u5e76\u70b9\u51fb",(0,n.kt)("strong",{parentName:"li"},"\u22ee > \u6fc0\u6d3b"),"\u3002")),(0,n.kt)("p",null,(0,n.kt)("strong",{parentName:"p"},"\u7ed3\u679c"),"\uff1a\u8be5\u529f\u80fd\u5df2\u542f\u7528\u3002"),(0,n.kt)("h3",{id:"\u4f7f\u7528-rancher-ui-\u7981\u7528\u529f\u80fd"},"\u4f7f\u7528 Rancher UI \u7981\u7528\u529f\u80fd"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},"\u5728\u5de6\u4e0a\u89d2\uff0c\u5355\u51fb ",(0,n.kt)("strong",{parentName:"li"},"\u2630 > \u5168\u5c40\u8bbe\u7f6e"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5355\u51fb",(0,n.kt)("strong",{parentName:"li"},"\u529f\u80fd\u5f00\u5173"),"\u3002\u4f60\u5c06\u770b\u5230\u5b9e\u9a8c\u529f\u80fd\u5217\u8868\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5982\u9700\u7981\u7528\u67d0\u4e2a\u529f\u80fd\uff0c\u627e\u5230\u8be5\u5df2\u542f\u7528\u7684\u529f\u80fd\uff0c\u5e76\u70b9\u51fb",(0,n.kt)("strong",{parentName:"li"},"\u22ee > \u505c\u7528"),"\u3002")),(0,n.kt)("p",null,(0,n.kt)("strong",{parentName:"p"},"\u7ed3\u679c"),"\uff1a\u8be5\u529f\u80fd\u5df2\u7981\u7528\u3002"),(0,n.kt)("h2",{id:"\u4f7f\u7528-rancher-api-\u542f\u7528\u529f\u80fd"},"\u4f7f\u7528 Rancher API \u542f\u7528\u529f\u80fd"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},"\u524d\u5f80 ",(0,n.kt)("inlineCode",{parentName:"li"},"<RANCHER-SERVER-URL>/v3/features"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5728 ",(0,n.kt)("inlineCode",{parentName:"li"},"data")," \u4e2d\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u6570\u7ec4\uff0c\u8be5\u6570\u7ec4\u5305\u542b\u6240\u6709\u80fd\u901a\u8fc7\u529f\u80fd\u5f00\u5173\u542f\u7528\u7684\u529f\u80fd\u3002\u529f\u80fd\u7684\u540d\u79f0\u5728 ",(0,n.kt)("inlineCode",{parentName:"li"},"id")," \u5b57\u6bb5\u4e2d\u3002\u5355\u51fb\u8981\u542f\u7528\u7684\u529f\u80fd\u7684\u540d\u79f0\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5728\u5de6\u4e0a\u89d2\u7684 ",(0,n.kt)("strong",{parentName:"li"},"Operations")," \u4e0b\uff0c\u70b9\u51fb ",(0,n.kt)("strong",{parentName:"li"},"Edit"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5728 ",(0,n.kt)("strong",{parentName:"li"},"Value")," \u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u5355\u51fb ",(0,n.kt)("strong",{parentName:"li"},"True"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5355\u51fb ",(0,n.kt)("strong",{parentName:"li"},"Show Request"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5355\u51fb ",(0,n.kt)("strong",{parentName:"li"},"Send Request"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u70b9\u51fb ",(0,n.kt)("strong",{parentName:"li"},"Close"),"\u3002")),(0,n.kt)("p",null,(0,n.kt)("strong",{parentName:"p"},"\u7ed3\u679c"),"\uff1a\u8be5\u529f\u80fd\u5df2\u542f\u7528\u3002"),(0,n.kt)("h3",{id:"\u4f7f\u7528-rancher-api-\u7981\u7528\u529f\u80fd"},"\u4f7f\u7528 Rancher API \u7981\u7528\u529f\u80fd"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},"\u524d\u5f80 ",(0,n.kt)("inlineCode",{parentName:"li"},"<RANCHER-SERVER-URL>/v3/features"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5728 ",(0,n.kt)("inlineCode",{parentName:"li"},"data")," \u4e2d\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u6570\u7ec4\uff0c\u8be5\u6570\u7ec4\u5305\u542b\u6240\u6709\u80fd\u901a\u8fc7\u529f\u80fd\u5f00\u5173\u542f\u7528\u7684\u529f\u80fd\u3002\u529f\u80fd\u7684\u540d\u79f0\u5728 ",(0,n.kt)("inlineCode",{parentName:"li"},"id")," \u5b57\u6bb5\u4e2d\u3002\u5355\u51fb\u8981\u542f\u7528\u7684\u529f\u80fd\u7684\u540d\u79f0\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5728\u5de6\u4e0a\u89d2\u7684 ",(0,n.kt)("strong",{parentName:"li"},"Operations")," \u4e0b\uff0c\u70b9\u51fb ",(0,n.kt)("strong",{parentName:"li"},"Edit"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5728 ",(0,n.kt)("strong",{parentName:"li"},"Value")," \u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u5355\u51fb ",(0,n.kt)("strong",{parentName:"li"},"False"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5355\u51fb ",(0,n.kt)("strong",{parentName:"li"},"Show Request"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u5355\u51fb ",(0,n.kt)("strong",{parentName:"li"},"Send Request"),"\u3002"),(0,n.kt)("li",{parentName:"ol"},"\u70b9\u51fb ",(0,n.kt)("strong",{parentName:"li"},"Close"),"\u3002")),(0,n.kt)("p",null,(0,n.kt)("strong",{parentName:"p"},"\u7ed3\u679c"),"\uff1a\u8be5\u529f\u80fd\u5df2\u7981\u7528\u3002"))}c.isMDXComponent=!0}}]);