From babc9ba271748111696d69aba19cf329a96e8e91 Mon Sep 17 00:00:00 2001 From: whg517 Date: Thu, 21 Nov 2024 09:19:28 +0000 Subject: [PATCH] deploy: f9512edd3611c5f9bcfc67e27fc6e17737f10eb6 --- 404.html | 8 ++++---- CNAME | 2 +- ...0b142.9a39f7ff.js => 0480b142.4aec88e8.js} | 2 +- ...009bb.57867027.js => 229009bb.defbbb06.js} | 2 +- ...d0d2e.48739c52.js => 29cd0d2e.c67b4c71.js} | 2 +- ...d6d00.09dd6da3.js => 41bd6d00.a855e5e3.js} | 2 +- ...12e7e.20293601.js => 4d812e7e.d1b86ac6.js} | 2 +- ...b3cb8.adb200c2.js => 5b5b3cb8.9d661ddb.js} | 2 +- ...798e6.32c45d8d.js => 6e2798e6.522f358b.js} | 2 +- ...7429a.7fb3157f.js => 6eb7429a.348485db.js} | 2 +- ...c058a.664d6070.js => 7a9c058a.6491f385.js} | 2 +- assets/js/84d07bab.6dcfb146.js | 1 + assets/js/84d07bab.aaacf52f.js | 1 - ...f26f0.58b263b7.js => 8e7f26f0.3befa4b5.js} | 2 +- ...8db16.4b2abefb.js => 92a8db16.d7ab7f97.js} | 2 +- ...5a98c.c188bc73.js => 95a5a98c.71b8d287.js} | 2 +- ...2442a.22722087.js => 9c52442a.9ea40ec5.js} | 2 +- ...4f985.69e413d5.js => 9e24f985.1e062507.js} | 2 +- ...b6c7a.41754295.js => a4db6c7a.c6ffa099.js} | 2 +- ...5a233.1bee0cff.js => a555a233.4333ee1a.js} | 2 +- ...93740.21845bd4.js => bad93740.df7bdfbe.js} | 2 +- assets/js/bba16301.09eec70a.js | 1 - assets/js/bba16301.557c254d.js | 1 + assets/js/d61c35d5.8477e64c.js | 1 + assets/js/d61c35d5.befe6028.js | 1 - ...774c4.0358f70f.js => dee774c4.39c727d3.js} | 2 +- ...795cb.e717bb2e.js => e75795cb.72092f41.js} | 2 +- .../js/{main.cb5721d6.js => main.ef0e9552.js} | 4 ++-- ...CENSE.txt => main.ef0e9552.js.LICENSE.txt} | 0 ...n.21f5c451.js => runtime~main.42531f1f.js} | 2 +- .../overrides/index.html | 16 ++++++++-------- .../roles-and-role-groups/index.html | 10 +++++----- .../connectivity/service-discovery/index.html | Bin 17248 -> 17256 bytes .../observability/logging/index.html | 8 ++++---- .../operations/pod-disruptions/index.html | 8 ++++---- .../operations/pod-placement/index.html | 8 ++++---- .../resources/database/index.html | 8 ++++---- .../resources/resource-manage/index.html | 12 ++++++------ docs/core-concepts/resources/s3/index.html | 8 ++++---- .../security/authentication/index.html | 8 ++++---- .../developer-manual/collaboration/index.html | 12 ++++++------ .../develop-guideline/index.html | 8 ++++---- .../document-guideline/index.html | 8 ++++---- .../first-commiter/index.html | 10 +++++----- docs/faq/index.html | 8 ++++---- docs/index.html | 8 ++++---- docs/operators/spark-k8s-operator/index.html | 8 ++++---- docs/quick-start/installation/index.html | 14 +++++++------- docs/reference/operator-sdk/index.html | 8 ++++---- docs/reference/opm/index.html | 8 ++++---- docs/release-notes/index.html | 8 ++++---- .../environment/install-olm/index.html | 8 ++++---- index.html | 6 +++--- opensearch.xml | 8 ++++---- search/index.html | 8 ++++---- sitemap.xml | 2 +- zh/404.html | 8 ++++---- zh/CNAME | 2 +- ...0b142.97dcd6a9.js => 0480b142.bd1cf406.js} | 2 +- ...009bb.35e9b67b.js => 229009bb.92b67835.js} | 2 +- ...d0d2e.af0c0069.js => 29cd0d2e.e39efd46.js} | 2 +- ...d6d00.0ff50fd6.js => 41bd6d00.7d820ae4.js} | 2 +- ...12e7e.21a1686a.js => 4d812e7e.028bcff0.js} | 2 +- ...b3cb8.85c50c91.js => 5b5b3cb8.b0655292.js} | 2 +- ...798e6.3b6a99ef.js => 6e2798e6.ddf14cc4.js} | 2 +- ...7429a.7ac0d2ca.js => 6eb7429a.d1fe1513.js} | 2 +- ...c058a.c934c37e.js => 7a9c058a.e5e47bfc.js} | 2 +- zh/assets/js/84d07bab.14847e08.js | 1 + zh/assets/js/84d07bab.63c5525b.js | 1 - ...f26f0.994aff00.js => 8e7f26f0.3d40dc8c.js} | 2 +- ...8db16.506d2fba.js => 92a8db16.f7f54cdc.js} | 2 +- ...5a98c.729bb54c.js => 95a5a98c.89481609.js} | 2 +- ...2442a.9d9fa0d4.js => 9c52442a.648d2699.js} | 2 +- ...4f985.8abc5476.js => 9e24f985.fe005823.js} | 2 +- ...b6c7a.e5c6051a.js => a4db6c7a.96531af1.js} | 2 +- ...5a233.aa91fe9c.js => a555a233.5ad49ed9.js} | 2 +- ...93740.1f894ea7.js => bad93740.9e5cb930.js} | 2 +- zh/assets/js/bba16301.deee1312.js | 1 + zh/assets/js/bba16301.ea3d1d3e.js | 1 - zh/assets/js/d61c35d5.0f3ea4a7.js | 1 + zh/assets/js/d61c35d5.483bd1b1.js | 1 - ...774c4.592f62cb.js => dee774c4.63ac276d.js} | 2 +- ...795cb.20e7736a.js => e75795cb.aa1e4d2b.js} | 2 +- .../js/{main.32b0fb1e.js => main.6f60d1f9.js} | 4 ++-- ...CENSE.txt => main.6f60d1f9.js.LICENSE.txt} | 0 ...n.fc838fc7.js => runtime~main.3b378abc.js} | 2 +- .../overrides/index.html | 16 ++++++++-------- .../roles-and-role-groups/index.html | 10 +++++----- .../connectivity/service-discovery/index.html | 8 ++++---- .../observability/logging/index.html | 8 ++++---- .../operations/pod-disruptions/index.html | Bin 17463 -> 17471 bytes .../operations/pod-placement/index.html | 8 ++++---- .../resources/database/index.html | 8 ++++---- .../resources/resource-manage/index.html | Bin 41269 -> 41279 bytes zh/docs/core-concepts/resources/s3/index.html | 8 ++++---- .../security/authentication/index.html | Bin 17245 -> 17253 bytes .../developer-manual/collaboration/index.html | 12 ++++++------ .../develop-guideline/index.html | 8 ++++---- .../document-guideline/index.html | 8 ++++---- .../first-commiter/index.html | 10 +++++----- zh/docs/faq/index.html | 8 ++++---- zh/docs/index.html | 8 ++++---- .../operators/spark-k8s-operator/index.html | 8 ++++---- zh/docs/quick-start/installation/index.html | 14 +++++++------- zh/docs/reference/operator-sdk/index.html | 8 ++++---- zh/docs/reference/opm/index.html | 8 ++++---- zh/docs/release-notes/index.html | 8 ++++---- .../environment/install-olm/index.html | 8 ++++---- zh/index.html | 6 +++--- zh/opensearch.xml | 8 ++++---- zh/search/index.html | 8 ++++---- zh/sitemap.xml | 2 +- 112 files changed, 268 insertions(+), 268 deletions(-) rename assets/js/{0480b142.9a39f7ff.js => 0480b142.4aec88e8.js} (95%) rename assets/js/{229009bb.57867027.js => 229009bb.defbbb06.js} (99%) rename assets/js/{29cd0d2e.48739c52.js => 29cd0d2e.c67b4c71.js} (96%) rename assets/js/{41bd6d00.09dd6da3.js => 41bd6d00.a855e5e3.js} (96%) rename assets/js/{4d812e7e.20293601.js => 4d812e7e.d1b86ac6.js} (58%) rename assets/js/{5b5b3cb8.adb200c2.js => 5b5b3cb8.9d661ddb.js} (96%) rename assets/js/{6e2798e6.32c45d8d.js => 6e2798e6.522f358b.js} (97%) rename assets/js/{6eb7429a.7fb3157f.js => 6eb7429a.348485db.js} (96%) rename assets/js/{7a9c058a.664d6070.js => 7a9c058a.6491f385.js} (95%) create mode 100644 assets/js/84d07bab.6dcfb146.js delete mode 100644 assets/js/84d07bab.aaacf52f.js rename assets/js/{8e7f26f0.58b263b7.js => 8e7f26f0.3befa4b5.js} (95%) rename assets/js/{92a8db16.4b2abefb.js => 92a8db16.d7ab7f97.js} (96%) rename assets/js/{95a5a98c.c188bc73.js => 95a5a98c.71b8d287.js} (69%) rename assets/js/{9c52442a.22722087.js => 9c52442a.9ea40ec5.js} (96%) rename assets/js/{9e24f985.69e413d5.js => 9e24f985.1e062507.js} (98%) rename assets/js/{a4db6c7a.41754295.js => a4db6c7a.c6ffa099.js} (50%) rename assets/js/{a555a233.1bee0cff.js => a555a233.4333ee1a.js} (95%) rename assets/js/{bad93740.21845bd4.js => bad93740.df7bdfbe.js} (96%) delete mode 100644 assets/js/bba16301.09eec70a.js create mode 100644 assets/js/bba16301.557c254d.js create mode 100644 assets/js/d61c35d5.8477e64c.js delete mode 100644 assets/js/d61c35d5.befe6028.js rename assets/js/{dee774c4.0358f70f.js => dee774c4.39c727d3.js} (95%) rename assets/js/{e75795cb.e717bb2e.js => e75795cb.72092f41.js} (99%) rename assets/js/{main.cb5721d6.js => main.ef0e9552.js} (79%) rename assets/js/{main.cb5721d6.js.LICENSE.txt => main.ef0e9552.js.LICENSE.txt} (100%) rename assets/js/{runtime~main.21f5c451.js => runtime~main.42531f1f.js} (88%) rename zh/assets/js/{0480b142.97dcd6a9.js => 0480b142.bd1cf406.js} (95%) rename zh/assets/js/{229009bb.35e9b67b.js => 229009bb.92b67835.js} (99%) rename zh/assets/js/{29cd0d2e.af0c0069.js => 29cd0d2e.e39efd46.js} (96%) rename zh/assets/js/{41bd6d00.0ff50fd6.js => 41bd6d00.7d820ae4.js} (96%) rename zh/assets/js/{4d812e7e.21a1686a.js => 4d812e7e.028bcff0.js} (58%) rename zh/assets/js/{5b5b3cb8.85c50c91.js => 5b5b3cb8.b0655292.js} (96%) rename zh/assets/js/{6e2798e6.3b6a99ef.js => 6e2798e6.ddf14cc4.js} (97%) rename zh/assets/js/{6eb7429a.7ac0d2ca.js => 6eb7429a.d1fe1513.js} (96%) rename zh/assets/js/{7a9c058a.c934c37e.js => 7a9c058a.e5e47bfc.js} (96%) create mode 100644 zh/assets/js/84d07bab.14847e08.js delete mode 100644 zh/assets/js/84d07bab.63c5525b.js rename zh/assets/js/{8e7f26f0.994aff00.js => 8e7f26f0.3d40dc8c.js} (95%) rename zh/assets/js/{92a8db16.506d2fba.js => 92a8db16.f7f54cdc.js} (96%) rename zh/assets/js/{95a5a98c.729bb54c.js => 95a5a98c.89481609.js} (69%) rename zh/assets/js/{9c52442a.9d9fa0d4.js => 9c52442a.648d2699.js} (96%) rename zh/assets/js/{9e24f985.8abc5476.js => 9e24f985.fe005823.js} (98%) rename zh/assets/js/{a4db6c7a.e5c6051a.js => a4db6c7a.96531af1.js} (50%) rename zh/assets/js/{a555a233.aa91fe9c.js => a555a233.5ad49ed9.js} (95%) rename zh/assets/js/{bad93740.1f894ea7.js => bad93740.9e5cb930.js} (96%) create mode 100644 zh/assets/js/bba16301.deee1312.js delete mode 100644 zh/assets/js/bba16301.ea3d1d3e.js create mode 100644 zh/assets/js/d61c35d5.0f3ea4a7.js delete mode 100644 zh/assets/js/d61c35d5.483bd1b1.js rename zh/assets/js/{dee774c4.592f62cb.js => dee774c4.63ac276d.js} (95%) rename zh/assets/js/{e75795cb.20e7736a.js => e75795cb.aa1e4d2b.js} (99%) rename zh/assets/js/{main.32b0fb1e.js => main.6f60d1f9.js} (79%) rename zh/assets/js/{main.32b0fb1e.js.LICENSE.txt => main.6f60d1f9.js.LICENSE.txt} (100%) rename zh/assets/js/{runtime~main.fc838fc7.js => runtime~main.3b378abc.js} (88%) diff --git a/404.html b/404.html index 9148b02..e557796 100644 --- a/404.html +++ b/404.html @@ -3,11 +3,11 @@ -Page Not Found | KubeDataStack - - +Page Not Found | KubeDataStack + + -
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

+
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

\ No newline at end of file diff --git a/CNAME b/CNAME index 4845e6c..8bdccd8 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -zncdata.dev \ No newline at end of file +kubedoop.dev diff --git a/assets/js/0480b142.9a39f7ff.js b/assets/js/0480b142.4aec88e8.js similarity index 95% rename from assets/js/0480b142.9a39f7ff.js rename to assets/js/0480b142.4aec88e8.js index 36a63b7..6e616f5 100644 --- a/assets/js/0480b142.9a39f7ff.js +++ b/assets/js/0480b142.4aec88e8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[70],{7208:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>f,frontMatter:()=>c,metadata:()=>o,toc:()=>i});const o=JSON.parse('{"id":"faq","title":"FAQ","description":"","source":"@site/docs/faq.md","sourceDirName":".","slug":"/faq","permalink":"/docs/faq","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/faq.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"OPM","permalink":"/docs/reference/opm"}}');var s=n(4848),r=n(8453);const c={},a="FAQ",d={},i=[];function u(e){const t={h1:"h1",header:"header",...(0,r.R)(),...e.components};return(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"faq",children:"FAQ"})})}function f(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>c,x:()=>a});var o=n(6540);const s={},r=o.createContext(s);function c(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[70],{7208:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>f,frontMatter:()=>c,metadata:()=>o,toc:()=>i});const o=JSON.parse('{"id":"faq","title":"FAQ","description":"","source":"@site/docs/faq.md","sourceDirName":".","slug":"/faq","permalink":"/docs/faq","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/faq.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"OPM","permalink":"/docs/reference/opm"}}');var s=n(4848),r=n(8453);const c={},a="FAQ",d={},i=[];function u(e){const t={h1:"h1",header:"header",...(0,r.R)(),...e.components};return(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"faq",children:"FAQ"})})}function f(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>c,x:()=>a});var o=n(6540);const s={},r=o.createContext(s);function c(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/229009bb.57867027.js b/assets/js/229009bb.defbbb06.js similarity index 99% rename from assets/js/229009bb.57867027.js rename to assets/js/229009bb.defbbb06.js index c8810c8..872ebf5 100644 --- a/assets/js/229009bb.57867027.js +++ b/assets/js/229009bb.defbbb06.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[197],{9866:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>t,default:()=>p,frontMatter:()=>i,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"reference/operator-sdk","title":"operator-sdk","description":"operator-sdk \u662f\u6784\u5efa kubernetes \u6269\u5c55\u7684\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002","source":"@site/docs/reference/operator-sdk.md","sourceDirName":"reference","slug":"/reference/operator-sdk","permalink":"/docs/reference/operator-sdk","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/reference/operator-sdk.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u7b2c\u4e00\u6b21\u8d21\u732e","permalink":"/docs/developer-manual/first-commiter"},"next":{"title":"OPM","permalink":"/docs/reference/opm"}}');var s=r(4848),a=r(8453);const i={},t="operator-sdk",l={},d=[{value:"\u57fa\u672c\u547d\u4ee4",id:"\u57fa\u672c\u547d\u4ee4",level:2},{value:"operator-sdk init",id:"operator-sdk-init",level:3},{value:"operator-sdk create api",id:"operator-sdk-create-api",level:3}];function c(e){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"operator-sdk",children:"operator-sdk"})}),"\n",(0,s.jsx)(n.p,{children:"operator-sdk \u662f\u6784\u5efa kubernetes \u6269\u5c55\u7684\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002"}),"\n",(0,s.jsx)(n.h2,{id:"\u57fa\u672c\u547d\u4ee4",children:"\u57fa\u672c\u547d\u4ee4"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"operator-sdk [flags]\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u8f93\u51fa\uff1a"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-text",children:'CLI tool for building Kubernetes extensions and tools.\n\nUsage:\n operator-sdk [flags]\n operator-sdk [command]\n\nExamples:\nThe first step is to initialize your project:\n operator-sdk init [--plugins= [--project-version=]]\n\n is a comma-separated list of plugin keys from the following table\nand a supported project version for these plugins.\n\n Plugin keys | Supported project versions\n-----------------------------------------------+----------------------------\n ansible.sdk.operatorframework.io/v1 | 3\n declarative.go.kubebuilder.io/v1 | 2, 3\n deploy-image.go.kubebuilder.io/v1-alpha | 3\n go.kubebuilder.io/v2 | 2, 3\n go.kubebuilder.io/v3 | 3\n go.kubebuilder.io/v4 | 3\n grafana.kubebuilder.io/v1-alpha | 3\n helm.sdk.operatorframework.io/v1 | 3\n hybrid.helm.sdk.operatorframework.io/v1-alpha | 3\n quarkus.javaoperatorsdk.io/v1-alpha | 3\n\nFor more specific help for the init command of a certain plugins and project version\nconfiguration please run:\n operator-sdk init --help --plugins= [--project-version=]\n\nDefault plugin keys: "go.kubebuilder.io/v4"\nDefault project version: "3"\n\n\nAvailable Commands:\n alpha Alpha-stage subcommands\n bundle Manage operator bundle metadata\n cleanup Clean up an Operator deployed with the \'run\' subcommand\n completion Load completions for the specified shell\n create Scaffold a Kubernetes API or webhook\n edit Update the project configuration\n generate Invokes a specific generator\n help Help about any command\n init Initialize a new project\n olm Manage the Operator Lifecycle Manager installation in your cluster\n pkgman-to-bundle Migrates packagemanifests to bundles\n run Run an Operator in a variety of environments\n scorecard Runs scorecard\n version Print the operator-sdk version\n\nFlags:\n -h, --help help for operator-sdk\n --plugins strings plugin keys to be used for this subcommand execution\n --project-version string project version (default "3")\n --verbose Enable verbose logging\n\nUse "operator-sdk [command] --help" for more information about a command.\n'})}),"\n",(0,s.jsx)(n.h3,{id:"operator-sdk-init",children:"operator-sdk init"}),"\n",(0,s.jsx)(n.p,{children:"\u8fd9\u662f\u4e00\u4e2a\u521d\u59cb\u5316 operator \u9879\u76ee\u7684\u811a\u624b\u67b6\u547d\u4ee4\uff0c\u4f1a\u521b\u5efa\u4e00\u4e2a\u5b8c\u6574 operator \u9879\u76ee\u7ed3\u6784\uff0c\u5e76\u5305\u542b\u4e00\u4e9b\u9ed8\u8ba4\u7684\u914d\u7f6e\u3002"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"operator-sdk init [flags]\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u793a\u4f8b\uff1a"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'# \u521b\u5efa\u4e00\u4e2a operator \u9879\u76ee\uff0c\u4f7f\u7528 go.kubebuilder.io/v4 \u63d2\u4ef6\noperator-sdk init --domain example.org --owner "john" --repo "github.com/john/example-operator" --plugins go/v4\n'})}),"\n",(0,s.jsx)(n.p,{children:"\u9879\u76ee\u5305\u542b\u5982\u4e0b\u5185\u5bb9\uff1a"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"Dockerfile"}),"\uff1a\u7528\u4e8e\u6784\u5efa operator \u955c\u50cf\u7684 Dockerfile"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"Makefile"}),"\uff1a\u7528\u4e8e\u6784\u5efa\u3001\u90e8\u7f72 operator \u7684 Makefile"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"PROJECT"}),": \u9879\u76ee\u914d\u7f6e\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"README.md"}),": \u9879\u76ee\u8bf4\u660e\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"go.mod"}),": \u9879\u76ee\u4f9d\u8d56\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"cmd/main.go"}),": \u8fd0\u884c\u63a7\u5236\u5668\u7684\u4e3b\u5165\u53e3\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"config/"}),": \u4e00\u4e9b\u4e0e\u9879\u76ee\u90e8\u7f72\u76f8\u5173\u7684 yaml \u8d44\u6e90\u6587\u4ef6"]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"operator-sdk-create-api",children:"operator-sdk create api"}),"\n",(0,s.jsx)(n.p,{children:"\u8fd9\u662f\u4e00\u4e2a\u521b\u5efa kubernetes API \u7684\u811a\u624b\u67b6\u547d\u4ee4\u3002\u6267\u884c\u547d\u4ee4\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 kubernetes API \uff0c\u5e76\u751f\u6210\u76f8\u5e94\u7684\u4ee3\u7801\u3002"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"# \u521b\u5efa\u4e00\u4e2a\u65b0\u7684 kubernetes API \uff0c\u6307\u5b9a\u7c7b\u578b\u4e3a Memcached \uff0c\u5e76\u751f\u6210\u8d44\u6e90\u548c\u63a7\u5236\u5668\u4ee3\u7801\noperator-sdk create api --version v1alpha1 --kind Memcached --resource --controller\n\n# \u751f\u6210 API \u5b9a\u4e49\u76f8\u5173\u4ee3\u7801\nmake generate\n\n# \u751f\u6210 API \u7684 CRD \u8d44\u6e90\u6587\u4ef6\nmake manifests\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u751f\u6210\u5982\u4e0b\u5185\u5bb9\uff1a"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"api/"}),": \u751f\u6210 API \u8d44\u6e90\u5b9a\u4e49\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"internal/"}),": \u751f\u6210\u63a7\u5236\u5668\u4ee3\u7801"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"config/crd"}),": \u751f\u6210 CRD \u8d44\u6e90\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"config/samples"}),": \u751f\u6210 CRD \u793a\u4f8b\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"config/rbac"}),": \u751f\u6210\u8d44\u6e90\u7684 RBAC \u89c4\u5219\u6587\u4ef6\u3002"]}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}},8453:(e,n,r)=>{r.d(n,{R:()=>i,x:()=>t});var o=r(6540);const s={},a=o.createContext(s);function i(e){const n=o.useContext(a);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function t(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),o.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[197],{9866:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>t,default:()=>p,frontMatter:()=>i,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"reference/operator-sdk","title":"operator-sdk","description":"operator-sdk \u662f\u6784\u5efa kubernetes \u6269\u5c55\u7684\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002","source":"@site/docs/reference/operator-sdk.md","sourceDirName":"reference","slug":"/reference/operator-sdk","permalink":"/docs/reference/operator-sdk","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/reference/operator-sdk.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u7b2c\u4e00\u6b21\u8d21\u732e","permalink":"/docs/developer-manual/first-commiter"},"next":{"title":"OPM","permalink":"/docs/reference/opm"}}');var s=r(4848),a=r(8453);const i={},t="operator-sdk",l={},d=[{value:"\u57fa\u672c\u547d\u4ee4",id:"\u57fa\u672c\u547d\u4ee4",level:2},{value:"operator-sdk init",id:"operator-sdk-init",level:3},{value:"operator-sdk create api",id:"operator-sdk-create-api",level:3}];function c(e){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"operator-sdk",children:"operator-sdk"})}),"\n",(0,s.jsx)(n.p,{children:"operator-sdk \u662f\u6784\u5efa kubernetes \u6269\u5c55\u7684\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002"}),"\n",(0,s.jsx)(n.h2,{id:"\u57fa\u672c\u547d\u4ee4",children:"\u57fa\u672c\u547d\u4ee4"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"operator-sdk [flags]\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u8f93\u51fa\uff1a"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-text",children:'CLI tool for building Kubernetes extensions and tools.\n\nUsage:\n operator-sdk [flags]\n operator-sdk [command]\n\nExamples:\nThe first step is to initialize your project:\n operator-sdk init [--plugins= [--project-version=]]\n\n is a comma-separated list of plugin keys from the following table\nand a supported project version for these plugins.\n\n Plugin keys | Supported project versions\n-----------------------------------------------+----------------------------\n ansible.sdk.operatorframework.io/v1 | 3\n declarative.go.kubebuilder.io/v1 | 2, 3\n deploy-image.go.kubebuilder.io/v1-alpha | 3\n go.kubebuilder.io/v2 | 2, 3\n go.kubebuilder.io/v3 | 3\n go.kubebuilder.io/v4 | 3\n grafana.kubebuilder.io/v1-alpha | 3\n helm.sdk.operatorframework.io/v1 | 3\n hybrid.helm.sdk.operatorframework.io/v1-alpha | 3\n quarkus.javaoperatorsdk.io/v1-alpha | 3\n\nFor more specific help for the init command of a certain plugins and project version\nconfiguration please run:\n operator-sdk init --help --plugins= [--project-version=]\n\nDefault plugin keys: "go.kubebuilder.io/v4"\nDefault project version: "3"\n\n\nAvailable Commands:\n alpha Alpha-stage subcommands\n bundle Manage operator bundle metadata\n cleanup Clean up an Operator deployed with the \'run\' subcommand\n completion Load completions for the specified shell\n create Scaffold a Kubernetes API or webhook\n edit Update the project configuration\n generate Invokes a specific generator\n help Help about any command\n init Initialize a new project\n olm Manage the Operator Lifecycle Manager installation in your cluster\n pkgman-to-bundle Migrates packagemanifests to bundles\n run Run an Operator in a variety of environments\n scorecard Runs scorecard\n version Print the operator-sdk version\n\nFlags:\n -h, --help help for operator-sdk\n --plugins strings plugin keys to be used for this subcommand execution\n --project-version string project version (default "3")\n --verbose Enable verbose logging\n\nUse "operator-sdk [command] --help" for more information about a command.\n'})}),"\n",(0,s.jsx)(n.h3,{id:"operator-sdk-init",children:"operator-sdk init"}),"\n",(0,s.jsx)(n.p,{children:"\u8fd9\u662f\u4e00\u4e2a\u521d\u59cb\u5316 operator \u9879\u76ee\u7684\u811a\u624b\u67b6\u547d\u4ee4\uff0c\u4f1a\u521b\u5efa\u4e00\u4e2a\u5b8c\u6574 operator \u9879\u76ee\u7ed3\u6784\uff0c\u5e76\u5305\u542b\u4e00\u4e9b\u9ed8\u8ba4\u7684\u914d\u7f6e\u3002"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"operator-sdk init [flags]\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u793a\u4f8b\uff1a"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'# \u521b\u5efa\u4e00\u4e2a operator \u9879\u76ee\uff0c\u4f7f\u7528 go.kubebuilder.io/v4 \u63d2\u4ef6\noperator-sdk init --domain example.org --owner "john" --repo "github.com/john/example-operator" --plugins go/v4\n'})}),"\n",(0,s.jsx)(n.p,{children:"\u9879\u76ee\u5305\u542b\u5982\u4e0b\u5185\u5bb9\uff1a"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"Dockerfile"}),"\uff1a\u7528\u4e8e\u6784\u5efa operator \u955c\u50cf\u7684 Dockerfile"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"Makefile"}),"\uff1a\u7528\u4e8e\u6784\u5efa\u3001\u90e8\u7f72 operator \u7684 Makefile"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"PROJECT"}),": \u9879\u76ee\u914d\u7f6e\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"README.md"}),": \u9879\u76ee\u8bf4\u660e\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"go.mod"}),": \u9879\u76ee\u4f9d\u8d56\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"cmd/main.go"}),": \u8fd0\u884c\u63a7\u5236\u5668\u7684\u4e3b\u5165\u53e3\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"config/"}),": \u4e00\u4e9b\u4e0e\u9879\u76ee\u90e8\u7f72\u76f8\u5173\u7684 yaml \u8d44\u6e90\u6587\u4ef6"]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"operator-sdk-create-api",children:"operator-sdk create api"}),"\n",(0,s.jsx)(n.p,{children:"\u8fd9\u662f\u4e00\u4e2a\u521b\u5efa kubernetes API \u7684\u811a\u624b\u67b6\u547d\u4ee4\u3002\u6267\u884c\u547d\u4ee4\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 kubernetes API \uff0c\u5e76\u751f\u6210\u76f8\u5e94\u7684\u4ee3\u7801\u3002"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"# \u521b\u5efa\u4e00\u4e2a\u65b0\u7684 kubernetes API \uff0c\u6307\u5b9a\u7c7b\u578b\u4e3a Memcached \uff0c\u5e76\u751f\u6210\u8d44\u6e90\u548c\u63a7\u5236\u5668\u4ee3\u7801\noperator-sdk create api --version v1alpha1 --kind Memcached --resource --controller\n\n# \u751f\u6210 API \u5b9a\u4e49\u76f8\u5173\u4ee3\u7801\nmake generate\n\n# \u751f\u6210 API \u7684 CRD \u8d44\u6e90\u6587\u4ef6\nmake manifests\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u751f\u6210\u5982\u4e0b\u5185\u5bb9\uff1a"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"api/"}),": \u751f\u6210 API \u8d44\u6e90\u5b9a\u4e49\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"internal/"}),": \u751f\u6210\u63a7\u5236\u5668\u4ee3\u7801"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"config/crd"}),": \u751f\u6210 CRD \u8d44\u6e90\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"config/samples"}),": \u751f\u6210 CRD \u793a\u4f8b\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"config/rbac"}),": \u751f\u6210\u8d44\u6e90\u7684 RBAC \u89c4\u5219\u6587\u4ef6\u3002"]}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}},8453:(e,n,r)=>{r.d(n,{R:()=>i,x:()=>t});var o=r(6540);const s={},a=o.createContext(s);function i(e){const n=o.useContext(a);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function t(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),o.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/29cd0d2e.48739c52.js b/assets/js/29cd0d2e.c67b4c71.js similarity index 96% rename from assets/js/29cd0d2e.48739c52.js rename to assets/js/29cd0d2e.c67b4c71.js index 96a86b3..3f0d03d 100644 --- a/assets/js/29cd0d2e.48739c52.js +++ b/assets/js/29cd0d2e.c67b4c71.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[834],{4719:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>l,default:()=>d,frontMatter:()=>a,metadata:()=>o,toc:()=>c});const o=JSON.parse('{"id":"user-manual/environment/install-olm","title":"\u5b89\u88c5 OLM \u73af\u5883","description":"","source":"@site/docs/user-manual/environment/install-olm.md","sourceDirName":"user-manual/environment","slug":"/user-manual/environment/install-olm","permalink":"/docs/user-manual/environment/install-olm","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/user-manual/environment/install-olm.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u65e5\u5fd7","permalink":"/docs/core-concepts/observability/logging"},"next":{"title":"spark-k8s-operator","permalink":"/docs/operators/spark-k8s-operator"}}');var r=t(4848),s=t(8453);const a={},l="\u5b89\u88c5 OLM \u73af\u5883",i={},c=[];function u(e){const n={h1:"h1",header:"header",...(0,s.R)(),...e.components};return(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"\u5b89\u88c5-olm-\u73af\u5883",children:"\u5b89\u88c5 OLM \u73af\u5883"})})}function d(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>l});var o=t(6540);const r={},s=o.createContext(r);function a(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[834],{4719:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>l,default:()=>d,frontMatter:()=>a,metadata:()=>o,toc:()=>c});const o=JSON.parse('{"id":"user-manual/environment/install-olm","title":"\u5b89\u88c5 OLM \u73af\u5883","description":"","source":"@site/docs/user-manual/environment/install-olm.md","sourceDirName":"user-manual/environment","slug":"/user-manual/environment/install-olm","permalink":"/docs/user-manual/environment/install-olm","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/user-manual/environment/install-olm.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u65e5\u5fd7","permalink":"/docs/core-concepts/observability/logging"},"next":{"title":"spark-k8s-operator","permalink":"/docs/operators/spark-k8s-operator"}}');var r=t(4848),s=t(8453);const a={},l="\u5b89\u88c5 OLM \u73af\u5883",i={},c=[];function u(e){const n={h1:"h1",header:"header",...(0,s.R)(),...e.components};return(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"\u5b89\u88c5-olm-\u73af\u5883",children:"\u5b89\u88c5 OLM \u73af\u5883"})})}function d(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>l});var o=t(6540);const r={},s=o.createContext(r);function a(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/41bd6d00.09dd6da3.js b/assets/js/41bd6d00.a855e5e3.js similarity index 96% rename from assets/js/41bd6d00.09dd6da3.js rename to assets/js/41bd6d00.a855e5e3.js index a4b2707..82e49bb 100644 --- a/assets/js/41bd6d00.09dd6da3.js +++ b/assets/js/41bd6d00.a855e5e3.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[86],{6737:(e,t,c)=>{c.r(t),c.d(t,{assets:()=>d,contentTitle:()=>i,default:()=>p,frontMatter:()=>r,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"core-concepts/connectivity/service-discovery","title":"\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0","description":"","source":"@site/docs/core-concepts/connectivity/service-discovery.md","sourceDirName":"core-concepts/connectivity","slug":"/core-concepts/connectivity/service-discovery","permalink":"/docs/core-concepts/connectivity/service-discovery","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/connectivity/service-discovery.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"S3","permalink":"/docs/core-concepts/resources/s3"},"next":{"title":"authentication","permalink":"/docs/core-concepts/security/authentication"}}');var o=c(4848),s=c(8453);const r={},i="\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0",d={},a=[];function u(e){const t={h1:"h1",header:"header",...(0,s.R)(),...e.components};return(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0",children:"\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0"})})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},8453:(e,t,c)=>{c.d(t,{R:()=>r,x:()=>i});var n=c(6540);const o={},s=n.createContext(o);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[86],{6737:(e,t,c)=>{c.r(t),c.d(t,{assets:()=>d,contentTitle:()=>i,default:()=>p,frontMatter:()=>r,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"core-concepts/connectivity/service-discovery","title":"\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0","description":"","source":"@site/docs/core-concepts/connectivity/service-discovery.md","sourceDirName":"core-concepts/connectivity","slug":"/core-concepts/connectivity/service-discovery","permalink":"/docs/core-concepts/connectivity/service-discovery","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/connectivity/service-discovery.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"S3","permalink":"/docs/core-concepts/resources/s3"},"next":{"title":"authentication","permalink":"/docs/core-concepts/security/authentication"}}');var o=c(4848),s=c(8453);const r={},i="\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0",d={},a=[];function u(e){const t={h1:"h1",header:"header",...(0,s.R)(),...e.components};return(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0",children:"\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0"})})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},8453:(e,t,c)=>{c.d(t,{R:()=>r,x:()=>i});var n=c(6540);const o={},s=n.createContext(o);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/4d812e7e.20293601.js b/assets/js/4d812e7e.d1b86ac6.js similarity index 58% rename from assets/js/4d812e7e.20293601.js rename to assets/js/4d812e7e.d1b86ac6.js index 220659d..428e879 100644 --- a/assets/js/4d812e7e.20293601.js +++ b/assets/js/4d812e7e.d1b86ac6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[917],{8517:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>l,contentTitle:()=>c,default:()=>h,frontMatter:()=>i,metadata:()=>s,toc:()=>o});const s=JSON.parse('{"id":"quick-start/installation","title":"\u5feb\u901f\u5f00\u59cb","description":"datastack \u662f\u4e00\u4e2a\u57fa\u4e8e Kubernetes \u7684\u6570\u636e\u5e73\u53f0\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u5957\u5b8c\u6574\u7684\u6570\u636e\u5904\u7406\u5de5\u5177\uff0c\u5305\u62ec\u6570\u636e\u91c7\u96c6\u3001\u6570\u636e\u5b58\u50a8\u3001\u6570\u636e\u5904\u7406\u3001\u6570\u636e\u5206\u6790\u7b49\u529f\u80fd\u3002datastack \u901a\u8fc7 Operator \u7684\u65b9\u5f0f\u90e8\u7f72\u5728 Kubernetes \u96c6\u7fa4\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u6587\u4ef6\u6765\u90e8\u7f72\u548c\u7ba1\u7406\u6570\u636e\u5904\u7406\u4efb\u52a1\u3002","source":"@site/docs/quick-start/installation.md","sourceDirName":"quick-start","slug":"/quick-start/installation","permalink":"/docs/quick-start/installation","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/quick-start/installation.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u4ecb\u7ecd","permalink":"/docs/"},"next":{"title":"\u9ad8\u7ea7\uff1a \u914d\u7f6e\u8986\u76d6","permalink":"/docs/core-concepts/common-configuration-mechanisms/overrides"}}');var n=a(4848),r=a(8453);const i={},c="\u5feb\u901f\u5f00\u59cb",l={},o=[{value:"\u73af\u5883\u51c6\u5907",id:"\u73af\u5883\u51c6\u5907",level:2},{value:"\u5b89\u88c5 OLM",id:"\u5b89\u88c5-olm",level:2},{value:"\u5b89\u88c5 hive-operator",id:"\u5b89\u88c5-hive-operator",level:2},{value:"\u521b\u5efa\u547d\u540d\u7a7a\u95f4",id:"\u521b\u5efa\u547d\u540d\u7a7a\u95f4",level:2},{value:"\u90e8\u7f72\u4e00\u4e2a Hive \u96c6\u7fa4",id:"\u90e8\u7f72\u4e00\u4e2a-hive-\u96c6\u7fa4",level:2},{value:"\u67e5\u770b Hive Metastore",id:"\u67e5\u770b-hive-metastore",level:2},{value:"\u6e05\u7406\u8d44\u6e90",id:"\u6e05\u7406\u8d44\u6e90",level:2}];function d(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"\u5feb\u901f\u5f00\u59cb",children:"\u5feb\u901f\u5f00\u59cb"})}),"\n",(0,n.jsx)(t.p,{children:"datastack \u662f\u4e00\u4e2a\u57fa\u4e8e Kubernetes \u7684\u6570\u636e\u5e73\u53f0\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u5957\u5b8c\u6574\u7684\u6570\u636e\u5904\u7406\u5de5\u5177\uff0c\u5305\u62ec\u6570\u636e\u91c7\u96c6\u3001\u6570\u636e\u5b58\u50a8\u3001\u6570\u636e\u5904\u7406\u3001\u6570\u636e\u5206\u6790\u7b49\u529f\u80fd\u3002datastack \u901a\u8fc7 Operator \u7684\u65b9\u5f0f\u90e8\u7f72\u5728 Kubernetes \u96c6\u7fa4\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u6587\u4ef6\u6765\u90e8\u7f72\u548c\u7ba1\u7406\u6570\u636e\u5904\u7406\u4efb\u52a1\u3002"}),"\n",(0,n.jsx)(t.p,{children:"\u5728\u8fd9\u7bc7\u5feb\u901f\u5f00\u59cb\u4e2d\uff0c\u6211\u4eec\u4ee5 datastack \u7684 hive-operator \u4e3a\u4f8b\uff0c\u4ecb\u7ecd\u5982\u4f55\u5728 Kubernetes \u96c6\u7fa4\u4e2d\u90e8\u7f72\u4e00\u4e2a Hive Metastore\u3002"}),"\n",(0,n.jsx)(t.h2,{id:"\u73af\u5883\u51c6\u5907",children:"\u73af\u5883\u51c6\u5907"}),"\n",(0,n.jsx)(t.p,{children:"\u8981\u5f00\u59cb\u4f7f\u7528 datastack \uff0c\u9700\u8981\u6ee1\u8db3\u4e00\u4e0b\u6761\u4ef6\uff1a"}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:["\u5b89\u88c5 ",(0,n.jsx)(t.a,{href:"https://kubernetes.io/docs/tasks/tools/#kubectl",children:"kubectl"})]}),"\n",(0,n.jsx)(t.li,{children:"\u51c6\u5907\u4e00\u4e2a Kubernetes \u96c6\u7fa4"}),"\n"]}),"\n",(0,n.jsx)(t.h2,{id:"\u5b89\u88c5-olm",children:"\u5b89\u88c5 OLM"}),"\n",(0,n.jsx)(t.p,{children:"datastack \u4f9d\u8d56\u4e8e Operator Lifecycle Manager (OLM) \u6765\u7ba1\u7406 Operator\u3002\u5982\u679c\u4f60\u7684\u96c6\u7fa4\u4e2d\u6ca1\u6709\u5b89\u88c5 OLM\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.25.0/install.sh | bash -s v0.25.0\n"})}),"\n",(0,n.jsx)(t.h2,{id:"\u5b89\u88c5-hive-operator",children:"\u5b89\u88c5 hive-operator"}),"\n",(0,n.jsxs)(t.p,{children:["OLM \u901a\u8fc7 ",(0,n.jsx)(t.a,{href:"https://olm.operatorframework.io/docs/concepts/subscriptions/",children:"Subscription"})," \u6765\u7ba1\u7406 Operator \u7684\u5b89\u88c5\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a Subscription \u6765\u5b89\u88c5 hive-metastore-operator\uff1a"]}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-yaml",children:"kubectl apply -f https://raw.githubusercontent.com/zncdata.dev/kubedatastack/main/examples/hive/olm-subscriptions.yaml\n"})}),"\n",(0,n.jsx)(t.p,{children:"\u9a8c\u8bc1 operator \u7684 pod \u662f\u5426\u6b63\u5e38\u8fd0\u884c\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"kubectl get pods -n operator\n"})}),"\n",(0,n.jsx)(t.h2,{id:"\u521b\u5efa\u547d\u540d\u7a7a\u95f4",children:"\u521b\u5efa\u547d\u540d\u7a7a\u95f4"}),"\n",(0,n.jsx)(t.p,{children:"\u521b\u5efa\u4e00\u4e2a hive \u7684\u547d\u540d\u7a7a\u95f4\uff0c\u7528\u4e8e\u90e8\u7f72 hive \u96c6\u7fa4\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"kubectl create ns hive\n"})}),"\n",(0,n.jsx)(t.h2,{id:"\u90e8\u7f72\u4e00\u4e2a-hive-\u96c6\u7fa4",children:"\u90e8\u7f72\u4e00\u4e2a Hive \u96c6\u7fa4"}),"\n",(0,n.jsx)(t.p,{children:"Hive \u96c6\u7fa4\u662f\u901a\u8fc7 hive-operator \u6765\u7ba1\u7406\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a HiveCluster \u5bf9\u8c61\u6765\u90e8\u7f72\u4e00\u4e2a Hive Metastore\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-yaml",children:"kubectl apply -f https://raw.githubusercontent.com/zncdata.dev/kubedatastack/main/examples/hive/hive-metastore.yaml\n"})}),"\n",(0,n.jsx)(t.h2,{id:"\u67e5\u770b-hive-metastore",children:"\u67e5\u770b Hive Metastore"}),"\n",(0,n.jsx)(t.p,{children:"Hive \u96c6\u7fa4\u90e8\u7f72\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u8bbf\u95ee Hive Metastore\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"kubectl exec -it hive-metastore-0 -n hive -- bash\n"})}),"\n",(0,n.jsx)(t.h2,{id:"\u6e05\u7406\u8d44\u6e90",children:"\u6e05\u7406\u8d44\u6e90"}),"\n",(0,n.jsx)(t.p,{children:"\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4\uff0c\u6e05\u7406 hive \u96c6\u7fa4\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"kubectl delete -f https://raw.githubusercontent.com/zncdata.dev/kubedatastack/main/examples/hive/hive-cluster.yaml\n"})}),"\n",(0,n.jsx)(t.p,{children:"\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4\uff0c\u6e05\u7406 operator\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"kubectl delete -f https://raw.githubusercontent.com/zncdata.dev/kubedatastack/main/examples/hive/olm-subscriptions.yaml\n"})})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},8453:(e,t,a)=>{a.d(t,{R:()=>i,x:()=>c});var s=a(6540);const n={},r=s.createContext(n);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[917],{8517:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>l,contentTitle:()=>c,default:()=>h,frontMatter:()=>i,metadata:()=>a,toc:()=>o});const a=JSON.parse('{"id":"quick-start/installation","title":"\u5feb\u901f\u5f00\u59cb","description":"datastack \u662f\u4e00\u4e2a\u57fa\u4e8e Kubernetes \u7684\u6570\u636e\u5e73\u53f0\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u5957\u5b8c\u6574\u7684\u6570\u636e\u5904\u7406\u5de5\u5177\uff0c\u5305\u62ec\u6570\u636e\u91c7\u96c6\u3001\u6570\u636e\u5b58\u50a8\u3001\u6570\u636e\u5904\u7406\u3001\u6570\u636e\u5206\u6790\u7b49\u529f\u80fd\u3002datastack \u901a\u8fc7 Operator \u7684\u65b9\u5f0f\u90e8\u7f72\u5728 Kubernetes \u96c6\u7fa4\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u6587\u4ef6\u6765\u90e8\u7f72\u548c\u7ba1\u7406\u6570\u636e\u5904\u7406\u4efb\u52a1\u3002","source":"@site/docs/quick-start/installation.md","sourceDirName":"quick-start","slug":"/quick-start/installation","permalink":"/docs/quick-start/installation","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/quick-start/installation.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u4ecb\u7ecd","permalink":"/docs/"},"next":{"title":"\u9ad8\u7ea7\uff1a \u914d\u7f6e\u8986\u76d6","permalink":"/docs/core-concepts/common-configuration-mechanisms/overrides"}}');var n=s(4848),r=s(8453);const i={},c="\u5feb\u901f\u5f00\u59cb",l={},o=[{value:"\u73af\u5883\u51c6\u5907",id:"\u73af\u5883\u51c6\u5907",level:2},{value:"\u5b89\u88c5 OLM",id:"\u5b89\u88c5-olm",level:2},{value:"\u5b89\u88c5 hive-operator",id:"\u5b89\u88c5-hive-operator",level:2},{value:"\u521b\u5efa\u547d\u540d\u7a7a\u95f4",id:"\u521b\u5efa\u547d\u540d\u7a7a\u95f4",level:2},{value:"\u90e8\u7f72\u4e00\u4e2a Hive \u96c6\u7fa4",id:"\u90e8\u7f72\u4e00\u4e2a-hive-\u96c6\u7fa4",level:2},{value:"\u67e5\u770b Hive Metastore",id:"\u67e5\u770b-hive-metastore",level:2},{value:"\u6e05\u7406\u8d44\u6e90",id:"\u6e05\u7406\u8d44\u6e90",level:2}];function d(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"\u5feb\u901f\u5f00\u59cb",children:"\u5feb\u901f\u5f00\u59cb"})}),"\n",(0,n.jsx)(t.p,{children:"datastack \u662f\u4e00\u4e2a\u57fa\u4e8e Kubernetes \u7684\u6570\u636e\u5e73\u53f0\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u5957\u5b8c\u6574\u7684\u6570\u636e\u5904\u7406\u5de5\u5177\uff0c\u5305\u62ec\u6570\u636e\u91c7\u96c6\u3001\u6570\u636e\u5b58\u50a8\u3001\u6570\u636e\u5904\u7406\u3001\u6570\u636e\u5206\u6790\u7b49\u529f\u80fd\u3002datastack \u901a\u8fc7 Operator \u7684\u65b9\u5f0f\u90e8\u7f72\u5728 Kubernetes \u96c6\u7fa4\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u914d\u7f6e\u6587\u4ef6\u6765\u90e8\u7f72\u548c\u7ba1\u7406\u6570\u636e\u5904\u7406\u4efb\u52a1\u3002"}),"\n",(0,n.jsx)(t.p,{children:"\u5728\u8fd9\u7bc7\u5feb\u901f\u5f00\u59cb\u4e2d\uff0c\u6211\u4eec\u4ee5 datastack \u7684 hive-operator \u4e3a\u4f8b\uff0c\u4ecb\u7ecd\u5982\u4f55\u5728 Kubernetes \u96c6\u7fa4\u4e2d\u90e8\u7f72\u4e00\u4e2a Hive Metastore\u3002"}),"\n",(0,n.jsx)(t.h2,{id:"\u73af\u5883\u51c6\u5907",children:"\u73af\u5883\u51c6\u5907"}),"\n",(0,n.jsx)(t.p,{children:"\u8981\u5f00\u59cb\u4f7f\u7528 datastack \uff0c\u9700\u8981\u6ee1\u8db3\u4e00\u4e0b\u6761\u4ef6\uff1a"}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:["\u5b89\u88c5 ",(0,n.jsx)(t.a,{href:"https://kubernetes.io/docs/tasks/tools/#kubectl",children:"kubectl"})]}),"\n",(0,n.jsx)(t.li,{children:"\u51c6\u5907\u4e00\u4e2a Kubernetes \u96c6\u7fa4"}),"\n"]}),"\n",(0,n.jsx)(t.h2,{id:"\u5b89\u88c5-olm",children:"\u5b89\u88c5 OLM"}),"\n",(0,n.jsx)(t.p,{children:"datastack \u4f9d\u8d56\u4e8e Operator Lifecycle Manager (OLM) \u6765\u7ba1\u7406 Operator\u3002\u5982\u679c\u4f60\u7684\u96c6\u7fa4\u4e2d\u6ca1\u6709\u5b89\u88c5 OLM\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.25.0/install.sh | bash -s v0.25.0\n"})}),"\n",(0,n.jsx)(t.h2,{id:"\u5b89\u88c5-hive-operator",children:"\u5b89\u88c5 hive-operator"}),"\n",(0,n.jsxs)(t.p,{children:["OLM \u901a\u8fc7 ",(0,n.jsx)(t.a,{href:"https://olm.operatorframework.io/docs/concepts/subscriptions/",children:"Subscription"})," \u6765\u7ba1\u7406 Operator \u7684\u5b89\u88c5\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a Subscription \u6765\u5b89\u88c5 hive-metastore-operator\uff1a"]}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-yaml",children:"kubectl apply -f https://raw.githubusercontent.com/kubedoop.dev/kubedatastack/main/examples/hive/olm-subscriptions.yaml\n"})}),"\n",(0,n.jsx)(t.p,{children:"\u9a8c\u8bc1 operator \u7684 pod \u662f\u5426\u6b63\u5e38\u8fd0\u884c\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"kubectl get pods -n operator\n"})}),"\n",(0,n.jsx)(t.h2,{id:"\u521b\u5efa\u547d\u540d\u7a7a\u95f4",children:"\u521b\u5efa\u547d\u540d\u7a7a\u95f4"}),"\n",(0,n.jsx)(t.p,{children:"\u521b\u5efa\u4e00\u4e2a hive \u7684\u547d\u540d\u7a7a\u95f4\uff0c\u7528\u4e8e\u90e8\u7f72 hive \u96c6\u7fa4\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"kubectl create ns hive\n"})}),"\n",(0,n.jsx)(t.h2,{id:"\u90e8\u7f72\u4e00\u4e2a-hive-\u96c6\u7fa4",children:"\u90e8\u7f72\u4e00\u4e2a Hive \u96c6\u7fa4"}),"\n",(0,n.jsx)(t.p,{children:"Hive \u96c6\u7fa4\u662f\u901a\u8fc7 hive-operator \u6765\u7ba1\u7406\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a HiveCluster \u5bf9\u8c61\u6765\u90e8\u7f72\u4e00\u4e2a Hive Metastore\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-yaml",children:"kubectl apply -f https://raw.githubusercontent.com/kubedoop.dev/kubedatastack/main/examples/hive/hive-metastore.yaml\n"})}),"\n",(0,n.jsx)(t.h2,{id:"\u67e5\u770b-hive-metastore",children:"\u67e5\u770b Hive Metastore"}),"\n",(0,n.jsx)(t.p,{children:"Hive \u96c6\u7fa4\u90e8\u7f72\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u8bbf\u95ee Hive Metastore\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"kubectl exec -it hive-metastore-0 -n hive -- bash\n"})}),"\n",(0,n.jsx)(t.h2,{id:"\u6e05\u7406\u8d44\u6e90",children:"\u6e05\u7406\u8d44\u6e90"}),"\n",(0,n.jsx)(t.p,{children:"\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4\uff0c\u6e05\u7406 hive \u96c6\u7fa4\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"kubectl delete -f https://raw.githubusercontent.com/kubedoop.dev/kubedatastack/main/examples/hive/hive-cluster.yaml\n"})}),"\n",(0,n.jsx)(t.p,{children:"\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4\uff0c\u6e05\u7406 operator\uff1a"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"kubectl delete -f https://raw.githubusercontent.com/kubedoop.dev/kubedatastack/main/examples/hive/olm-subscriptions.yaml\n"})})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},8453:(e,t,s)=>{s.d(t,{R:()=>i,x:()=>c});var a=s(6540);const n={},r=a.createContext(n);function i(e){const t=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),a.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5b5b3cb8.adb200c2.js b/assets/js/5b5b3cb8.9d661ddb.js similarity index 96% rename from assets/js/5b5b3cb8.adb200c2.js rename to assets/js/5b5b3cb8.9d661ddb.js index 1fa8b2f..24963ba 100644 --- a/assets/js/5b5b3cb8.adb200c2.js +++ b/assets/js/5b5b3cb8.9d661ddb.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[671],{6807:(t,e,n)=>{n.r(e),n.d(e,{assets:()=>a,contentTitle:()=>i,default:()=>p,frontMatter:()=>r,metadata:()=>o,toc:()=>u});const o=JSON.parse('{"id":"core-concepts/security/authentication","title":"authentication","description":"","source":"@site/docs/core-concepts/security/authentication.md","sourceDirName":"core-concepts/security","slug":"/core-concepts/security/authentication","permalink":"/docs/core-concepts/security/authentication","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/security/authentication.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0","permalink":"/docs/core-concepts/connectivity/service-discovery"},"next":{"title":"pod-disruptions","permalink":"/docs/core-concepts/operations/pod-disruptions"}}');var c=n(4848),s=n(8453);const r={},i=void 0,a={},u=[];function d(t){return(0,c.jsx)(c.Fragment,{})}function p(t={}){const{wrapper:e}={...(0,s.R)(),...t.components};return e?(0,c.jsx)(e,{...t,children:(0,c.jsx)(d,{...t})}):d()}},8453:(t,e,n)=>{n.d(e,{R:()=>r,x:()=>i});var o=n(6540);const c={},s=o.createContext(c);function r(t){const e=o.useContext(s);return o.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function i(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(c):t.components||c:r(t.components),o.createElement(s.Provider,{value:e},t.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[671],{6807:(t,e,n)=>{n.r(e),n.d(e,{assets:()=>a,contentTitle:()=>i,default:()=>p,frontMatter:()=>r,metadata:()=>o,toc:()=>u});const o=JSON.parse('{"id":"core-concepts/security/authentication","title":"authentication","description":"","source":"@site/docs/core-concepts/security/authentication.md","sourceDirName":"core-concepts/security","slug":"/core-concepts/security/authentication","permalink":"/docs/core-concepts/security/authentication","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/security/authentication.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0","permalink":"/docs/core-concepts/connectivity/service-discovery"},"next":{"title":"pod-disruptions","permalink":"/docs/core-concepts/operations/pod-disruptions"}}');var c=n(4848),s=n(8453);const r={},i=void 0,a={},u=[];function d(t){return(0,c.jsx)(c.Fragment,{})}function p(t={}){const{wrapper:e}={...(0,s.R)(),...t.components};return e?(0,c.jsx)(e,{...t,children:(0,c.jsx)(d,{...t})}):d()}},8453:(t,e,n)=>{n.d(e,{R:()=>r,x:()=>i});var o=n(6540);const c={},s=o.createContext(c);function r(t){const e=o.useContext(s);return o.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function i(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(c):t.components||c:r(t.components),o.createElement(s.Provider,{value:e},t.children)}}}]); \ No newline at end of file diff --git a/assets/js/6e2798e6.32c45d8d.js b/assets/js/6e2798e6.522f358b.js similarity index 97% rename from assets/js/6e2798e6.32c45d8d.js rename to assets/js/6e2798e6.522f358b.js index 306c05a..f2604e8 100644 --- a/assets/js/6e2798e6.32c45d8d.js +++ b/assets/js/6e2798e6.522f358b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[551],{1168:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>l,default:()=>p,frontMatter:()=>d,metadata:()=>o,toc:()=>i});const o=JSON.parse('{"id":"developer-manual/develop-guideline","title":"\u5f00\u53d1\u6307\u5357","description":"\u5982\u679c\u4f60\u60f3\u8981\u53c2\u4e0e operator \u5f00\u53d1\uff0c\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u672c\u6587\u6863\u5185\u5bb9\uff0c\u4e86\u89e3 operator \u7684\u5f00\u53d1\u89c4\u8303\u548c\u5f00\u53d1\u7ec6\u8282\u3002","source":"@site/docs/developer-manual/develop-guideline.md","sourceDirName":"developer-manual","slug":"/developer-manual/develop-guideline","permalink":"/docs/developer-manual/develop-guideline","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/developer-manual/develop-guideline.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u534f\u4f5c\u6307\u5357","permalink":"/docs/developer-manual/collaboration"},"next":{"title":"\u6587\u6863\u7f16\u5199\u6307\u5357","permalink":"/docs/developer-manual/document-guideline"}}');var r=n(4848),a=n(8453);const d={},l="\u5f00\u53d1\u6307\u5357",s={},i=[];function c(e){const t={h1:"h1",header:"header",p:"p",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"\u5f00\u53d1\u6307\u5357",children:"\u5f00\u53d1\u6307\u5357"})}),"\n",(0,r.jsx)(t.p,{children:"\u5982\u679c\u4f60\u60f3\u8981\u53c2\u4e0e operator \u5f00\u53d1\uff0c\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u672c\u6587\u6863\u5185\u5bb9\uff0c\u4e86\u89e3 operator \u7684\u5f00\u53d1\u89c4\u8303\u548c\u5f00\u53d1\u7ec6\u8282\u3002"})]})}function p(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>d,x:()=>l});var o=n(6540);const r={},a=o.createContext(r);function d(e){const t=o.useContext(a);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),o.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[551],{1168:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>l,default:()=>p,frontMatter:()=>d,metadata:()=>o,toc:()=>i});const o=JSON.parse('{"id":"developer-manual/develop-guideline","title":"\u5f00\u53d1\u6307\u5357","description":"\u5982\u679c\u4f60\u60f3\u8981\u53c2\u4e0e operator \u5f00\u53d1\uff0c\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u672c\u6587\u6863\u5185\u5bb9\uff0c\u4e86\u89e3 operator \u7684\u5f00\u53d1\u89c4\u8303\u548c\u5f00\u53d1\u7ec6\u8282\u3002","source":"@site/docs/developer-manual/develop-guideline.md","sourceDirName":"developer-manual","slug":"/developer-manual/develop-guideline","permalink":"/docs/developer-manual/develop-guideline","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/developer-manual/develop-guideline.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u534f\u4f5c\u6307\u5357","permalink":"/docs/developer-manual/collaboration"},"next":{"title":"\u6587\u6863\u7f16\u5199\u6307\u5357","permalink":"/docs/developer-manual/document-guideline"}}');var r=n(4848),a=n(8453);const d={},l="\u5f00\u53d1\u6307\u5357",s={},i=[];function c(e){const t={h1:"h1",header:"header",p:"p",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"\u5f00\u53d1\u6307\u5357",children:"\u5f00\u53d1\u6307\u5357"})}),"\n",(0,r.jsx)(t.p,{children:"\u5982\u679c\u4f60\u60f3\u8981\u53c2\u4e0e operator \u5f00\u53d1\uff0c\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u672c\u6587\u6863\u5185\u5bb9\uff0c\u4e86\u89e3 operator \u7684\u5f00\u53d1\u89c4\u8303\u548c\u5f00\u53d1\u7ec6\u8282\u3002"})]})}function p(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>d,x:()=>l});var o=n(6540);const r={},a=o.createContext(r);function d(e){const t=o.useContext(a);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),o.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6eb7429a.7fb3157f.js b/assets/js/6eb7429a.348485db.js similarity index 96% rename from assets/js/6eb7429a.7fb3157f.js rename to assets/js/6eb7429a.348485db.js index 111053c..96e09b8 100644 --- a/assets/js/6eb7429a.7fb3157f.js +++ b/assets/js/6eb7429a.348485db.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[913],{5010:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>p,frontMatter:()=>r,metadata:()=>o,toc:()=>u});const o=JSON.parse('{"id":"core-concepts/resources/database","title":"Database","description":"","source":"@site/docs/core-concepts/resources/database.md","sourceDirName":"core-concepts/resources","slug":"/core-concepts/resources/database","permalink":"/docs/core-concepts/resources/database","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/resources/database.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u89d2\u8272\u548c\u89d2\u8272\u7ec4","permalink":"/docs/core-concepts/common-configuration-mechanisms/roles-and-role-groups"},"next":{"title":"\u8d44\u6e90\u7ba1\u7406","permalink":"/docs/core-concepts/resources/resource-manage"}}');var c=s(4848),n=s(8453);const r={},a="Database",d={},u=[];function i(e){const t={h1:"h1",header:"header",...(0,n.R)(),...e.components};return(0,c.jsx)(t.header,{children:(0,c.jsx)(t.h1,{id:"database",children:"Database"})})}function p(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,c.jsx)(t,{...e,children:(0,c.jsx)(i,{...e})}):i(e)}},8453:(e,t,s)=>{s.d(t,{R:()=>r,x:()=>a});var o=s(6540);const c={},n=o.createContext(c);function r(e){const t=o.useContext(n);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:r(e.components),o.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[913],{5010:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>p,frontMatter:()=>r,metadata:()=>o,toc:()=>u});const o=JSON.parse('{"id":"core-concepts/resources/database","title":"Database","description":"","source":"@site/docs/core-concepts/resources/database.md","sourceDirName":"core-concepts/resources","slug":"/core-concepts/resources/database","permalink":"/docs/core-concepts/resources/database","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/resources/database.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u89d2\u8272\u548c\u89d2\u8272\u7ec4","permalink":"/docs/core-concepts/common-configuration-mechanisms/roles-and-role-groups"},"next":{"title":"\u8d44\u6e90\u7ba1\u7406","permalink":"/docs/core-concepts/resources/resource-manage"}}');var c=s(4848),n=s(8453);const r={},a="Database",d={},u=[];function i(e){const t={h1:"h1",header:"header",...(0,n.R)(),...e.components};return(0,c.jsx)(t.header,{children:(0,c.jsx)(t.h1,{id:"database",children:"Database"})})}function p(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,c.jsx)(t,{...e,children:(0,c.jsx)(i,{...e})}):i(e)}},8453:(e,t,s)=>{s.d(t,{R:()=>r,x:()=>a});var o=s(6540);const c={},n=o.createContext(c);function r(e){const t=o.useContext(n);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:r(e.components),o.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7a9c058a.664d6070.js b/assets/js/7a9c058a.6491f385.js similarity index 95% rename from assets/js/7a9c058a.664d6070.js rename to assets/js/7a9c058a.6491f385.js index 8826608..97fd725 100644 --- a/assets/js/7a9c058a.664d6070.js +++ b/assets/js/7a9c058a.6491f385.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[187],{6521:(t,e,o)=>{o.r(e),o.d(e,{assets:()=>p,contentTitle:()=>i,default:()=>u,frontMatter:()=>r,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"core-concepts/operations/pod-disruptions","title":"pod-disruptions","description":"","source":"@site/docs/core-concepts/operations/pod-disruptions.md","sourceDirName":"core-concepts/operations","slug":"/core-concepts/operations/pod-disruptions","permalink":"/docs/core-concepts/operations/pod-disruptions","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/operations/pod-disruptions.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"authentication","permalink":"/docs/core-concepts/security/authentication"},"next":{"title":"pod-placement","permalink":"/docs/core-concepts/operations/pod-placement"}}');var s=o(4848),c=o(8453);const r={},i=void 0,p={},a=[];function d(t){return(0,s.jsx)(s.Fragment,{})}function u(t={}){const{wrapper:e}={...(0,c.R)(),...t.components};return e?(0,s.jsx)(e,{...t,children:(0,s.jsx)(d,{...t})}):d()}},8453:(t,e,o)=>{o.d(e,{R:()=>r,x:()=>i});var n=o(6540);const s={},c=n.createContext(s);function r(t){const e=n.useContext(c);return n.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function i(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(s):t.components||s:r(t.components),n.createElement(c.Provider,{value:e},t.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[187],{6521:(t,e,o)=>{o.r(e),o.d(e,{assets:()=>p,contentTitle:()=>i,default:()=>u,frontMatter:()=>r,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"core-concepts/operations/pod-disruptions","title":"pod-disruptions","description":"","source":"@site/docs/core-concepts/operations/pod-disruptions.md","sourceDirName":"core-concepts/operations","slug":"/core-concepts/operations/pod-disruptions","permalink":"/docs/core-concepts/operations/pod-disruptions","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/operations/pod-disruptions.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"authentication","permalink":"/docs/core-concepts/security/authentication"},"next":{"title":"pod-placement","permalink":"/docs/core-concepts/operations/pod-placement"}}');var s=o(4848),c=o(8453);const r={},i=void 0,p={},a=[];function d(t){return(0,s.jsx)(s.Fragment,{})}function u(t={}){const{wrapper:e}={...(0,c.R)(),...t.components};return e?(0,s.jsx)(e,{...t,children:(0,s.jsx)(d,{...t})}):d()}},8453:(t,e,o)=>{o.d(e,{R:()=>r,x:()=>i});var n=o(6540);const s={},c=n.createContext(s);function r(t){const e=n.useContext(c);return n.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function i(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(s):t.components||s:r(t.components),n.createElement(c.Provider,{value:e},t.children)}}}]); \ No newline at end of file diff --git a/assets/js/84d07bab.6dcfb146.js b/assets/js/84d07bab.6dcfb146.js new file mode 100644 index 0000000..14e36a0 --- /dev/null +++ b/assets/js/84d07bab.6dcfb146.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[781],{378:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>i,contentTitle:()=>c,default:()=>p,frontMatter:()=>a,metadata:()=>o,toc:()=>t});const o=JSON.parse('{"id":"core-concepts/common-configuration-mechanisms/overrides","title":"\u9ad8\u7ea7\uff1a \u914d\u7f6e\u8986\u76d6","description":"\u4e3a\u4e86 datastack \u4e2d\u6240\u6709\u4ea7\u54c1\u80fd\u5feb\u901f\u5b89\u5168\u7684\u8fd0\u884c\uff0c\u6240\u6709\u4ea7\u54c1\u90fd\u63d0\u4f9b\u4e86\u76f8\u5e94\u7684\u9ed8\u8ba4\u914d\u7f6e\u3002\u4f46\u662f\uff0c\u6709\u65f6\u5019\u4f60\u53ef\u80fd\u9700\u8981\u8986\u76d6\u8fd9\u4e9b\u9ed8\u8ba4\u914d\u7f6e\u3002\u8fd9\u4e2a\u6587\u6863\u5c06\u4f1a\u4ecb\u7ecd\u5982\u4f55\u8986\u76d6 datastack \u4e2d\u7684\u914d\u7f6e\u3002","source":"@site/docs/core-concepts/common-configuration-mechanisms/overrides.md","sourceDirName":"core-concepts/common-configuration-mechanisms","slug":"/core-concepts/common-configuration-mechanisms/overrides","permalink":"/docs/core-concepts/common-configuration-mechanisms/overrides","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/common-configuration-mechanisms/overrides.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u5feb\u901f\u5f00\u59cb","permalink":"/docs/quick-start/installation"},"next":{"title":"\u89d2\u8272\u548c\u89d2\u8272\u7ec4","permalink":"/docs/core-concepts/common-configuration-mechanisms/roles-and-role-groups"}}');var r=s(4848),d=s(8453);const a={},c="\u9ad8\u7ea7\uff1a \u914d\u7f6e\u8986\u76d6",i={},t=[{value:"\u914d\u7f6e\u8986\u76d6",id:"\u914d\u7f6e\u8986\u76d6",level:2},{value:"\u73af\u5883\u53d8\u91cf\u8986\u76d6",id:"\u73af\u5883\u53d8\u91cf\u8986\u76d6",level:2},{value:"\u547d\u4ee4\u884c\u53c2\u6570\u8986\u76d6",id:"\u547d\u4ee4\u884c\u53c2\u6570\u8986\u76d6",level:2},{value:"pod \u6a21\u677f\u8986\u76d6",id:"pod-\u6a21\u677f\u8986\u76d6",level:2}];function l(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,d.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"\u9ad8\u7ea7-\u914d\u7f6e\u8986\u76d6",children:"\u9ad8\u7ea7\uff1a \u914d\u7f6e\u8986\u76d6"})}),"\n",(0,r.jsx)(n.p,{children:"\u4e3a\u4e86 datastack \u4e2d\u6240\u6709\u4ea7\u54c1\u80fd\u5feb\u901f\u5b89\u5168\u7684\u8fd0\u884c\uff0c\u6240\u6709\u4ea7\u54c1\u90fd\u63d0\u4f9b\u4e86\u76f8\u5e94\u7684\u9ed8\u8ba4\u914d\u7f6e\u3002\u4f46\u662f\uff0c\u6709\u65f6\u5019\u4f60\u53ef\u80fd\u9700\u8981\u8986\u76d6\u8fd9\u4e9b\u9ed8\u8ba4\u914d\u7f6e\u3002\u8fd9\u4e2a\u6587\u6863\u5c06\u4f1a\u4ecb\u7ecd\u5982\u4f55\u8986\u76d6 datastack \u4e2d\u7684\u914d\u7f6e\u3002"}),"\n",(0,r.jsx)(n.p,{children:"\u6240\u6709\u4ea7\u54c1\u90fd\u652f\u6301\u8986\u76d6\u673a\u5236\uff0c\u4ee5\u63d0\u4f9b\u7b80\u5355\u7075\u6d3b\u7684\u65b9\u5f0f\u66f4\u6539\u7a0b\u5e8f\u914d\u7f6e\uff0c\u73af\u5883\u53d8\u91cf\u548c operator \u914d\u7f6e\u3002"}),"\n",(0,r.jsx)(n.h2,{id:"\u914d\u7f6e\u8986\u76d6",children:"\u914d\u7f6e\u8986\u76d6"}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 ",(0,r.jsx)(n.code,{children:"configOverrides"})," \u5b57\u6bb5\u8986\u76d6\u9ed8\u8ba4\u914d\u7f6e\u3002"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.kubedoop.dev/v1alpha1\nkind: HdfsCluster\nmetadata:\n labels:\n app.kubernetes.io/name: hdfscluster\n app.kubernetes.io/instance: hdfscluster-sample\n app.kubernetes.io/part-of: hdfs-operator\n app.kubernetes.io/managed-by: kustomize\n app.kubernetes.io/created-by: hdfs-operator\n name: hdfscluster-sample\nspec:\n image:\n repository: qury.io/zncdata/hadoop\n tag: 3.3.4\n clusterConfig:\n zookeeperDiscoveryZNode: sample-hdfs\n nameNode:\n configOverrides:\n hdfs-site.xml:\n fs.trash.interval: "5"\n roleGroups:\n default:\n replicas: 2\n configOverrides:\n hdfs-site.xml:\n dfs.namenode.num.checkpoints.retained: "3"\n'})}),"\n",(0,r.jsx)(n.p,{children:"\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\uff1a"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["namenode \u7684 ",(0,r.jsx)(n.code,{children:"hdfs-site.xml"})," \u914d\u7f6e\u8986\u76d6\u4e86 ",(0,r.jsx)(n.code,{children:"fs.trash.interval"})," \u4e3a 5\u3002"]}),"\n",(0,r.jsxs)(n.li,{children:["namenode \u7684\u89d2\u8272\u7ec4 ",(0,r.jsx)(n.code,{children:"default"})," \u7684 ",(0,r.jsx)(n.code,{children:"hdfs-site.xml"})," \u914d\u7f6e\u8986\u76d6\u4e86 ",(0,r.jsx)(n.code,{children:"dfs.namenode.num.checkpoints.retained"})," \u4e3a 3\u3002"]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"\u73af\u5883\u53d8\u91cf\u8986\u76d6",children:"\u73af\u5883\u53d8\u91cf\u8986\u76d6"}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 ",(0,r.jsx)(n.code,{children:"envOverrides"})," \u5b57\u6bb5\u8986\u76d6\u9ed8\u8ba4\u73af\u5883\u53d8\u91cf\u3002"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.kubedoop.dev/v1alpha1\nkind: HdfsCluster\nmetadata:\n labels:\n app.kubernetes.io/name: hdfscluster\n app.kubernetes.io/instance: hdfscluster-sample\n app.kubernetes.io/part-of: hdfs-operator\n app.kubernetes.io/managed-by: kustomize\n app.kubernetes.io/created-by: hdfs-operator\n name: hdfscluster-sample\nspec:\n image:\n repository: qury.io/zncdata/hadoop\n tag: 3.3.4\n clusterConfig:\n zookeeperDiscoveryZNode: sample-hdfs\n nameNode:\n configOverrides:\n hdfs-site.xml:\n fs.trash.interval: "5"\n roleGroups:\n default:\n replicas: 2\n envOverrides:\n FOO: "bar"\n'})}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7\u5728 namenode \u7684\u89d2\u8272\u7ec4 ",(0,r.jsx)(n.code,{children:"default"})," \u4e2d\u6dfb\u52a0 ",(0,r.jsx)(n.code,{children:"envOverrides"})," \u5b57\u6bb5\uff0c\u6211\u4eec\u5c06\u73af\u5883\u53d8\u91cf ",(0,r.jsx)(n.code,{children:"FOO"})," \u7684\u503c\u8986\u76d6\u4e3a ",(0,r.jsx)(n.code,{children:"bar"}),"\u3002"]}),"\n",(0,r.jsx)(n.h2,{id:"\u547d\u4ee4\u884c\u53c2\u6570\u8986\u76d6",children:"\u547d\u4ee4\u884c\u53c2\u6570\u8986\u76d6"}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 ",(0,r.jsx)(n.code,{children:"commandOverrides"})," \u5b57\u6bb5\u8986\u76d6\u9ed8\u8ba4\u547d\u4ee4\u884c\u53c2\u6570\u3002"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.kubedoop.dev/v1alpha1\nkind: HdfsCluster\nmetadata:\n labels:\n app.kubernetes.io/name: hdfscluster\n app.kubernetes.io/instance: hdfscluster-sample\n app.kubernetes.io/part-of: hdfs-operator\n app.kubernetes.io/managed-by: kustomize\n app.kubernetes.io/created-by: hdfs-operator\n name: hdfscluster-sample\nspec:\n image:\n repository: qury.io/zncdata/hadoop\n tag: 3.3.4\n clusterConfig:\n zookeeperDiscoveryZNode: sample-hdfs\n nameNode:\n roleGroups:\n default:\n replicas: 2\n commandOverrides:\n - "-Dfoo=bar"\n'})}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7\u5728 namenode \u7684\u89d2\u8272\u7ec4 ",(0,r.jsx)(n.code,{children:"default"})," \u4e2d\u6dfb\u52a0 ",(0,r.jsx)(n.code,{children:"commandOverrides"})," \u5b57\u6bb5\uff0c\u6211\u4eec\u5c06\u547d\u4ee4\u884c\u53c2\u6570 ",(0,r.jsx)(n.code,{children:"-Dfoo=bar"})," \u6dfb\u52a0\u5230 namenode \u7684\u542f\u52a8\u547d\u4ee4\u4e2d\u3002"]}),"\n",(0,r.jsx)(n.h2,{id:"pod-\u6a21\u677f\u8986\u76d6",children:"pod \u6a21\u677f\u8986\u76d6"}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 ",(0,r.jsx)(n.code,{children:"podTemplateOverrides"})," \u5b57\u6bb5\u8986\u76d6\u9ed8\u8ba4 pod \u6a21\u677f\u3002"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.kubedoop.dev/v1alpha1\nkind: HdfsCluster\nmetadata:\n labels:\n app.kubernetes.io/name: hdfscluster\n app.kubernetes.io/instance: hdfscluster-sample\n app.kubernetes.io/part-of: hdfs-operator\n app.kubernetes.io/managed-by: kustomize\n app.kubernetes.io/created-by: hdfs-operator\n name: hdfscluster-sample\nspec:\n image:\n repository: qury.io/zncdata/hadoop\n tag: 3.3.4\n clusterConfig:\n zookeeperDiscoveryZNode: sample-hdfs\n nameNode:\n podOverrides:\n spec:\n tolerations:\n - key: "key"\n operator: "Equal"\n value: "value"\n effect: "NoSchedule"\n roleGroups:\n default:\n replicas: 2\n podOverrides:\n metadata:\n labels:\n foo: bar\n'})}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"podOverrides"})," \u662f\u901a\u8fc7 ",(0,r.jsx)(n.code,{children:"PodTemplateSpec"})," \u6765\u8986\u76d6\u9ed8\u8ba4 pod \u6a21\u677f\u7684\u5b57\u6bb5\u3002\u5408\u6cd5\u7684 ",(0,r.jsx)(n.code,{children:"PodTemplateSpec"})," \u914d\u7f6e\u90fd\u53ef\u4ee5\u5728 ",(0,r.jsx)(n.code,{children:"podOverrides"})," \u4e2d\u4f7f\u7528\u3002"]}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u4e3a namenode \u89d2\u8272\u589e\u52a0\u4e86 ",(0,r.jsx)(n.code,{children:"tolerations"})," \uff0c\u6240\u6709 namenode \u7684\u89d2\u8272\u7ec4\u90fd\u4f1a\u7ee7\u627f\u8fd9\u4e2a ",(0,r.jsx)(n.code,{children:"tolerations"}),"\u3002\u540c\u65f6\uff0c\u4e3a namenode \u7684\u89d2\u8272\u7ec4 ",(0,r.jsx)(n.code,{children:"default"})," \u6dfb\u52a0\u4e86 ",(0,r.jsx)(n.code,{children:"metadata.labels"})," \u5b57\u6bb5\uff0c\u6240\u6709 namenode \u7684\u89d2\u8272\u7ec4\u90fd\u4f1a\u7ee7\u627f\u8fd9\u4e2a ",(0,r.jsx)(n.code,{children:"metadata.labels"}),"\u3002"]}),"\n",(0,r.jsx)(n.p,{children:"pod \u7684\u914d\u7f6e\u8986\u76d6\u7ea7\u522b\u5982\u4e0b(\u7531\u4f4e\u5230\u9ad8)\uff1a"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"operator \u751f\u6210\u7684 PodTemplateSpec"}),"\n",(0,r.jsx)(n.li,{children:"\u89d2\u8272\u7ea7\u522b\u7684 PodTemplateSpec"}),"\n",(0,r.jsx)(n.li,{children:"\u89d2\u8272\u7ec4\u7ea7\u522b\u7684 PodTemplateSpec"}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,d.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>a,x:()=>c});var o=s(6540);const r={},d=o.createContext(r);function a(e){const n=o.useContext(d);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),o.createElement(d.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/84d07bab.aaacf52f.js b/assets/js/84d07bab.aaacf52f.js deleted file mode 100644 index 5409bde..0000000 --- a/assets/js/84d07bab.aaacf52f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[781],{378:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>t,contentTitle:()=>c,default:()=>p,frontMatter:()=>d,metadata:()=>o,toc:()=>i});const o=JSON.parse('{"id":"core-concepts/common-configuration-mechanisms/overrides","title":"\u9ad8\u7ea7\uff1a \u914d\u7f6e\u8986\u76d6","description":"\u4e3a\u4e86 datastack \u4e2d\u6240\u6709\u4ea7\u54c1\u80fd\u5feb\u901f\u5b89\u5168\u7684\u8fd0\u884c\uff0c\u6240\u6709\u4ea7\u54c1\u90fd\u63d0\u4f9b\u4e86\u76f8\u5e94\u7684\u9ed8\u8ba4\u914d\u7f6e\u3002\u4f46\u662f\uff0c\u6709\u65f6\u5019\u4f60\u53ef\u80fd\u9700\u8981\u8986\u76d6\u8fd9\u4e9b\u9ed8\u8ba4\u914d\u7f6e\u3002\u8fd9\u4e2a\u6587\u6863\u5c06\u4f1a\u4ecb\u7ecd\u5982\u4f55\u8986\u76d6 datastack \u4e2d\u7684\u914d\u7f6e\u3002","source":"@site/docs/core-concepts/common-configuration-mechanisms/overrides.md","sourceDirName":"core-concepts/common-configuration-mechanisms","slug":"/core-concepts/common-configuration-mechanisms/overrides","permalink":"/docs/core-concepts/common-configuration-mechanisms/overrides","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/common-configuration-mechanisms/overrides.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u5feb\u901f\u5f00\u59cb","permalink":"/docs/quick-start/installation"},"next":{"title":"\u89d2\u8272\u548c\u89d2\u8272\u7ec4","permalink":"/docs/core-concepts/common-configuration-mechanisms/roles-and-role-groups"}}');var r=s(4848),a=s(8453);const d={},c="\u9ad8\u7ea7\uff1a \u914d\u7f6e\u8986\u76d6",t={},i=[{value:"\u914d\u7f6e\u8986\u76d6",id:"\u914d\u7f6e\u8986\u76d6",level:2},{value:"\u73af\u5883\u53d8\u91cf\u8986\u76d6",id:"\u73af\u5883\u53d8\u91cf\u8986\u76d6",level:2},{value:"\u547d\u4ee4\u884c\u53c2\u6570\u8986\u76d6",id:"\u547d\u4ee4\u884c\u53c2\u6570\u8986\u76d6",level:2},{value:"pod \u6a21\u677f\u8986\u76d6",id:"pod-\u6a21\u677f\u8986\u76d6",level:2}];function l(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"\u9ad8\u7ea7-\u914d\u7f6e\u8986\u76d6",children:"\u9ad8\u7ea7\uff1a \u914d\u7f6e\u8986\u76d6"})}),"\n",(0,r.jsx)(n.p,{children:"\u4e3a\u4e86 datastack \u4e2d\u6240\u6709\u4ea7\u54c1\u80fd\u5feb\u901f\u5b89\u5168\u7684\u8fd0\u884c\uff0c\u6240\u6709\u4ea7\u54c1\u90fd\u63d0\u4f9b\u4e86\u76f8\u5e94\u7684\u9ed8\u8ba4\u914d\u7f6e\u3002\u4f46\u662f\uff0c\u6709\u65f6\u5019\u4f60\u53ef\u80fd\u9700\u8981\u8986\u76d6\u8fd9\u4e9b\u9ed8\u8ba4\u914d\u7f6e\u3002\u8fd9\u4e2a\u6587\u6863\u5c06\u4f1a\u4ecb\u7ecd\u5982\u4f55\u8986\u76d6 datastack \u4e2d\u7684\u914d\u7f6e\u3002"}),"\n",(0,r.jsx)(n.p,{children:"\u6240\u6709\u4ea7\u54c1\u90fd\u652f\u6301\u8986\u76d6\u673a\u5236\uff0c\u4ee5\u63d0\u4f9b\u7b80\u5355\u7075\u6d3b\u7684\u65b9\u5f0f\u66f4\u6539\u7a0b\u5e8f\u914d\u7f6e\uff0c\u73af\u5883\u53d8\u91cf\u548c operator \u914d\u7f6e\u3002"}),"\n",(0,r.jsx)(n.h2,{id:"\u914d\u7f6e\u8986\u76d6",children:"\u914d\u7f6e\u8986\u76d6"}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 ",(0,r.jsx)(n.code,{children:"configOverrides"})," \u5b57\u6bb5\u8986\u76d6\u9ed8\u8ba4\u914d\u7f6e\u3002"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.zncdata.dev/v1alpha1\nkind: HdfsCluster\nmetadata:\n labels:\n app.kubernetes.io/name: hdfscluster\n app.kubernetes.io/instance: hdfscluster-sample\n app.kubernetes.io/part-of: hdfs-operator\n app.kubernetes.io/managed-by: kustomize\n app.kubernetes.io/created-by: hdfs-operator\n name: hdfscluster-sample\nspec:\n image:\n repository: qury.io/zncdata/hadoop\n tag: 3.3.4\n clusterConfig:\n zookeeperDiscoveryZNode: sample-hdfs\n nameNode:\n configOverrides:\n hdfs-site.xml:\n fs.trash.interval: "5"\n roleGroups:\n default:\n replicas: 2\n configOverrides:\n hdfs-site.xml:\n dfs.namenode.num.checkpoints.retained: "3"\n'})}),"\n",(0,r.jsx)(n.p,{children:"\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\uff1a"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["namenode \u7684 ",(0,r.jsx)(n.code,{children:"hdfs-site.xml"})," \u914d\u7f6e\u8986\u76d6\u4e86 ",(0,r.jsx)(n.code,{children:"fs.trash.interval"})," \u4e3a 5\u3002"]}),"\n",(0,r.jsxs)(n.li,{children:["namenode \u7684\u89d2\u8272\u7ec4 ",(0,r.jsx)(n.code,{children:"default"})," \u7684 ",(0,r.jsx)(n.code,{children:"hdfs-site.xml"})," \u914d\u7f6e\u8986\u76d6\u4e86 ",(0,r.jsx)(n.code,{children:"dfs.namenode.num.checkpoints.retained"})," \u4e3a 3\u3002"]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"\u73af\u5883\u53d8\u91cf\u8986\u76d6",children:"\u73af\u5883\u53d8\u91cf\u8986\u76d6"}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 ",(0,r.jsx)(n.code,{children:"envOverrides"})," \u5b57\u6bb5\u8986\u76d6\u9ed8\u8ba4\u73af\u5883\u53d8\u91cf\u3002"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.zncdata.dev/v1alpha1\nkind: HdfsCluster\nmetadata:\n labels:\n app.kubernetes.io/name: hdfscluster\n app.kubernetes.io/instance: hdfscluster-sample\n app.kubernetes.io/part-of: hdfs-operator\n app.kubernetes.io/managed-by: kustomize\n app.kubernetes.io/created-by: hdfs-operator\n name: hdfscluster-sample\nspec:\n image:\n repository: qury.io/zncdata/hadoop\n tag: 3.3.4\n clusterConfig:\n zookeeperDiscoveryZNode: sample-hdfs\n nameNode:\n configOverrides:\n hdfs-site.xml:\n fs.trash.interval: "5"\n roleGroups:\n default:\n replicas: 2\n envOverrides:\n FOO: "bar"\n'})}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7\u5728 namenode \u7684\u89d2\u8272\u7ec4 ",(0,r.jsx)(n.code,{children:"default"})," \u4e2d\u6dfb\u52a0 ",(0,r.jsx)(n.code,{children:"envOverrides"})," \u5b57\u6bb5\uff0c\u6211\u4eec\u5c06\u73af\u5883\u53d8\u91cf ",(0,r.jsx)(n.code,{children:"FOO"})," \u7684\u503c\u8986\u76d6\u4e3a ",(0,r.jsx)(n.code,{children:"bar"}),"\u3002"]}),"\n",(0,r.jsx)(n.h2,{id:"\u547d\u4ee4\u884c\u53c2\u6570\u8986\u76d6",children:"\u547d\u4ee4\u884c\u53c2\u6570\u8986\u76d6"}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 ",(0,r.jsx)(n.code,{children:"commandOverrides"})," \u5b57\u6bb5\u8986\u76d6\u9ed8\u8ba4\u547d\u4ee4\u884c\u53c2\u6570\u3002"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.zncdata.dev/v1alpha1\nkind: HdfsCluster\nmetadata:\n labels:\n app.kubernetes.io/name: hdfscluster\n app.kubernetes.io/instance: hdfscluster-sample\n app.kubernetes.io/part-of: hdfs-operator\n app.kubernetes.io/managed-by: kustomize\n app.kubernetes.io/created-by: hdfs-operator\n name: hdfscluster-sample\nspec:\n image:\n repository: qury.io/zncdata/hadoop\n tag: 3.3.4\n clusterConfig:\n zookeeperDiscoveryZNode: sample-hdfs\n nameNode:\n roleGroups:\n default:\n replicas: 2\n commandOverrides:\n - "-Dfoo=bar"\n'})}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7\u5728 namenode \u7684\u89d2\u8272\u7ec4 ",(0,r.jsx)(n.code,{children:"default"})," \u4e2d\u6dfb\u52a0 ",(0,r.jsx)(n.code,{children:"commandOverrides"})," \u5b57\u6bb5\uff0c\u6211\u4eec\u5c06\u547d\u4ee4\u884c\u53c2\u6570 ",(0,r.jsx)(n.code,{children:"-Dfoo=bar"})," \u6dfb\u52a0\u5230 namenode \u7684\u542f\u52a8\u547d\u4ee4\u4e2d\u3002"]}),"\n",(0,r.jsx)(n.h2,{id:"pod-\u6a21\u677f\u8986\u76d6",children:"pod \u6a21\u677f\u8986\u76d6"}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 ",(0,r.jsx)(n.code,{children:"podTemplateOverrides"})," \u5b57\u6bb5\u8986\u76d6\u9ed8\u8ba4 pod \u6a21\u677f\u3002"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.zncdata.dev/v1alpha1\nkind: HdfsCluster\nmetadata:\n labels:\n app.kubernetes.io/name: hdfscluster\n app.kubernetes.io/instance: hdfscluster-sample\n app.kubernetes.io/part-of: hdfs-operator\n app.kubernetes.io/managed-by: kustomize\n app.kubernetes.io/created-by: hdfs-operator\n name: hdfscluster-sample\nspec:\n image:\n repository: qury.io/zncdata/hadoop\n tag: 3.3.4\n clusterConfig:\n zookeeperDiscoveryZNode: sample-hdfs\n nameNode:\n podOverrides:\n spec:\n tolerations:\n - key: "key"\n operator: "Equal"\n value: "value"\n effect: "NoSchedule"\n roleGroups:\n default:\n replicas: 2\n podOverrides:\n metadata:\n labels:\n foo: bar\n'})}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"podOverrides"})," \u662f\u901a\u8fc7 ",(0,r.jsx)(n.code,{children:"PodTemplateSpec"})," \u6765\u8986\u76d6\u9ed8\u8ba4 pod \u6a21\u677f\u7684\u5b57\u6bb5\u3002\u5408\u6cd5\u7684 ",(0,r.jsx)(n.code,{children:"PodTemplateSpec"})," \u914d\u7f6e\u90fd\u53ef\u4ee5\u5728 ",(0,r.jsx)(n.code,{children:"podOverrides"})," \u4e2d\u4f7f\u7528\u3002"]}),"\n",(0,r.jsxs)(n.p,{children:["\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u4e3a namenode \u89d2\u8272\u589e\u52a0\u4e86 ",(0,r.jsx)(n.code,{children:"tolerations"})," \uff0c\u6240\u6709 namenode \u7684\u89d2\u8272\u7ec4\u90fd\u4f1a\u7ee7\u627f\u8fd9\u4e2a ",(0,r.jsx)(n.code,{children:"tolerations"}),"\u3002\u540c\u65f6\uff0c\u4e3a namenode \u7684\u89d2\u8272\u7ec4 ",(0,r.jsx)(n.code,{children:"default"})," \u6dfb\u52a0\u4e86 ",(0,r.jsx)(n.code,{children:"metadata.labels"})," \u5b57\u6bb5\uff0c\u6240\u6709 namenode \u7684\u89d2\u8272\u7ec4\u90fd\u4f1a\u7ee7\u627f\u8fd9\u4e2a ",(0,r.jsx)(n.code,{children:"metadata.labels"}),"\u3002"]}),"\n",(0,r.jsx)(n.p,{children:"pod \u7684\u914d\u7f6e\u8986\u76d6\u7ea7\u522b\u5982\u4e0b(\u7531\u4f4e\u5230\u9ad8)\uff1a"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"operator \u751f\u6210\u7684 PodTemplateSpec"}),"\n",(0,r.jsx)(n.li,{children:"\u89d2\u8272\u7ea7\u522b\u7684 PodTemplateSpec"}),"\n",(0,r.jsx)(n.li,{children:"\u89d2\u8272\u7ec4\u7ea7\u522b\u7684 PodTemplateSpec"}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>d,x:()=>c});var o=s(6540);const r={},a=o.createContext(r);function d(e){const n=o.useContext(a);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),o.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8e7f26f0.58b263b7.js b/assets/js/8e7f26f0.3befa4b5.js similarity index 95% rename from assets/js/8e7f26f0.58b263b7.js rename to assets/js/8e7f26f0.3befa4b5.js index 3ca97bc..e8e383c 100644 --- a/assets/js/8e7f26f0.58b263b7.js +++ b/assets/js/8e7f26f0.3befa4b5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[103],{1063:(t,e,n)=>{n.r(e),n.d(e,{assets:()=>a,contentTitle:()=>i,default:()=>l,frontMatter:()=>c,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"quick-start/introduction","title":"\u4ecb\u7ecd","description":"","source":"@site/docs/quick-start/introduction.md","sourceDirName":"quick-start","slug":"/","permalink":"/docs/","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/quick-start/introduction.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{"slug":"/"},"sidebar":"docs","next":{"title":"\u5feb\u901f\u5f00\u59cb","permalink":"/docs/quick-start/installation"}}');var s=n(4848),r=n(8453);const c={slug:"/"},i="\u4ecb\u7ecd",a={},d=[];function u(t){const e={h1:"h1",header:"header",...(0,r.R)(),...t.components};return(0,s.jsx)(e.header,{children:(0,s.jsx)(e.h1,{id:"\u4ecb\u7ecd",children:"\u4ecb\u7ecd"})})}function l(t={}){const{wrapper:e}={...(0,r.R)(),...t.components};return e?(0,s.jsx)(e,{...t,children:(0,s.jsx)(u,{...t})}):u(t)}},8453:(t,e,n)=>{n.d(e,{R:()=>c,x:()=>i});var o=n(6540);const s={},r=o.createContext(s);function c(t){const e=o.useContext(r);return o.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function i(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(s):t.components||s:c(t.components),o.createElement(r.Provider,{value:e},t.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[103],{1063:(t,e,n)=>{n.r(e),n.d(e,{assets:()=>a,contentTitle:()=>i,default:()=>l,frontMatter:()=>c,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"quick-start/introduction","title":"\u4ecb\u7ecd","description":"","source":"@site/docs/quick-start/introduction.md","sourceDirName":"quick-start","slug":"/","permalink":"/docs/","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/quick-start/introduction.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{"slug":"/"},"sidebar":"docs","next":{"title":"\u5feb\u901f\u5f00\u59cb","permalink":"/docs/quick-start/installation"}}');var s=n(4848),r=n(8453);const c={slug:"/"},i="\u4ecb\u7ecd",a={},d=[];function u(t){const e={h1:"h1",header:"header",...(0,r.R)(),...t.components};return(0,s.jsx)(e.header,{children:(0,s.jsx)(e.h1,{id:"\u4ecb\u7ecd",children:"\u4ecb\u7ecd"})})}function l(t={}){const{wrapper:e}={...(0,r.R)(),...t.components};return e?(0,s.jsx)(e,{...t,children:(0,s.jsx)(u,{...t})}):u(t)}},8453:(t,e,n)=>{n.d(e,{R:()=>c,x:()=>i});var o=n(6540);const s={},r=o.createContext(s);function c(t){const e=o.useContext(r);return o.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function i(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(s):t.components||s:c(t.components),o.createElement(r.Provider,{value:e},t.children)}}}]); \ No newline at end of file diff --git a/assets/js/92a8db16.4b2abefb.js b/assets/js/92a8db16.d7ab7f97.js similarity index 96% rename from assets/js/92a8db16.4b2abefb.js rename to assets/js/92a8db16.d7ab7f97.js index f5d1c08..628e368 100644 --- a/assets/js/92a8db16.4b2abefb.js +++ b/assets/js/92a8db16.d7ab7f97.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[738],{7431:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>p,frontMatter:()=>n,metadata:()=>c,toc:()=>i});const c=JSON.parse('{"id":"core-concepts/resources/s3","title":"S3","description":"","source":"@site/docs/core-concepts/resources/s3.md","sourceDirName":"core-concepts/resources","slug":"/core-concepts/resources/s3","permalink":"/docs/core-concepts/resources/s3","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/resources/s3.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u8d44\u6e90\u7ba1\u7406","permalink":"/docs/core-concepts/resources/resource-manage"},"next":{"title":"\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0","permalink":"/docs/core-concepts/connectivity/service-discovery"}}');var o=s(4848),r=s(8453);const n={},a="S3",d={},i=[];function u(e){const t={h1:"h1",header:"header",...(0,r.R)(),...e.components};return(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"s3",children:"S3"})})}function p(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},8453:(e,t,s)=>{s.d(t,{R:()=>n,x:()=>a});var c=s(6540);const o={},r=c.createContext(o);function n(e){const t=c.useContext(r);return c.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:n(e.components),c.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[738],{7431:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>p,frontMatter:()=>n,metadata:()=>c,toc:()=>i});const c=JSON.parse('{"id":"core-concepts/resources/s3","title":"S3","description":"","source":"@site/docs/core-concepts/resources/s3.md","sourceDirName":"core-concepts/resources","slug":"/core-concepts/resources/s3","permalink":"/docs/core-concepts/resources/s3","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/resources/s3.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u8d44\u6e90\u7ba1\u7406","permalink":"/docs/core-concepts/resources/resource-manage"},"next":{"title":"\u670d\u52a1\u914d\u7f6e\u81ea\u52a8\u53d1\u73b0","permalink":"/docs/core-concepts/connectivity/service-discovery"}}');var o=s(4848),r=s(8453);const n={},a="S3",d={},i=[];function u(e){const t={h1:"h1",header:"header",...(0,r.R)(),...e.components};return(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"s3",children:"S3"})})}function p(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},8453:(e,t,s)=>{s.d(t,{R:()=>n,x:()=>a});var c=s(6540);const o={},r=c.createContext(o);function n(e){const t=c.useContext(r);return c.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:n(e.components),c.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/95a5a98c.c188bc73.js b/assets/js/95a5a98c.71b8d287.js similarity index 69% rename from assets/js/95a5a98c.c188bc73.js rename to assets/js/95a5a98c.71b8d287.js index 374030a..00d6552 100644 --- a/assets/js/95a5a98c.c188bc73.js +++ b/assets/js/95a5a98c.71b8d287.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[314],{2795:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>i,contentTitle:()=>c,default:()=>p,frontMatter:()=>a,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"core-concepts/common-configuration-mechanisms/roles-and-role-groups","title":"\u89d2\u8272\u548c\u89d2\u8272\u7ec4","description":"\u5728\u8f6f\u4ef6\u7a0b\u5e8f\u4e2d\uff0c\u4e00\u4e2a\u7a0b\u5e8f\u4f1a\u7531\u591a\u4e2a\u4e0d\u540c\u7684\u8fdb\u7a0b\u7ec4\u6210\uff0c\u6bcf\u4e2a\u8fdb\u7a0b\u90fd\u6709\u81ea\u5df1\u7684\u804c\u8d23\u3002\u6bcf\u4e00\u4e2a\u72ec\u7acb\u7684\u8fdb\u7a0b\u5b9a\u4e49\u4e3a\u89d2\u8272\uff0c\u89d2\u8272\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\uff0c\u4e00\u4e2a\u89d2\u8272\u7684\u591a\u526f\u672c\u88ab\u79f0\u4e3a\u89d2\u8272\u7ec4\u3002\u89d2\u8272\u7ec4\u662f\u4e00\u4e2a\u903b\u8f91\u6982\u5ff5\uff0c\u5b83\u4ee3\u8868\u4e86\u4e00\u4e2a\u89d2\u8272\u7684\u591a\u4e2a\u5b9e\u4f8b\u3002\u89d2\u8272\u7ec4\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u63d0\u4f9b\u9ad8\u53ef\u7528\u6027\u548c\u5bb9\u9519\u80fd\u529b\u3002","source":"@site/docs/core-concepts/common-configuration-mechanisms/roles-and-role-groups.md","sourceDirName":"core-concepts/common-configuration-mechanisms","slug":"/core-concepts/common-configuration-mechanisms/roles-and-role-groups","permalink":"/docs/core-concepts/common-configuration-mechanisms/roles-and-role-groups","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/common-configuration-mechanisms/roles-and-role-groups.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{"title":"\u89d2\u8272\u548c\u89d2\u8272\u7ec4"},"sidebar":"docs","previous":{"title":"\u9ad8\u7ea7\uff1a \u914d\u7f6e\u8986\u76d6","permalink":"/docs/core-concepts/common-configuration-mechanisms/overrides"},"next":{"title":"Database","permalink":"/docs/core-concepts/resources/database"}}');var r=o(4848),t=o(8453);const a={title:"\u89d2\u8272\u548c\u89d2\u8272\u7ec4"},c=void 0,i={},d=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:2}];function l(e){const n={code:"code",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.p,{children:"\u5728\u8f6f\u4ef6\u7a0b\u5e8f\u4e2d\uff0c\u4e00\u4e2a\u7a0b\u5e8f\u4f1a\u7531\u591a\u4e2a\u4e0d\u540c\u7684\u8fdb\u7a0b\u7ec4\u6210\uff0c\u6bcf\u4e2a\u8fdb\u7a0b\u90fd\u6709\u81ea\u5df1\u7684\u804c\u8d23\u3002\u6bcf\u4e00\u4e2a\u72ec\u7acb\u7684\u8fdb\u7a0b\u5b9a\u4e49\u4e3a\u89d2\u8272\uff0c\u89d2\u8272\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\uff0c\u4e00\u4e2a\u89d2\u8272\u7684\u591a\u526f\u672c\u88ab\u79f0\u4e3a\u89d2\u8272\u7ec4\u3002\u89d2\u8272\u7ec4\u662f\u4e00\u4e2a\u903b\u8f91\u6982\u5ff5\uff0c\u5b83\u4ee3\u8868\u4e86\u4e00\u4e2a\u89d2\u8272\u7684\u591a\u4e2a\u5b9e\u4f8b\u3002\u89d2\u8272\u7ec4\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u63d0\u4f9b\u9ad8\u53ef\u7528\u6027\u548c\u5bb9\u9519\u80fd\u529b\u3002"}),"\n",(0,r.jsx)(n.p,{children:"\u4e00\u4e2a\u89d2\u8272\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u60c5\u51b5\u5b9a\u4e49\u591a\u4e2a\u89d2\u8272\u7ec4\u3002\u4f8b\u5982\uff0c\u4e00\u4e2a\u89d2\u8272\u53ef\u4ee5\u6709\u4e24\u4e2a\u89d2\u8272\u7ec4\uff0c\u4e00\u4e2a\u89d2\u8272\u7ec4\u5728\u673a\u623fA\uff0c\u53e6\u4e00\u4e2a\u89d2\u8272\u7ec4\u5728\u673a\u623fB\u3002\u8fd9\u6837\uff0c\u5373\u4f7f\u673a\u623fA\u53d1\u751f\u6545\u969c\uff0c\u673a\u623fB\u4e2d\u7684\u89d2\u8272\u7ec4\u4ecd\u7136\u53ef\u4ee5\u7ee7\u7eed\u5de5\u4f5c\u3002\u6216\u8005\u6839\u636e\u4e0d\u540c\u8d44\u6e90\u7684\u4e0d\u540c\u9700\u6c42\uff0c\u4e00\u4e2a\u89d2\u8272\u53ef\u4ee5\u6709\u591a\u4e2a\u89d2\u8272\u7ec4\uff0c\u4e00\u4e2a\u89d2\u8272\u7ec4\u4f7f\u7528SSD\uff0c\u53e6\u4e00\u4e2a\u89d2\u8272\u7ec4\u4f7f\u7528HDD\u3002"}),"\n",(0,r.jsx)(n.p,{children:"\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u53ef\u4ee5\u6ee1\u8db3\u4e00\u4e0b\u9700\u6c42\uff1a"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"\u914d\u7f6e\uff1a\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u4e3a\u89d2\u8272\u5b9a\u4e49\u4e0d\u540c\u914d\u7f6e\u7684\u89d2\u8272\u7ec4\u3002\u5982\uff1a\u5185\u5b58\uff0cCPU\uff0c\u78c1\u76d8\uff0c\u6216\u8005\u7a0b\u5e8f\u7684\u914d\u7f6e\u3002"}),"\n",(0,r.jsx)(n.li,{children:"\u8c03\u5ea6\uff1a\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u4e3a\u89d2\u8272\u5b9a\u4e49\u4e0d\u540c\u8c03\u5ea6\u7684\u89d2\u8272\u7ec4\u3002\u5982\uff1a\u673a\u623f\uff0c\u7f51\u7edc\uff0c\u6216\u8005\u8d44\u6e90\u7684\u8c03\u5ea6\u3002"}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,r.jsx)(n.p,{children:"\u4ee5 HDFS \u4e3a\u4f8b\uff0cHDFS \u6709\u591a\u4e2a\u89d2\u8272\uff0c\u5982 NameNode\uff0cDataNode\uff0cJournalNode\u3002\u5176\u4e2d\uff0cDataNode \u662f\u4e00\u4e2a\u89d2\u8272\uff0cDataNode \u7684\u591a\u4e2a\u5b9e\u4f8b\u7ec4\u6210\u4e00\u4e2a\u89d2\u8272\u7ec4\u3002NameNode \u4e5f\u662f\u4e00\u4e2a\u89d2\u8272\uff0cNameNode \u7684\u591a\u4e2a\u5b9e\u4f8b\u7ec4\u6210\u4e00\u4e2a\u89d2\u8272\u7ec4\u3002\u53ef\u4ee5\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u4e3a NameNode \u548c DataNode \u5b9a\u4e49\u4e0d\u540c\u914d\u7f6e\u7684\u89d2\u8272\u7ec4\u3002"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.zncdata.dev/v1alpha1\nkind: HdfsCluster\nmetadata:\n labels:\n app.kubernetes.io/name: hdfscluster\n app.kubernetes.io/instance: hdfscluster-sample\n app.kubernetes.io/part-of: hdfs-operator\n app.kubernetes.io/managed-by: kustomize\n app.kubernetes.io/created-by: hdfs-operator\n name: hdfscluster-sample\nspec:\n image:\n repository: qury.io/zncdata/hadoop\n tag: 3.3.4\n clusterConfig:\n zookeeperDiscoveryZNode: sample-hdfs\n nameNode:\n roleGroups:\n default:\n replicas: 2\n dataNode:\n roleGroups:\n default:\n replicas: 3\n config:\n resources:\n cpu:\n min: 1\n max: 2\n memory:\n limit: "3Gi"\n journalNode:\n roleGroups:\n default:\n replicas: 3\n'})}),"\n",(0,r.jsx)(n.p,{children:"\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\uff1a"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"\u4e00\u4e2a HDFS \u96c6\u7fa4\uff0c\u5305\u542b\u4e86 NameNode\uff0cDataNode\uff0cJournalNode \u4e09\u4e2a\u89d2\u8272\u3002"}),"\n",(0,r.jsx)(n.li,{children:"NameNode \u6709\u4e00\u4e2a\u89d2\u8272\u7ec4\uff0c\u5305\u542b\u4e24\u4e2a\u5b9e\u4f8b\u3002"}),"\n",(0,r.jsx)(n.li,{children:"DataNode \u6709\u4e00\u4e2a\u89d2\u8272\u7ec4\uff0c\u5305\u542b\u4e09\u4e2a\u5b9e\u4f8b\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u7684 CPU \u6700\u5c0f 1\uff0c\u6700\u5927 2\uff0c\u5185\u5b58\u9650\u5236 3Gi\u3002"}),"\n",(0,r.jsx)(n.li,{children:"JournalNode \u6709\u4e00\u4e2a\u89d2\u8272\u7ec4\uff0c\u5305\u542b\u4e09\u4e2a\u5b9e\u4f8b\u3002"}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8453:(e,n,o)=>{o.d(n,{R:()=>a,x:()=>c});var s=o(6540);const r={},t=s.createContext(r);function a(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[314],{2795:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>i,contentTitle:()=>c,default:()=>p,frontMatter:()=>a,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"core-concepts/common-configuration-mechanisms/roles-and-role-groups","title":"\u89d2\u8272\u548c\u89d2\u8272\u7ec4","description":"\u5728\u8f6f\u4ef6\u7a0b\u5e8f\u4e2d\uff0c\u4e00\u4e2a\u7a0b\u5e8f\u4f1a\u7531\u591a\u4e2a\u4e0d\u540c\u7684\u8fdb\u7a0b\u7ec4\u6210\uff0c\u6bcf\u4e2a\u8fdb\u7a0b\u90fd\u6709\u81ea\u5df1\u7684\u804c\u8d23\u3002\u6bcf\u4e00\u4e2a\u72ec\u7acb\u7684\u8fdb\u7a0b\u5b9a\u4e49\u4e3a\u89d2\u8272\uff0c\u89d2\u8272\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\uff0c\u4e00\u4e2a\u89d2\u8272\u7684\u591a\u526f\u672c\u88ab\u79f0\u4e3a\u89d2\u8272\u7ec4\u3002\u89d2\u8272\u7ec4\u662f\u4e00\u4e2a\u903b\u8f91\u6982\u5ff5\uff0c\u5b83\u4ee3\u8868\u4e86\u4e00\u4e2a\u89d2\u8272\u7684\u591a\u4e2a\u5b9e\u4f8b\u3002\u89d2\u8272\u7ec4\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u63d0\u4f9b\u9ad8\u53ef\u7528\u6027\u548c\u5bb9\u9519\u80fd\u529b\u3002","source":"@site/docs/core-concepts/common-configuration-mechanisms/roles-and-role-groups.md","sourceDirName":"core-concepts/common-configuration-mechanisms","slug":"/core-concepts/common-configuration-mechanisms/roles-and-role-groups","permalink":"/docs/core-concepts/common-configuration-mechanisms/roles-and-role-groups","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/common-configuration-mechanisms/roles-and-role-groups.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{"title":"\u89d2\u8272\u548c\u89d2\u8272\u7ec4"},"sidebar":"docs","previous":{"title":"\u9ad8\u7ea7\uff1a \u914d\u7f6e\u8986\u76d6","permalink":"/docs/core-concepts/common-configuration-mechanisms/overrides"},"next":{"title":"Database","permalink":"/docs/core-concepts/resources/database"}}');var r=o(4848),t=o(8453);const a={title:"\u89d2\u8272\u548c\u89d2\u8272\u7ec4"},c=void 0,i={},d=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:2}];function l(e){const n={code:"code",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.p,{children:"\u5728\u8f6f\u4ef6\u7a0b\u5e8f\u4e2d\uff0c\u4e00\u4e2a\u7a0b\u5e8f\u4f1a\u7531\u591a\u4e2a\u4e0d\u540c\u7684\u8fdb\u7a0b\u7ec4\u6210\uff0c\u6bcf\u4e2a\u8fdb\u7a0b\u90fd\u6709\u81ea\u5df1\u7684\u804c\u8d23\u3002\u6bcf\u4e00\u4e2a\u72ec\u7acb\u7684\u8fdb\u7a0b\u5b9a\u4e49\u4e3a\u89d2\u8272\uff0c\u89d2\u8272\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a\uff0c\u4e00\u4e2a\u89d2\u8272\u7684\u591a\u526f\u672c\u88ab\u79f0\u4e3a\u89d2\u8272\u7ec4\u3002\u89d2\u8272\u7ec4\u662f\u4e00\u4e2a\u903b\u8f91\u6982\u5ff5\uff0c\u5b83\u4ee3\u8868\u4e86\u4e00\u4e2a\u89d2\u8272\u7684\u591a\u4e2a\u5b9e\u4f8b\u3002\u89d2\u8272\u7ec4\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u63d0\u4f9b\u9ad8\u53ef\u7528\u6027\u548c\u5bb9\u9519\u80fd\u529b\u3002"}),"\n",(0,r.jsx)(n.p,{children:"\u4e00\u4e2a\u89d2\u8272\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u60c5\u51b5\u5b9a\u4e49\u591a\u4e2a\u89d2\u8272\u7ec4\u3002\u4f8b\u5982\uff0c\u4e00\u4e2a\u89d2\u8272\u53ef\u4ee5\u6709\u4e24\u4e2a\u89d2\u8272\u7ec4\uff0c\u4e00\u4e2a\u89d2\u8272\u7ec4\u5728\u673a\u623fA\uff0c\u53e6\u4e00\u4e2a\u89d2\u8272\u7ec4\u5728\u673a\u623fB\u3002\u8fd9\u6837\uff0c\u5373\u4f7f\u673a\u623fA\u53d1\u751f\u6545\u969c\uff0c\u673a\u623fB\u4e2d\u7684\u89d2\u8272\u7ec4\u4ecd\u7136\u53ef\u4ee5\u7ee7\u7eed\u5de5\u4f5c\u3002\u6216\u8005\u6839\u636e\u4e0d\u540c\u8d44\u6e90\u7684\u4e0d\u540c\u9700\u6c42\uff0c\u4e00\u4e2a\u89d2\u8272\u53ef\u4ee5\u6709\u591a\u4e2a\u89d2\u8272\u7ec4\uff0c\u4e00\u4e2a\u89d2\u8272\u7ec4\u4f7f\u7528SSD\uff0c\u53e6\u4e00\u4e2a\u89d2\u8272\u7ec4\u4f7f\u7528HDD\u3002"}),"\n",(0,r.jsx)(n.p,{children:"\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u53ef\u4ee5\u6ee1\u8db3\u4e00\u4e0b\u9700\u6c42\uff1a"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"\u914d\u7f6e\uff1a\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u4e3a\u89d2\u8272\u5b9a\u4e49\u4e0d\u540c\u914d\u7f6e\u7684\u89d2\u8272\u7ec4\u3002\u5982\uff1a\u5185\u5b58\uff0cCPU\uff0c\u78c1\u76d8\uff0c\u6216\u8005\u7a0b\u5e8f\u7684\u914d\u7f6e\u3002"}),"\n",(0,r.jsx)(n.li,{children:"\u8c03\u5ea6\uff1a\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u4e3a\u89d2\u8272\u5b9a\u4e49\u4e0d\u540c\u8c03\u5ea6\u7684\u89d2\u8272\u7ec4\u3002\u5982\uff1a\u673a\u623f\uff0c\u7f51\u7edc\uff0c\u6216\u8005\u8d44\u6e90\u7684\u8c03\u5ea6\u3002"}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,r.jsx)(n.p,{children:"\u4ee5 HDFS \u4e3a\u4f8b\uff0cHDFS \u6709\u591a\u4e2a\u89d2\u8272\uff0c\u5982 NameNode\uff0cDataNode\uff0cJournalNode\u3002\u5176\u4e2d\uff0cDataNode \u662f\u4e00\u4e2a\u89d2\u8272\uff0cDataNode \u7684\u591a\u4e2a\u5b9e\u4f8b\u7ec4\u6210\u4e00\u4e2a\u89d2\u8272\u7ec4\u3002NameNode \u4e5f\u662f\u4e00\u4e2a\u89d2\u8272\uff0cNameNode \u7684\u591a\u4e2a\u5b9e\u4f8b\u7ec4\u6210\u4e00\u4e2a\u89d2\u8272\u7ec4\u3002\u53ef\u4ee5\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u4e3a NameNode \u548c DataNode \u5b9a\u4e49\u4e0d\u540c\u914d\u7f6e\u7684\u89d2\u8272\u7ec4\u3002"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.kubedoop.dev/v1alpha1\nkind: HdfsCluster\nmetadata:\n labels:\n app.kubernetes.io/name: hdfscluster\n app.kubernetes.io/instance: hdfscluster-sample\n app.kubernetes.io/part-of: hdfs-operator\n app.kubernetes.io/managed-by: kustomize\n app.kubernetes.io/created-by: hdfs-operator\n name: hdfscluster-sample\nspec:\n image:\n repository: qury.io/zncdata/hadoop\n tag: 3.3.4\n clusterConfig:\n zookeeperDiscoveryZNode: sample-hdfs\n nameNode:\n roleGroups:\n default:\n replicas: 2\n dataNode:\n roleGroups:\n default:\n replicas: 3\n config:\n resources:\n cpu:\n min: 1\n max: 2\n memory:\n limit: "3Gi"\n journalNode:\n roleGroups:\n default:\n replicas: 3\n'})}),"\n",(0,r.jsx)(n.p,{children:"\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\uff1a"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"\u4e00\u4e2a HDFS \u96c6\u7fa4\uff0c\u5305\u542b\u4e86 NameNode\uff0cDataNode\uff0cJournalNode \u4e09\u4e2a\u89d2\u8272\u3002"}),"\n",(0,r.jsx)(n.li,{children:"NameNode \u6709\u4e00\u4e2a\u89d2\u8272\u7ec4\uff0c\u5305\u542b\u4e24\u4e2a\u5b9e\u4f8b\u3002"}),"\n",(0,r.jsx)(n.li,{children:"DataNode \u6709\u4e00\u4e2a\u89d2\u8272\u7ec4\uff0c\u5305\u542b\u4e09\u4e2a\u5b9e\u4f8b\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u7684 CPU \u6700\u5c0f 1\uff0c\u6700\u5927 2\uff0c\u5185\u5b58\u9650\u5236 3Gi\u3002"}),"\n",(0,r.jsx)(n.li,{children:"JournalNode \u6709\u4e00\u4e2a\u89d2\u8272\u7ec4\uff0c\u5305\u542b\u4e09\u4e2a\u5b9e\u4f8b\u3002"}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8453:(e,n,o)=>{o.d(n,{R:()=>a,x:()=>c});var s=o(6540);const r={},t=s.createContext(r);function a(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9c52442a.22722087.js b/assets/js/9c52442a.9ea40ec5.js similarity index 96% rename from assets/js/9c52442a.22722087.js rename to assets/js/9c52442a.9ea40ec5.js index d91128f..769ebe7 100644 --- a/assets/js/9c52442a.22722087.js +++ b/assets/js/9c52442a.9ea40ec5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[861],{6252:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>p,default:()=>l,frontMatter:()=>a,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"operators/spark-k8s-operator","title":"spark-k8s-operator","description":"","source":"@site/docs/operators/spark-k8s-operator.md","sourceDirName":"operators","slug":"/operators/spark-k8s-operator","permalink":"/docs/operators/spark-k8s-operator","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/operators/spark-k8s-operator.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u5b89\u88c5 OLM \u73af\u5883","permalink":"/docs/user-manual/environment/install-olm"},"next":{"title":"\u534f\u4f5c\u6307\u5357","permalink":"/docs/developer-manual/collaboration"}}');var s=r(4848),n=r(8453);const a={},p="spark-k8s-operator",c={},d=[];function i(e){const t={h1:"h1",header:"header",...(0,n.R)(),...e.components};return(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"spark-k8s-operator",children:"spark-k8s-operator"})})}function l(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},8453:(e,t,r)=>{r.d(t,{R:()=>a,x:()=>p});var o=r(6540);const s={},n=o.createContext(s);function a(e){const t=o.useContext(n);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function p(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),o.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[861],{6252:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>p,default:()=>l,frontMatter:()=>a,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"operators/spark-k8s-operator","title":"spark-k8s-operator","description":"","source":"@site/docs/operators/spark-k8s-operator.md","sourceDirName":"operators","slug":"/operators/spark-k8s-operator","permalink":"/docs/operators/spark-k8s-operator","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/operators/spark-k8s-operator.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u5b89\u88c5 OLM \u73af\u5883","permalink":"/docs/user-manual/environment/install-olm"},"next":{"title":"\u534f\u4f5c\u6307\u5357","permalink":"/docs/developer-manual/collaboration"}}');var s=r(4848),n=r(8453);const a={},p="spark-k8s-operator",c={},d=[];function i(e){const t={h1:"h1",header:"header",...(0,n.R)(),...e.components};return(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"spark-k8s-operator",children:"spark-k8s-operator"})})}function l(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(i,{...e})}):i(e)}},8453:(e,t,r)=>{r.d(t,{R:()=>a,x:()=>p});var o=r(6540);const s={},n=o.createContext(s);function a(e){const t=o.useContext(n);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function p(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),o.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9e24f985.69e413d5.js b/assets/js/9e24f985.1e062507.js similarity index 98% rename from assets/js/9e24f985.69e413d5.js rename to assets/js/9e24f985.1e062507.js index 05a40ce..9a60bab 100644 --- a/assets/js/9e24f985.69e413d5.js +++ b/assets/js/9e24f985.1e062507.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[373],{5155:(e,n,d)=>{d.r(n),d.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>u,frontMatter:()=>c,metadata:()=>t,toc:()=>i});const t=JSON.parse('{"id":"developer-manual/document-guideline","title":"\u6587\u6863\u7f16\u5199\u6307\u5357","description":"\u5982\u679c\u4f60\u60f3\u8981\u53c2\u4e0e\u6587\u6863\u7f16\u5199\uff0c\u8bf7\u9605\u8bfb\u672c\u6587\u6863\uff0c\u4e86\u89e3\u6587\u6863\u7f16\u5199\u7684\u57fa\u672c\u89c4\u8303\u3002","source":"@site/docs/developer-manual/document-guideline.md","sourceDirName":"developer-manual","slug":"/developer-manual/document-guideline","permalink":"/docs/developer-manual/document-guideline","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/developer-manual/document-guideline.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u5f00\u53d1\u6307\u5357","permalink":"/docs/developer-manual/develop-guideline"},"next":{"title":"\u7b2c\u4e00\u6b21\u8d21\u732e","permalink":"/docs/developer-manual/first-commiter"}}');var o=d(4848),s=d(8453);const c={},r="\u6587\u6863\u7f16\u5199\u6307\u5357",l={},i=[{value:"\u7f16\u5199\u89c4\u8303",id:"\u7f16\u5199\u89c4\u8303",level:2}];function a(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",ul:"ul",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"\u6587\u6863\u7f16\u5199\u6307\u5357",children:"\u6587\u6863\u7f16\u5199\u6307\u5357"})}),"\n",(0,o.jsx)(n.p,{children:"\u5982\u679c\u4f60\u60f3\u8981\u53c2\u4e0e\u6587\u6863\u7f16\u5199\uff0c\u8bf7\u9605\u8bfb\u672c\u6587\u6863\uff0c\u4e86\u89e3\u6587\u6863\u7f16\u5199\u7684\u57fa\u672c\u89c4\u8303\u3002"}),"\n",(0,o.jsxs)(n.p,{children:["\u9879\u76ee\u6587\u6863\u662f\u57fa\u4e8e ",(0,o.jsx)(n.a,{href:"https://docusaurus.io/",children:"docusaurus"})," \u6784\u5efa\u7684\uff0c\u6587\u6863\u6e90\u7801\u4f4d\u4e8e ",(0,o.jsx)(n.code,{children:"docs"})," \u76ee\u5f55\u4e0b\u3002"]}),"\n",(0,o.jsxs)(n.p,{children:["\u5f53\u524d\u6587\u6863\u8bed\u8a00\u9ed8\u8ba4\u662f\u4e2d\u6587\uff0c\u4e14\u73b0\u5728\u652f\u6301\u4e2d\u6587\u548c\u82f1\u6587\u4e24\u79cd\u8bed\u8a00\uff0c\u5982\u679c\u9700\u8981\u8d21\u732e\u4e2d\u6587\u6587\u6863\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728 ",(0,o.jsx)(n.code,{children:"docs"}),"\u4e2d\u7f16\u5199\uff0c\u5e76\u5728\u7f16\u5199\u5b8c\u6210\u540e\uff0c\n\u8fd0\u884c ",(0,o.jsx)(n.code,{children:"yarn write-translations --locale zh"})," \u751f\u6210\u4e2d\u6587\u56fd\u9645\u5316\u914d\u7f6e\uff0c\u7136\u540e\u8c03\u6574 ",(0,o.jsx)(n.code,{children:"i18n/zh"})," \u7684\u4e2d\u6587\u56fd\u9645\u5316\u914d\u7f6e\u3002"]}),"\n",(0,o.jsx)(n.h2,{id:"\u7f16\u5199\u89c4\u8303",children:"\u7f16\u5199\u89c4\u8303"}),"\n",(0,o.jsx)(n.p,{children:"\u5728\u7f16\u5199\u6587\u6863\u65f6\uff0c\u9700\u8981\u660e\u786e\u9075\u5faa\u4e00\u4e0b\u51e0\u70b9\u89c4\u8303\uff1a"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["\u6587\u6863\u57fa\u4e8e Markdown \u7f16\u5199\uff0c\u6587\u4ef6\u540e\u7f00\u540d\u4e3a ",(0,o.jsx)(n.code,{children:".md"}),"\u3002"]}),"\n",(0,o.jsxs)(n.li,{children:["\u6587\u6863\u6587\u4ef6\u540d\u4ee5\u82f1\u6587\u547d\u540d\uff0c\u987b\u7b26\u5408\u8bed\u4e49\uff0c\u5982 ",(0,o.jsx)(n.code,{children:"document-guideline.md"}),"\u3002"]}),"\n",(0,o.jsxs)(n.li,{children:["\u6587\u6863\u6587\u4ef6\u540d\u4e2d\u7684\u82f1\u6587\u5355\u8bcd\u4f7f\u7528 ",(0,o.jsx)(n.code,{children:"-"})," \u8fde\u63a5\uff0c\u4e0d\u8981\u4f7f\u7528 ",(0,o.jsx)(n.code,{children:"_"})," \u8fde\u63a5\u3002\u56e0\u4e3a\u6587\u6863\u6587\u4ef6\u540d\u4f1a\u4f5c\u4e3a URL \u7684\u4e00\u90e8\u5206\uff0c\u6240\u4ee5\u9700\u8981\u4fdd\u8bc1 URL \u7684\u53ef\u8bfb\u6027\u3002"]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(a,{...e})}):a(e)}},8453:(e,n,d)=>{d.d(n,{R:()=>c,x:()=>r});var t=d(6540);const o={},s=t.createContext(o);function c(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[373],{5155:(e,n,d)=>{d.r(n),d.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>u,frontMatter:()=>c,metadata:()=>t,toc:()=>i});const t=JSON.parse('{"id":"developer-manual/document-guideline","title":"\u6587\u6863\u7f16\u5199\u6307\u5357","description":"\u5982\u679c\u4f60\u60f3\u8981\u53c2\u4e0e\u6587\u6863\u7f16\u5199\uff0c\u8bf7\u9605\u8bfb\u672c\u6587\u6863\uff0c\u4e86\u89e3\u6587\u6863\u7f16\u5199\u7684\u57fa\u672c\u89c4\u8303\u3002","source":"@site/docs/developer-manual/document-guideline.md","sourceDirName":"developer-manual","slug":"/developer-manual/document-guideline","permalink":"/docs/developer-manual/document-guideline","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/developer-manual/document-guideline.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u5f00\u53d1\u6307\u5357","permalink":"/docs/developer-manual/develop-guideline"},"next":{"title":"\u7b2c\u4e00\u6b21\u8d21\u732e","permalink":"/docs/developer-manual/first-commiter"}}');var o=d(4848),s=d(8453);const c={},r="\u6587\u6863\u7f16\u5199\u6307\u5357",l={},i=[{value:"\u7f16\u5199\u89c4\u8303",id:"\u7f16\u5199\u89c4\u8303",level:2}];function a(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",ul:"ul",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"\u6587\u6863\u7f16\u5199\u6307\u5357",children:"\u6587\u6863\u7f16\u5199\u6307\u5357"})}),"\n",(0,o.jsx)(n.p,{children:"\u5982\u679c\u4f60\u60f3\u8981\u53c2\u4e0e\u6587\u6863\u7f16\u5199\uff0c\u8bf7\u9605\u8bfb\u672c\u6587\u6863\uff0c\u4e86\u89e3\u6587\u6863\u7f16\u5199\u7684\u57fa\u672c\u89c4\u8303\u3002"}),"\n",(0,o.jsxs)(n.p,{children:["\u9879\u76ee\u6587\u6863\u662f\u57fa\u4e8e ",(0,o.jsx)(n.a,{href:"https://docusaurus.io/",children:"docusaurus"})," \u6784\u5efa\u7684\uff0c\u6587\u6863\u6e90\u7801\u4f4d\u4e8e ",(0,o.jsx)(n.code,{children:"docs"})," \u76ee\u5f55\u4e0b\u3002"]}),"\n",(0,o.jsxs)(n.p,{children:["\u5f53\u524d\u6587\u6863\u8bed\u8a00\u9ed8\u8ba4\u662f\u4e2d\u6587\uff0c\u4e14\u73b0\u5728\u652f\u6301\u4e2d\u6587\u548c\u82f1\u6587\u4e24\u79cd\u8bed\u8a00\uff0c\u5982\u679c\u9700\u8981\u8d21\u732e\u4e2d\u6587\u6587\u6863\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728 ",(0,o.jsx)(n.code,{children:"docs"}),"\u4e2d\u7f16\u5199\uff0c\u5e76\u5728\u7f16\u5199\u5b8c\u6210\u540e\uff0c\n\u8fd0\u884c ",(0,o.jsx)(n.code,{children:"yarn write-translations --locale zh"})," \u751f\u6210\u4e2d\u6587\u56fd\u9645\u5316\u914d\u7f6e\uff0c\u7136\u540e\u8c03\u6574 ",(0,o.jsx)(n.code,{children:"i18n/zh"})," \u7684\u4e2d\u6587\u56fd\u9645\u5316\u914d\u7f6e\u3002"]}),"\n",(0,o.jsx)(n.h2,{id:"\u7f16\u5199\u89c4\u8303",children:"\u7f16\u5199\u89c4\u8303"}),"\n",(0,o.jsx)(n.p,{children:"\u5728\u7f16\u5199\u6587\u6863\u65f6\uff0c\u9700\u8981\u660e\u786e\u9075\u5faa\u4e00\u4e0b\u51e0\u70b9\u89c4\u8303\uff1a"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["\u6587\u6863\u57fa\u4e8e Markdown \u7f16\u5199\uff0c\u6587\u4ef6\u540e\u7f00\u540d\u4e3a ",(0,o.jsx)(n.code,{children:".md"}),"\u3002"]}),"\n",(0,o.jsxs)(n.li,{children:["\u6587\u6863\u6587\u4ef6\u540d\u4ee5\u82f1\u6587\u547d\u540d\uff0c\u987b\u7b26\u5408\u8bed\u4e49\uff0c\u5982 ",(0,o.jsx)(n.code,{children:"document-guideline.md"}),"\u3002"]}),"\n",(0,o.jsxs)(n.li,{children:["\u6587\u6863\u6587\u4ef6\u540d\u4e2d\u7684\u82f1\u6587\u5355\u8bcd\u4f7f\u7528 ",(0,o.jsx)(n.code,{children:"-"})," \u8fde\u63a5\uff0c\u4e0d\u8981\u4f7f\u7528 ",(0,o.jsx)(n.code,{children:"_"})," \u8fde\u63a5\u3002\u56e0\u4e3a\u6587\u6863\u6587\u4ef6\u540d\u4f1a\u4f5c\u4e3a URL \u7684\u4e00\u90e8\u5206\uff0c\u6240\u4ee5\u9700\u8981\u4fdd\u8bc1 URL \u7684\u53ef\u8bfb\u6027\u3002"]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(a,{...e})}):a(e)}},8453:(e,n,d)=>{d.d(n,{R:()=>c,x:()=>r});var t=d(6540);const o={},s=t.createContext(o);function c(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a4db6c7a.41754295.js b/assets/js/a4db6c7a.c6ffa099.js similarity index 50% rename from assets/js/a4db6c7a.41754295.js rename to assets/js/a4db6c7a.c6ffa099.js index 2d0a60a..3f51dc8 100644 --- a/assets/js/a4db6c7a.41754295.js +++ b/assets/js/a4db6c7a.c6ffa099.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[191],{2465:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>h,frontMatter:()=>a,metadata:()=>r,toc:()=>t});const r=JSON.parse('{"id":"core-concepts/resources/resource-manage","title":"\u8d44\u6e90\u7ba1\u7406","description":"datastack \u901a\u8fc7 operator \u4ee5 StatefulSets \u6216\u8005 DaemonSets \u7684\u65b9\u5f0f\u90e8\u7f72\u4ea7\u54c1\u7ec4\u4ef6\u7a0b\u5e8f\u3002\u4e3a\u4e86\u6ee1\u8db3\u4e0d\u540c\u573a\u666f\u548c\u9700\u6c42\uff0c\u53ef\u4ee5\u901a\u8fc7\u8d44\u7ba1\u7ba1\u7406\u6307\u5b9a\u7a0b\u5e8f\u8fd0\u884c\u65f6\u8bf7\u6c42\u7684 CPU \u548c\u5185\u5b58\u8d44\u6e90\uff0c\u4e5f\u53ef\u4ee5\u9650\u5236\u5176\u4f7f\u7528\u4e0a\u9650\u3002","source":"@site/docs/core-concepts/resources/resource-manage.md","sourceDirName":"core-concepts/resources","slug":"/core-concepts/resources/resource-manage","permalink":"/docs/core-concepts/resources/resource-manage","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/resources/resource-manage.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"Database","permalink":"/docs/core-concepts/resources/database"},"next":{"title":"S3","permalink":"/docs/core-concepts/resources/s3"}}');var c=s(4848),i=s(8453);const a={},l="\u8d44\u6e90\u7ba1\u7406",d={},t=[{value:"\u540d\u8bcd\u89e3\u91ca",id:"\u540d\u8bcd\u89e3\u91ca",level:2},{value:"CPU",id:"cpu",level:3},{value:"min",id:"min",level:4},{value:"max",id:"max",level:4},{value:"\u5185\u5b58",id:"\u5185\u5b58",level:3},{value:"limit",id:"limit",level:4},{value:"\u5b58\u50a8",id:"\u5b58\u50a8",level:3},{value:"\u8d44\u6e90\u8bf7\u6c42",id:"\u8d44\u6e90\u8bf7\u6c42",level:2},{value:"CPU \u548c\u5185\u5b58",id:"cpu-\u548c\u5185\u5b58",level:3},{value:"\u5b58\u50a8\u914d\u7f6e",id:"\u5b58\u50a8\u914d\u7f6e",level:3},{value:"\u5b58\u50a8\u7d2f",id:"\u5b58\u50a8\u7d2f",level:4}];function o(e){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.header,{children:(0,c.jsx)(n.h1,{id:"\u8d44\u6e90\u7ba1\u7406",children:"\u8d44\u6e90\u7ba1\u7406"})}),"\n",(0,c.jsx)(n.p,{children:"datastack \u901a\u8fc7 operator \u4ee5 StatefulSets \u6216\u8005 DaemonSets \u7684\u65b9\u5f0f\u90e8\u7f72\u4ea7\u54c1\u7ec4\u4ef6\u7a0b\u5e8f\u3002\u4e3a\u4e86\u6ee1\u8db3\u4e0d\u540c\u573a\u666f\u548c\u9700\u6c42\uff0c\u53ef\u4ee5\u901a\u8fc7\u8d44\u7ba1\u7ba1\u7406\u6307\u5b9a\u7a0b\u5e8f\u8fd0\u884c\u65f6\u8bf7\u6c42\u7684 CPU \u548c\u5185\u5b58\u8d44\u6e90\uff0c\u4e5f\u53ef\u4ee5\u9650\u5236\u5176\u4f7f\u7528\u4e0a\u9650\u3002"}),"\n",(0,c.jsx)(n.h2,{id:"\u540d\u8bcd\u89e3\u91ca",children:"\u540d\u8bcd\u89e3\u91ca"}),"\n",(0,c.jsx)(n.p,{children:"\u8d44\u6e90\u7ba1\u7406\u662f\u5b9a\u4e49 CPU \u3001 \u5185\u5b58\uff08RAM\uff09\u3001\u5b58\u50a8\uff08storage\uff09\u4e09\u79cd\u8d44\u6e90\u7c7b\u578b\u3002"}),"\n",(0,c.jsx)(n.h3,{id:"cpu",children:"CPU"}),"\n",(0,c.jsx)(n.h4,{id:"min",children:"min"}),"\n",(0,c.jsx)(n.p,{children:"CPU \u8bf7\u6c42\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u8bf7\u6c42\u7684 CPU \u8d44\u6e90\u3002CPU \u8bf7\u6c42\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684\u6700\u5c0f CPU \u8d44\u6e90\u9700\u6c42\u3002\u5982\u679c\u7a0b\u5e8f\u8bf7\u6c42\u7684 CPU \u8d44\u6e90\u8d85\u8fc7\u8282\u70b9\u7684 CPU \u8d44\u6e90\uff0c\u7a0b\u5e8f\u5c06\u65e0\u6cd5\u8fd0\u884c\u3002"}),"\n",(0,c.jsx)(n.h4,{id:"max",children:"max"}),"\n",(0,c.jsx)(n.p,{children:"CPU \u9650\u5236\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684 CPU \u8d44\u6e90\u4e0a\u9650\u3002\u5982\u679c\u7a0b\u5e8f\u4f7f\u7528\u7684 CPU \u8d44\u6e90\u8d85\u8fc7\u9650\u5236\uff0c\u7a0b\u5e8f\u5c06\u88ab Kubernetes \u9650\u5236\uff0c\u4f46\u4e0d\u4f1a\u88ab\u7ec8\u6b62\u3002"}),"\n",(0,c.jsx)(n.h3,{id:"\u5185\u5b58",children:"\u5185\u5b58"}),"\n",(0,c.jsx)(n.h4,{id:"limit",children:"limit"}),"\n",(0,c.jsx)(n.p,{children:"\u5185\u5b58\u9650\u5236\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684\u5185\u5b58\u8d44\u6e90\u4e0a\u9650\u3002\u5982\u679c\u7a0b\u5e8f\u4f7f\u7528\u7684\u5185\u5b58\u8d44\u6e90\u8d85\u8fc7\u9650\u5236\uff0c\u7a0b\u5e8f\u5c06\u88ab Kubernetes \u9650\u5236\uff0c\u7a0b\u5e8f\u4f1a\u88ab\u7ec8\u6b62\u3002\u4e3a\u4e86\u907f\u514d\u7a0b\u5e8f\u88ab\u7ec8\u6b62\uff0c\u9700\u8981\u6839\u636e\u7a0b\u5e8f\u7684\u5b9e\u9645\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u8bbe\u7f6e\u5408\u7406\u7684\u5185\u5b58\u9650\u5236\u3002"}),"\n",(0,c.jsx)(n.h3,{id:"\u5b58\u50a8",children:"\u5b58\u50a8"}),"\n",(0,c.jsx)(n.p,{children:"\u5b58\u50a8\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u8bf7\u6c42\u7684\u5b58\u50a8\u7a7a\u95f4\u3002\u6307\u5b9a\u7684\u5b58\u50a8\u5927\u5c0f\u662f\u901a\u8fc7 PVC\uff08Persistent Volume Claim\uff09\u6765\u4e3a\u7a0b\u5e8f\u5206\u914d\u4e00\u4e2a\u6700\u5927\u53ef\u7528\u7684\u5b58\u50a8\u7a7a\u95f4\u3002"}),"\n",(0,c.jsx)(n.h2,{id:"\u8d44\u6e90\u8bf7\u6c42",children:"\u8d44\u6e90\u8bf7\u6c42"}),"\n",(0,c.jsxs)(n.p,{children:["\u5728\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u4e2d\uff0c\u90fd\u53ef\u4ee5\u4f7f\u7528 ",(0,c.jsx)(n.code,{children:"resource"})," \u5b9a\u4e49\u8d44\u6e90\u914d\u7f6e\u3002\u5176\u4e2d\u89d2\u8272\u7ea7\u522b\u7684\u8d44\u6e90\u914d\u7f6e\u4f1a\u8986\u76d6\u89d2\u8272\u7ec4\u7ea7\u522b\u7684\u8d44\u6e90\u914d\u7f6e\u3002\u800c\u89d2\u8272\u7ec4\u7ea7\u522b\u7684\u8d44\u6e90\u914d\u7f6e\u4f1a\u8986\u76d6\u89d2\u8272\u7ea7\u522b\u7684\u8d44\u6e90\u914d\u7f6e\u3002"]}),"\n",(0,c.jsx)(n.h3,{id:"cpu-\u548c\u5185\u5b58",children:"CPU \u548c\u5185\u5b58"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.zncdata.dev/v1alpha1\nkind: HdfsCluster\n name: hdfscluster-sample\nspec:\n nameNode:\n config:\n resources:\n cpu:\n min: "1"\n max: "2"\n memory:\n limit: "1Gi"\n roleGroups:\n rg-1:\n replicas: 2\n rg-2:\n replicas: 2\n config:\n resources:\n cpu:\n min: "2"\n max: "4"\n memory:\n limit: "2Gi"\n'})}),"\n",(0,c.jsx)(n.p,{children:"\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\uff1a"}),"\n",(0,c.jsxs)(n.ul,{children:["\n",(0,c.jsx)(n.li,{children:"\u4e00\u4e2a HDFS \u96c6\u7fa4\uff0c\u5305\u542b\u4e86 NameNode \u4e00\u4e2a\u89d2\u8272\u3002"}),"\n",(0,c.jsx)(n.li,{children:"NameNode \u6709\u4e24\u4e2a\u89d2\u8272\u7ec4\uff0crg-1 \u548c rg-2\u3002"}),"\n",(0,c.jsx)(n.li,{children:"Namenode \u89d2\u8272\u5b9a\u4e49\u6bcf\u4e2a\u5b9e\u4f8b\u7684 CPU \u6700\u5c0f 1\uff0c\u6700\u5927 2\uff0c\u5185\u5b58\u9650\u5236 1Gi\u3002"}),"\n",(0,c.jsx)(n.li,{children:"rg-1 \u89d2\u8272\u7ec4\u5305\u542b\u4e24\u4e2a\u5b9e\u4f8b\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u7684 CPU \u6700\u5c0f 1\uff0c\u6700\u5927 2\uff0c\u5185\u5b58\u9650\u5236 1Gi\u3002\u7ee7\u627f\u81ea\u89d2\u8272\u7684\u914d\u7f6e\u3002"}),"\n",(0,c.jsx)(n.li,{children:"rg-2 \u89d2\u8272\u7ec4\u5305\u542b\u4e24\u4e2a\u5b9e\u4f8b\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u7684 CPU \u6700\u5c0f 2\uff0c\u6700\u5927 4\uff0c\u5185\u5b58\u9650\u5236 2Gi\u3002\u4f7f\u7528\u89d2\u8272\u7ec4\u7684\u914d\u7f6e\uff0c\u8986\u76d6\u4e86\u89d2\u8272\u7684\u914d\u7f6e\u3002"}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"\u5b58\u50a8\u914d\u7f6e",children:"\u5b58\u50a8\u914d\u7f6e"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-yaml",children:"apiVersion: hdfs.zncdata.dev/v1alpha1\nkind: HdfsCluster\n name: hdfscluster-sample\nspec:\n nameNode:\n config:\n resources:\n storage:\n data:\n capacity: 10Gi\n roleGroups:\n rg-1:\n replicas: 2\n rg-2:\n replicas: 2\n config:\n resources:\n storage:\n data:\n capacity: 20Gi\n"})}),"\n",(0,c.jsx)(n.p,{children:"\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\uff1a"}),"\n",(0,c.jsxs)(n.ul,{children:["\n",(0,c.jsx)(n.li,{children:"\u4e00\u4e2a HDFS \u96c6\u7fa4\uff0c\u5305\u542b\u4e86 NameNode \u4e00\u4e2a\u89d2\u8272\u3002"}),"\n",(0,c.jsx)(n.li,{children:"NameNode \u6709\u4e24\u4e2a\u89d2\u8272\u7ec4\uff0crg-1 \u548c rg-2\u3002"}),"\n",(0,c.jsxs)(n.li,{children:["Namenode \u89d2\u8272\u5b9a\u4e49\u6bcf\u4e2a\u5b9e\u4f8b\u7684 ",(0,c.jsx)(n.code,{children:"data"})," \u5b58\u50a8\u5bb9\u91cf 10Gi\u3002"]}),"\n",(0,c.jsxs)(n.li,{children:["rg-1 \u89d2\u8272\u7ec4\u5305\u542b\u4e24\u4e2a\u5b9e\u4f8b\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u7684 ",(0,c.jsx)(n.code,{children:"data"})," \u5b58\u50a8\u5bb9\u91cf 10Gi\u3002\u7ee7\u627f\u81ea\u89d2\u8272\u7684\u914d\u7f6e\u3002"]}),"\n",(0,c.jsxs)(n.li,{children:["rg-2 \u89d2\u8272\u7ec4\u5305\u542b\u4e24\u4e2a\u5b9e\u4f8b\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u7684 ",(0,c.jsx)(n.code,{children:"data"})," \u5b58\u50a8\u5bb9\u91cf 20Gi\u3002\u4f7f\u7528\u89d2\u8272\u7ec4\u7684\u914d\u7f6e\uff0c\u8986\u76d6\u4e86\u89d2\u8272\u7684\u914d\u7f6e\u3002"]}),"\n"]}),"\n",(0,c.jsx)(n.h4,{id:"\u5b58\u50a8\u7d2f",children:"\u5b58\u50a8\u7d2f"}),"\n",(0,c.jsx)(n.p,{children:"\u5b58\u50a8\u7684\u5e95\u5c42\u6280\u672f\u662f\u901a\u8fc7 kubernetes \u7684 StorageClass \u6765\u5b9e\u73b0\u7684\u3002\u53ef\u4ee5\u914d\u7f6e\u4e0d\u540c\u7279\u6027\u7684\u7684\u5b58\u50a8\u7c7b\uff0c\u7075\u6d3b\u7684\u4e3a\u7a0b\u5e8f\u5206\u914d\u5b58\u50a8\u7a7a\u95f4\u3002\u5982\u4f7f\u7528 SSD \u5b58\u50a8\uff0cHDD \u5b58\u50a8\uff0c\u6216\u8005 NFS \u5b58\u50a8\u7684\u5b58\u50a8\u7c7b\u3002"}),"\n",(0,c.jsxs)(n.p,{children:["\u5728 ",(0,c.jsx)(n.code,{children:"storage"})," \u4e2d StorageClass \u4e0d\u662f\u5f3a\u5236\u7684\uff0c\u5982\u679c\u6ca1\u6709\u914d\u7f6e\uff0c\u5219\u4f7f\u7528\u96c6\u7fa4\u4e2d\u9ed8\u8ba4\u7684 StorageClass \u3002"]}),"\n",(0,c.jsx)(n.p,{children:"\u914d\u7f6e\u793a\u4f8b\uff1a"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-yaml",children:"...\nresources:\n storage:\n data: # name of the storage\n capacity: 4Gi\n storageClass: ssd-storage-class\n"})})]})}function h(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,c.jsx)(n,{...e,children:(0,c.jsx)(o,{...e})}):o(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>a,x:()=>l});var r=s(6540);const c={},i=r.createContext(c);function a(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:a(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[191],{2465:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>l,metadata:()=>r,toc:()=>o});const r=JSON.parse('{"id":"core-concepts/resources/resource-manage","title":"\u8d44\u6e90\u7ba1\u7406","description":"datastack \u901a\u8fc7 operator \u4ee5 StatefulSets \u6216\u8005 DaemonSets \u7684\u65b9\u5f0f\u90e8\u7f72\u4ea7\u54c1\u7ec4\u4ef6\u7a0b\u5e8f\u3002\u4e3a\u4e86\u6ee1\u8db3\u4e0d\u540c\u573a\u666f\u548c\u9700\u6c42\uff0c\u53ef\u4ee5\u901a\u8fc7\u8d44\u7ba1\u7ba1\u7406\u6307\u5b9a\u7a0b\u5e8f\u8fd0\u884c\u65f6\u8bf7\u6c42\u7684 CPU \u548c\u5185\u5b58\u8d44\u6e90\uff0c\u4e5f\u53ef\u4ee5\u9650\u5236\u5176\u4f7f\u7528\u4e0a\u9650\u3002","source":"@site/docs/core-concepts/resources/resource-manage.md","sourceDirName":"core-concepts/resources","slug":"/core-concepts/resources/resource-manage","permalink":"/docs/core-concepts/resources/resource-manage","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/resources/resource-manage.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"Database","permalink":"/docs/core-concepts/resources/database"},"next":{"title":"S3","permalink":"/docs/core-concepts/resources/s3"}}');var c=s(4848),i=s(8453);const l={},a="\u8d44\u6e90\u7ba1\u7406",d={},o=[{value:"\u540d\u8bcd\u89e3\u91ca",id:"\u540d\u8bcd\u89e3\u91ca",level:2},{value:"CPU",id:"cpu",level:3},{value:"min",id:"min",level:4},{value:"max",id:"max",level:4},{value:"\u5185\u5b58",id:"\u5185\u5b58",level:3},{value:"limit",id:"limit",level:4},{value:"\u5b58\u50a8",id:"\u5b58\u50a8",level:3},{value:"\u8d44\u6e90\u8bf7\u6c42",id:"\u8d44\u6e90\u8bf7\u6c42",level:2},{value:"CPU \u548c\u5185\u5b58",id:"cpu-\u548c\u5185\u5b58",level:3},{value:"\u5b58\u50a8\u914d\u7f6e",id:"\u5b58\u50a8\u914d\u7f6e",level:3},{value:"\u5b58\u50a8\u7d2f",id:"\u5b58\u50a8\u7d2f",level:4}];function t(e){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.header,{children:(0,c.jsx)(n.h1,{id:"\u8d44\u6e90\u7ba1\u7406",children:"\u8d44\u6e90\u7ba1\u7406"})}),"\n",(0,c.jsx)(n.p,{children:"datastack \u901a\u8fc7 operator \u4ee5 StatefulSets \u6216\u8005 DaemonSets \u7684\u65b9\u5f0f\u90e8\u7f72\u4ea7\u54c1\u7ec4\u4ef6\u7a0b\u5e8f\u3002\u4e3a\u4e86\u6ee1\u8db3\u4e0d\u540c\u573a\u666f\u548c\u9700\u6c42\uff0c\u53ef\u4ee5\u901a\u8fc7\u8d44\u7ba1\u7ba1\u7406\u6307\u5b9a\u7a0b\u5e8f\u8fd0\u884c\u65f6\u8bf7\u6c42\u7684 CPU \u548c\u5185\u5b58\u8d44\u6e90\uff0c\u4e5f\u53ef\u4ee5\u9650\u5236\u5176\u4f7f\u7528\u4e0a\u9650\u3002"}),"\n",(0,c.jsx)(n.h2,{id:"\u540d\u8bcd\u89e3\u91ca",children:"\u540d\u8bcd\u89e3\u91ca"}),"\n",(0,c.jsx)(n.p,{children:"\u8d44\u6e90\u7ba1\u7406\u662f\u5b9a\u4e49 CPU \u3001 \u5185\u5b58\uff08RAM\uff09\u3001\u5b58\u50a8\uff08storage\uff09\u4e09\u79cd\u8d44\u6e90\u7c7b\u578b\u3002"}),"\n",(0,c.jsx)(n.h3,{id:"cpu",children:"CPU"}),"\n",(0,c.jsx)(n.h4,{id:"min",children:"min"}),"\n",(0,c.jsx)(n.p,{children:"CPU \u8bf7\u6c42\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u8bf7\u6c42\u7684 CPU \u8d44\u6e90\u3002CPU \u8bf7\u6c42\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684\u6700\u5c0f CPU \u8d44\u6e90\u9700\u6c42\u3002\u5982\u679c\u7a0b\u5e8f\u8bf7\u6c42\u7684 CPU \u8d44\u6e90\u8d85\u8fc7\u8282\u70b9\u7684 CPU \u8d44\u6e90\uff0c\u7a0b\u5e8f\u5c06\u65e0\u6cd5\u8fd0\u884c\u3002"}),"\n",(0,c.jsx)(n.h4,{id:"max",children:"max"}),"\n",(0,c.jsx)(n.p,{children:"CPU \u9650\u5236\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684 CPU \u8d44\u6e90\u4e0a\u9650\u3002\u5982\u679c\u7a0b\u5e8f\u4f7f\u7528\u7684 CPU \u8d44\u6e90\u8d85\u8fc7\u9650\u5236\uff0c\u7a0b\u5e8f\u5c06\u88ab Kubernetes \u9650\u5236\uff0c\u4f46\u4e0d\u4f1a\u88ab\u7ec8\u6b62\u3002"}),"\n",(0,c.jsx)(n.h3,{id:"\u5185\u5b58",children:"\u5185\u5b58"}),"\n",(0,c.jsx)(n.h4,{id:"limit",children:"limit"}),"\n",(0,c.jsx)(n.p,{children:"\u5185\u5b58\u9650\u5236\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684\u5185\u5b58\u8d44\u6e90\u4e0a\u9650\u3002\u5982\u679c\u7a0b\u5e8f\u4f7f\u7528\u7684\u5185\u5b58\u8d44\u6e90\u8d85\u8fc7\u9650\u5236\uff0c\u7a0b\u5e8f\u5c06\u88ab Kubernetes \u9650\u5236\uff0c\u7a0b\u5e8f\u4f1a\u88ab\u7ec8\u6b62\u3002\u4e3a\u4e86\u907f\u514d\u7a0b\u5e8f\u88ab\u7ec8\u6b62\uff0c\u9700\u8981\u6839\u636e\u7a0b\u5e8f\u7684\u5b9e\u9645\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u8bbe\u7f6e\u5408\u7406\u7684\u5185\u5b58\u9650\u5236\u3002"}),"\n",(0,c.jsx)(n.h3,{id:"\u5b58\u50a8",children:"\u5b58\u50a8"}),"\n",(0,c.jsx)(n.p,{children:"\u5b58\u50a8\u662f\u7a0b\u5e8f\u8fd0\u884c\u65f6\u8bf7\u6c42\u7684\u5b58\u50a8\u7a7a\u95f4\u3002\u6307\u5b9a\u7684\u5b58\u50a8\u5927\u5c0f\u662f\u901a\u8fc7 PVC\uff08Persistent Volume Claim\uff09\u6765\u4e3a\u7a0b\u5e8f\u5206\u914d\u4e00\u4e2a\u6700\u5927\u53ef\u7528\u7684\u5b58\u50a8\u7a7a\u95f4\u3002"}),"\n",(0,c.jsx)(n.h2,{id:"\u8d44\u6e90\u8bf7\u6c42",children:"\u8d44\u6e90\u8bf7\u6c42"}),"\n",(0,c.jsxs)(n.p,{children:["\u5728\u89d2\u8272\u548c\u89d2\u8272\u7ec4\u4e2d\uff0c\u90fd\u53ef\u4ee5\u4f7f\u7528 ",(0,c.jsx)(n.code,{children:"resource"})," \u5b9a\u4e49\u8d44\u6e90\u914d\u7f6e\u3002\u5176\u4e2d\u89d2\u8272\u7ea7\u522b\u7684\u8d44\u6e90\u914d\u7f6e\u4f1a\u8986\u76d6\u89d2\u8272\u7ec4\u7ea7\u522b\u7684\u8d44\u6e90\u914d\u7f6e\u3002\u800c\u89d2\u8272\u7ec4\u7ea7\u522b\u7684\u8d44\u6e90\u914d\u7f6e\u4f1a\u8986\u76d6\u89d2\u8272\u7ea7\u522b\u7684\u8d44\u6e90\u914d\u7f6e\u3002"]}),"\n",(0,c.jsx)(n.h3,{id:"cpu-\u548c\u5185\u5b58",children:"CPU \u548c\u5185\u5b58"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-yaml",children:'apiVersion: hdfs.kubedoop.dev/v1alpha1\nkind: HdfsCluster\n name: hdfscluster-sample\nspec:\n nameNode:\n config:\n resources:\n cpu:\n min: "1"\n max: "2"\n memory:\n limit: "1Gi"\n roleGroups:\n rg-1:\n replicas: 2\n rg-2:\n replicas: 2\n config:\n resources:\n cpu:\n min: "2"\n max: "4"\n memory:\n limit: "2Gi"\n'})}),"\n",(0,c.jsx)(n.p,{children:"\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\uff1a"}),"\n",(0,c.jsxs)(n.ul,{children:["\n",(0,c.jsx)(n.li,{children:"\u4e00\u4e2a HDFS \u96c6\u7fa4\uff0c\u5305\u542b\u4e86 NameNode \u4e00\u4e2a\u89d2\u8272\u3002"}),"\n",(0,c.jsx)(n.li,{children:"NameNode \u6709\u4e24\u4e2a\u89d2\u8272\u7ec4\uff0crg-1 \u548c rg-2\u3002"}),"\n",(0,c.jsx)(n.li,{children:"Namenode \u89d2\u8272\u5b9a\u4e49\u6bcf\u4e2a\u5b9e\u4f8b\u7684 CPU \u6700\u5c0f 1\uff0c\u6700\u5927 2\uff0c\u5185\u5b58\u9650\u5236 1Gi\u3002"}),"\n",(0,c.jsx)(n.li,{children:"rg-1 \u89d2\u8272\u7ec4\u5305\u542b\u4e24\u4e2a\u5b9e\u4f8b\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u7684 CPU \u6700\u5c0f 1\uff0c\u6700\u5927 2\uff0c\u5185\u5b58\u9650\u5236 1Gi\u3002\u7ee7\u627f\u81ea\u89d2\u8272\u7684\u914d\u7f6e\u3002"}),"\n",(0,c.jsx)(n.li,{children:"rg-2 \u89d2\u8272\u7ec4\u5305\u542b\u4e24\u4e2a\u5b9e\u4f8b\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u7684 CPU \u6700\u5c0f 2\uff0c\u6700\u5927 4\uff0c\u5185\u5b58\u9650\u5236 2Gi\u3002\u4f7f\u7528\u89d2\u8272\u7ec4\u7684\u914d\u7f6e\uff0c\u8986\u76d6\u4e86\u89d2\u8272\u7684\u914d\u7f6e\u3002"}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"\u5b58\u50a8\u914d\u7f6e",children:"\u5b58\u50a8\u914d\u7f6e"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-yaml",children:"apiVersion: hdfs.kubedoop.dev/v1alpha1\nkind: HdfsCluster\n name: hdfscluster-sample\nspec:\n nameNode:\n config:\n resources:\n storage:\n data:\n capacity: 10Gi\n roleGroups:\n rg-1:\n replicas: 2\n rg-2:\n replicas: 2\n config:\n resources:\n storage:\n data:\n capacity: 20Gi\n"})}),"\n",(0,c.jsx)(n.p,{children:"\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\uff1a"}),"\n",(0,c.jsxs)(n.ul,{children:["\n",(0,c.jsx)(n.li,{children:"\u4e00\u4e2a HDFS \u96c6\u7fa4\uff0c\u5305\u542b\u4e86 NameNode \u4e00\u4e2a\u89d2\u8272\u3002"}),"\n",(0,c.jsx)(n.li,{children:"NameNode \u6709\u4e24\u4e2a\u89d2\u8272\u7ec4\uff0crg-1 \u548c rg-2\u3002"}),"\n",(0,c.jsxs)(n.li,{children:["Namenode \u89d2\u8272\u5b9a\u4e49\u6bcf\u4e2a\u5b9e\u4f8b\u7684 ",(0,c.jsx)(n.code,{children:"data"})," \u5b58\u50a8\u5bb9\u91cf 10Gi\u3002"]}),"\n",(0,c.jsxs)(n.li,{children:["rg-1 \u89d2\u8272\u7ec4\u5305\u542b\u4e24\u4e2a\u5b9e\u4f8b\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u7684 ",(0,c.jsx)(n.code,{children:"data"})," \u5b58\u50a8\u5bb9\u91cf 10Gi\u3002\u7ee7\u627f\u81ea\u89d2\u8272\u7684\u914d\u7f6e\u3002"]}),"\n",(0,c.jsxs)(n.li,{children:["rg-2 \u89d2\u8272\u7ec4\u5305\u542b\u4e24\u4e2a\u5b9e\u4f8b\uff0c\u6bcf\u4e2a\u5b9e\u4f8b\u7684 ",(0,c.jsx)(n.code,{children:"data"})," \u5b58\u50a8\u5bb9\u91cf 20Gi\u3002\u4f7f\u7528\u89d2\u8272\u7ec4\u7684\u914d\u7f6e\uff0c\u8986\u76d6\u4e86\u89d2\u8272\u7684\u914d\u7f6e\u3002"]}),"\n"]}),"\n",(0,c.jsx)(n.h4,{id:"\u5b58\u50a8\u7d2f",children:"\u5b58\u50a8\u7d2f"}),"\n",(0,c.jsx)(n.p,{children:"\u5b58\u50a8\u7684\u5e95\u5c42\u6280\u672f\u662f\u901a\u8fc7 kubernetes \u7684 StorageClass \u6765\u5b9e\u73b0\u7684\u3002\u53ef\u4ee5\u914d\u7f6e\u4e0d\u540c\u7279\u6027\u7684\u7684\u5b58\u50a8\u7c7b\uff0c\u7075\u6d3b\u7684\u4e3a\u7a0b\u5e8f\u5206\u914d\u5b58\u50a8\u7a7a\u95f4\u3002\u5982\u4f7f\u7528 SSD \u5b58\u50a8\uff0cHDD \u5b58\u50a8\uff0c\u6216\u8005 NFS \u5b58\u50a8\u7684\u5b58\u50a8\u7c7b\u3002"}),"\n",(0,c.jsxs)(n.p,{children:["\u5728 ",(0,c.jsx)(n.code,{children:"storage"})," \u4e2d StorageClass \u4e0d\u662f\u5f3a\u5236\u7684\uff0c\u5982\u679c\u6ca1\u6709\u914d\u7f6e\uff0c\u5219\u4f7f\u7528\u96c6\u7fa4\u4e2d\u9ed8\u8ba4\u7684 StorageClass \u3002"]}),"\n",(0,c.jsx)(n.p,{children:"\u914d\u7f6e\u793a\u4f8b\uff1a"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-yaml",children:"...\nresources:\n storage:\n data: # name of the storage\n capacity: 4Gi\n storageClass: ssd-storage-class\n"})})]})}function h(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,c.jsx)(n,{...e,children:(0,c.jsx)(t,{...e})}):t(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>l,x:()=>a});var r=s(6540);const c={},i=r.createContext(c);function l(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:l(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a555a233.1bee0cff.js b/assets/js/a555a233.4333ee1a.js similarity index 95% rename from assets/js/a555a233.1bee0cff.js rename to assets/js/a555a233.4333ee1a.js index 1dd7a94..3dc325a 100644 --- a/assets/js/a555a233.1bee0cff.js +++ b/assets/js/a555a233.4333ee1a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[296],{7877:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>u,frontMatter:()=>c,metadata:()=>s,toc:()=>i});const s=JSON.parse('{"id":"release-notes","title":"\u53d1\u5e03\u5386\u53f2","description":"v0.0.1","source":"@site/docs/release-notes.md","sourceDirName":".","slug":"/release-notes","permalink":"/docs/release-notes","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/release-notes.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{}}');var o=n(4848),r=n(8453);const c={},a="\u53d1\u5e03\u5386\u53f2",d={},i=[{value:"v0.0.1",id:"v001",level:2}];function l(e){const t={h1:"h1",h2:"h2",header:"header",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"\u53d1\u5e03\u5386\u53f2",children:"\u53d1\u5e03\u5386\u53f2"})}),"\n",(0,o.jsx)(t.h2,{id:"v001",children:"v0.0.1"})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>c,x:()=>a});var s=n(6540);const o={},r=s.createContext(o);function c(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[296],{7877:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>u,frontMatter:()=>c,metadata:()=>s,toc:()=>i});const s=JSON.parse('{"id":"release-notes","title":"\u53d1\u5e03\u5386\u53f2","description":"v0.0.1","source":"@site/docs/release-notes.md","sourceDirName":".","slug":"/release-notes","permalink":"/docs/release-notes","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/release-notes.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{}}');var o=n(4848),r=n(8453);const c={},a="\u53d1\u5e03\u5386\u53f2",d={},i=[{value:"v0.0.1",id:"v001",level:2}];function l(e){const t={h1:"h1",h2:"h2",header:"header",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"\u53d1\u5e03\u5386\u53f2",children:"\u53d1\u5e03\u5386\u53f2"})}),"\n",(0,o.jsx)(t.h2,{id:"v001",children:"v0.0.1"})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>c,x:()=>a});var s=n(6540);const o={},r=s.createContext(o);function c(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bad93740.21845bd4.js b/assets/js/bad93740.df7bdfbe.js similarity index 96% rename from assets/js/bad93740.21845bd4.js rename to assets/js/bad93740.df7bdfbe.js index 62a1dad..7ec4c2f 100644 --- a/assets/js/bad93740.21845bd4.js +++ b/assets/js/bad93740.df7bdfbe.js @@ -1 +1 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[939],{1137:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>a,contentTitle:()=>i,default:()=>p,frontMatter:()=>r,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"core-concepts/observability/logging","title":"\u65e5\u5fd7","description":"","source":"@site/docs/core-concepts/observability/logging.md","sourceDirName":"core-concepts/observability","slug":"/core-concepts/observability/logging","permalink":"/docs/core-concepts/observability/logging","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/observability/logging.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"pod-placement","permalink":"/docs/core-concepts/operations/pod-placement"},"next":{"title":"\u5b89\u88c5 OLM \u73af\u5883","permalink":"/docs/user-manual/environment/install-olm"}}');var c=o(4848),s=o(8453);const r={},i="\u65e5\u5fd7",a={},l=[];function d(e){const t={h1:"h1",header:"header",...(0,s.R)(),...e.components};return(0,c.jsx)(t.header,{children:(0,c.jsx)(t.h1,{id:"\u65e5\u5fd7",children:"\u65e5\u5fd7"})})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,c.jsx)(t,{...e,children:(0,c.jsx)(d,{...e})}):d(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>r,x:()=>i});var n=o(6540);const c={},s=n.createContext(c);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[939],{1137:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>a,contentTitle:()=>i,default:()=>p,frontMatter:()=>r,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"core-concepts/observability/logging","title":"\u65e5\u5fd7","description":"","source":"@site/docs/core-concepts/observability/logging.md","sourceDirName":"core-concepts/observability","slug":"/core-concepts/observability/logging","permalink":"/docs/core-concepts/observability/logging","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/core-concepts/observability/logging.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"pod-placement","permalink":"/docs/core-concepts/operations/pod-placement"},"next":{"title":"\u5b89\u88c5 OLM \u73af\u5883","permalink":"/docs/user-manual/environment/install-olm"}}');var c=o(4848),s=o(8453);const r={},i="\u65e5\u5fd7",a={},l=[];function d(e){const t={h1:"h1",header:"header",...(0,s.R)(),...e.components};return(0,c.jsx)(t.header,{children:(0,c.jsx)(t.h1,{id:"\u65e5\u5fd7",children:"\u65e5\u5fd7"})})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,c.jsx)(t,{...e,children:(0,c.jsx)(d,{...e})}):d(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>r,x:()=>i});var n=o(6540);const c={},s=n.createContext(c);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bba16301.09eec70a.js b/assets/js/bba16301.09eec70a.js deleted file mode 100644 index 370af8c..0000000 --- a/assets/js/bba16301.09eec70a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[241],{2319:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>t,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>r,toc:()=>a});const r=JSON.parse('{"id":"developer-manual/first-commiter","title":"\u7b2c\u4e00\u6b21\u8d21\u732e","description":"\u5982\u679c\u4f60\u662f\u7b2c\u4e00\u6b21\u5728 Github \u4e0a\u8d21\u732e\u4ee3\u7801\uff0c\u8bf7\u53c2\u8003\u5982\u4e0b\u6b65\u9aa4\u5feb\u901f\u5f00\u59cb\uff1a","source":"@site/docs/developer-manual/first-commiter.md","sourceDirName":"developer-manual","slug":"/developer-manual/first-commiter","permalink":"/docs/developer-manual/first-commiter","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/developer-manual/first-commiter.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180193000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u6587\u6863\u7f16\u5199\u6307\u5357","permalink":"/docs/developer-manual/document-guideline"},"next":{"title":"operator-sdk","permalink":"/docs/reference/operator-sdk"}}');var c=s(4848),l=s(8453);const i={},d="\u7b2c\u4e00\u6b21\u8d21\u732e",t={},a=[{value:"Fork \u9879\u76ee",id:"fork-\u9879\u76ee",level:2},{value:"\u83b7\u53d6\u6700\u65b0\u6e90\u4ee3\u7801",id:"\u83b7\u53d6\u6700\u65b0\u6e90\u4ee3\u7801",level:2},{value:"\u521b\u5efa\u5206\u652f",id:"\u521b\u5efa\u5206\u652f",level:2},{value:"\u5408\u5e76\u4fee\u6539",id:"\u5408\u5e76\u4fee\u6539",level:2},{value:"\u63d0\u4ea4 Pull Request",id:"\u63d0\u4ea4-pull-request",level:2}];function o(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,l.R)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.header,{children:(0,c.jsx)(n.h1,{id:"\u7b2c\u4e00\u6b21\u8d21\u732e",children:"\u7b2c\u4e00\u6b21\u8d21\u732e"})}),"\n",(0,c.jsx)(n.p,{children:"\u5982\u679c\u4f60\u662f\u7b2c\u4e00\u6b21\u5728 Github \u4e0a\u8d21\u732e\u4ee3\u7801\uff0c\u8bf7\u53c2\u8003\u5982\u4e0b\u6b65\u9aa4\u5feb\u901f\u5f00\u59cb\uff1a"}),"\n",(0,c.jsx)(n.h2,{id:"fork-\u9879\u76ee",children:"Fork \u9879\u76ee"}),"\n",(0,c.jsxs)(n.ul,{children:["\n",(0,c.jsx)(n.li,{children:"\u9996\u5148\u9700\u8981fork\u8fd9\u4e2a\u9879\u76ee, \u8fdb\u5165\u9879\u76ee\u9875\u9762, \u70b9\u51fb\u53f3\u4e0a\u89d2\u7684Fork\u6309\u94ae"}),"\n",(0,c.jsxs)(n.li,{children:["\u4f60\u7684 github \u5e10\u53f7\u4e2d\u4f1a\u51fa\u73b0\u76f8\u5e94\u540d\u79f0\u7684\u9879\u76ee, \u4f8b\u5982: ",(0,c.jsx)(n.code,{children:"zncdata-stack"})]}),"\n",(0,c.jsx)(n.li,{children:"\u5728\u672c\u5730\u7535\u8111(Linux)\u4e0a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u514b\u9686\u9879\u76ee\u5230\u672c\u5730"}),"\n"]}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com//zncdata-stack\n"})}),"\n",(0,c.jsx)(n.h2,{id:"\u83b7\u53d6\u6700\u65b0\u6e90\u4ee3\u7801",children:"\u83b7\u53d6\u6700\u65b0\u6e90\u4ee3\u7801"}),"\n",(0,c.jsx)(n.p,{children:"\u5c06\u672c\u5730\u4e2a\u4eba\u4ed3\u5e93\u548c\u4e0a\u6e38\u4ed3\u5e93\u5173\u8054"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-bash",children:"git remote add upstream https://github.com/zncdata.dev/zncdata-stack\n"})}),"\n",(0,c.jsx)(n.p,{children:"\u540c\u6b65\u6700\u65b0\u6e90\u4ee3\u7801"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-bash",children:"git pull upstream main\n"})}),"\n",(0,c.jsxs)(n.p,{children:["\u73b0\u5728\u6211\u4eec\u5728 fork \u6765\u7684 ",(0,c.jsx)(n.code,{children:"main"})," \u5206\u652f\u4e0a, \u8fd9\u4e2a ",(0,c.jsx)(n.code,{children:"main"})," \u7559\u4f5c\u8ddf\u8e2a ",(0,c.jsx)(n.code,{children:"upstream"})," \u7684\u8fdc\u7a0b\u4ee3\u7801"]}),"\n",(0,c.jsx)(n.h2,{id:"\u521b\u5efa\u5206\u652f",children:"\u521b\u5efa\u5206\u652f"}),"\n",(0,c.jsx)(n.p,{children:"\u73b0\u5728\u5f00\u59cb\u5728\u672c\u5730\u5f00\u53d1\uff0c\u5e76\u51c6\u5907\u8d21\u732e\u4ee3\u7801\u3002"}),"\n",(0,c.jsxs)(n.p,{children:["\u6309\u7167\u56fd\u9645\u60ef\u4f8b\uff0c\u6211\u4eec\u4e00\u822c\u4e0d\u5728 ",(0,c.jsx)(n.code,{children:"main"})," \u5206\u652f\u4e0a\u5f00\u53d1\uff0c\u800c\u662f\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5206\u652f\uff0c\u7136\u540e\u5728\u65b0\u7684\u5206\u652f\u4e0a\u5f00\u53d1\uff0c\u5f00\u53d1\u5b8c\u6210\u540e\u518d\u5408\u5e76\u5230 ",(0,c.jsx)(n.code,{children:"main"})," \u5206\u652f\u3002"]}),"\n",(0,c.jsxs)(n.p,{children:["\u9996\u5148\u660e\u786e\u6211\u4eec\u8981\u4e0d\u8d21\u732e\u7684\u4ee3\u7801\u662f\u4e00\u4e2a\u65b0\u7684\u529f\u80fd\u7279\u6027\u8fd8\u662f\u4fee\u590d\u4e00\u4e2a bug \u3002\u5982\u679c\u662f\u65b0\u589e\u4e00\u4e2a\u529f\u80fd\u7279\u6027\uff0c\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u57fa\u4e8e ",(0,c.jsx)(n.code,{children:"feature/"})," \u5f00\u5934\u7684\n\u5206\u652f\uff0c\u5982\u679c\u662f\u4fee\u590d\u4e00\u4e2a bug \uff0c\u5728\u521b\u5efa\u4e00\u4e2a\u57fa\u4e8e ",(0,c.jsx)(n.code,{children:"fix/"})," \u5f00\u5934\u7684\u5206\u652f\u3002"]}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-bash",children:"git checkout -b fix/foo-error\n"})}),"\n",(0,c.jsx)(n.p,{children:"\u7136\u540e\u5728\u8fd9\u4e2a\u5206\u652f\u4e0a\u8fdb\u884c\u4ee3\u7801\u5f00\u53d1\uff0c\u5e76\u5728\u5f00\u53d1\u5b8c\u6210\u540e\u63d0\u4ea4\u4ee3\u7801\u3002"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-bash",children:'git commit -a -m "fix: foo error"\n'})}),"\n",(0,c.jsx)(n.h2,{id:"\u5408\u5e76\u4fee\u6539",children:"\u5408\u5e76\u4fee\u6539"}),"\n",(0,c.jsx)(n.p,{children:"\u4e00\u4e2a\u5e38\u89c1\u7684\u95ee\u9898\u662f\u8fdc\u7a0b\u7684 upstream (swoole/swoole-src) \u6709\u4e86\u65b0\u7684\u66f4\u65b0, \u4ece\u800c\u4f1a\u5bfc\u81f4\u6211\u4eec\u63d0\u4ea4\u7684 Pull Request \u65f6\u4f1a\u5bfc\u81f4\u51b2\u7a81, \u56e0\u6b64\u6211\u4eec\u53ef\u4ee5\u5728\u63d0\u4ea4\u524d\u5148\u628a\u8fdc\u7a0b\u5176\u4ed6\u5f00\u53d1\u8005\u7684commit\u548c\u6211\u4eec\u7684commit\u5408\u5e76."}),"\n",(0,c.jsxs)(n.p,{children:["\u9996\u5148\u6211\u4eec\u9700\u8981\u5207\u6362\u5230 ",(0,c.jsx)(n.code,{children:"main"})," \u5206\u652f, \u7136\u540e\u540c\u6b65\u6700\u65b0\u7684\u4ee3\u7801"]}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-bash",children:"git checkout main\ngit pull upstream main\n"})}),"\n",(0,c.jsxs)(n.p,{children:["\u7136\u540e\u5207\u6362\u56de\u6211\u4eec\u7684\u5f00\u53d1\u5206\u652f, \u5e76\u5408\u5e76 ",(0,c.jsx)(n.code,{children:"main"})," \u5206\u652f"]}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-bash",children:"git checkout fix/foo-error\ngit rebase main\n"})}),"\n",(0,c.jsx)(n.p,{children:"\u5982\u679c\u6709\u51b2\u7a81, \u8bf7\u89e3\u51b3\u51b2\u7a81, \u7136\u540e\u7ee7\u7eed\u5408\u5e76"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-bash",children:"git add .\ngit rebase --continue\n"})}),"\n",(0,c.jsx)(n.p,{children:"\u6700\u540e\u63d0\u4ea4\u4ee3\u7801"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-bash",children:"git push origin fix/foo-error\n"})}),"\n",(0,c.jsx)(n.h2,{id:"\u63d0\u4ea4-pull-request",children:"\u63d0\u4ea4 Pull Request"}),"\n",(0,c.jsxs)(n.p,{children:["\u5728 Github \u7684\u9879\u76ee\u4e2d\uff0c\u5207\u6362\u5230\u521a\u521a\u63a8\u9001\u7684\u5206\u652f\uff0c\u70b9\u51fb ",(0,c.jsx)(n.code,{children:"Pull Request"})," \u6309\u94ae\uff0c\u586b\u5199\u76f8\u5e94\u7684\u4fe1\u606f\uff0c\u7136\u540e\u63d0\u4ea4 Pull Request\u3002"]})]})}function h(e={}){const{wrapper:n}={...(0,l.R)(),...e.components};return n?(0,c.jsx)(n,{...e,children:(0,c.jsx)(o,{...e})}):o(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>i,x:()=>d});var r=s(6540);const c={},l=r.createContext(c);function i(e){const n=r.useContext(l);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:i(e.components),r.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bba16301.557c254d.js b/assets/js/bba16301.557c254d.js new file mode 100644 index 0000000..cbe731a --- /dev/null +++ b/assets/js/bba16301.557c254d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[241],{2319:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>t,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>r,toc:()=>a});const r=JSON.parse('{"id":"developer-manual/first-commiter","title":"\u7b2c\u4e00\u6b21\u8d21\u732e","description":"\u5982\u679c\u4f60\u662f\u7b2c\u4e00\u6b21\u5728 Github \u4e0a\u8d21\u732e\u4ee3\u7801\uff0c\u8bf7\u53c2\u8003\u5982\u4e0b\u6b65\u9aa4\u5feb\u901f\u5f00\u59cb\uff1a","source":"@site/docs/developer-manual/first-commiter.md","sourceDirName":"developer-manual","slug":"/developer-manual/first-commiter","permalink":"/docs/developer-manual/first-commiter","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/developer-manual/first-commiter.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"\u6587\u6863\u7f16\u5199\u6307\u5357","permalink":"/docs/developer-manual/document-guideline"},"next":{"title":"operator-sdk","permalink":"/docs/reference/operator-sdk"}}');var l=s(4848),c=s(8453);const i={},d="\u7b2c\u4e00\u6b21\u8d21\u732e",t={},a=[{value:"Fork \u9879\u76ee",id:"fork-\u9879\u76ee",level:2},{value:"\u83b7\u53d6\u6700\u65b0\u6e90\u4ee3\u7801",id:"\u83b7\u53d6\u6700\u65b0\u6e90\u4ee3\u7801",level:2},{value:"\u521b\u5efa\u5206\u652f",id:"\u521b\u5efa\u5206\u652f",level:2},{value:"\u5408\u5e76\u4fee\u6539",id:"\u5408\u5e76\u4fee\u6539",level:2},{value:"\u63d0\u4ea4 Pull Request",id:"\u63d0\u4ea4-pull-request",level:2}];function o(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,c.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.header,{children:(0,l.jsx)(n.h1,{id:"\u7b2c\u4e00\u6b21\u8d21\u732e",children:"\u7b2c\u4e00\u6b21\u8d21\u732e"})}),"\n",(0,l.jsx)(n.p,{children:"\u5982\u679c\u4f60\u662f\u7b2c\u4e00\u6b21\u5728 Github \u4e0a\u8d21\u732e\u4ee3\u7801\uff0c\u8bf7\u53c2\u8003\u5982\u4e0b\u6b65\u9aa4\u5feb\u901f\u5f00\u59cb\uff1a"}),"\n",(0,l.jsx)(n.h2,{id:"fork-\u9879\u76ee",children:"Fork \u9879\u76ee"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"\u9996\u5148\u9700\u8981fork\u8fd9\u4e2a\u9879\u76ee, \u8fdb\u5165\u9879\u76ee\u9875\u9762, \u70b9\u51fb\u53f3\u4e0a\u89d2\u7684Fork\u6309\u94ae"}),"\n",(0,l.jsxs)(n.li,{children:["\u4f60\u7684 github \u5e10\u53f7\u4e2d\u4f1a\u51fa\u73b0\u76f8\u5e94\u540d\u79f0\u7684\u9879\u76ee, \u4f8b\u5982: ",(0,l.jsx)(n.code,{children:"zncdata-stack"})]}),"\n",(0,l.jsx)(n.li,{children:"\u5728\u672c\u5730\u7535\u8111(Linux)\u4e0a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u514b\u9686\u9879\u76ee\u5230\u672c\u5730"}),"\n"]}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com//zncdata-stack\n"})}),"\n",(0,l.jsx)(n.h2,{id:"\u83b7\u53d6\u6700\u65b0\u6e90\u4ee3\u7801",children:"\u83b7\u53d6\u6700\u65b0\u6e90\u4ee3\u7801"}),"\n",(0,l.jsx)(n.p,{children:"\u5c06\u672c\u5730\u4e2a\u4eba\u4ed3\u5e93\u548c\u4e0a\u6e38\u4ed3\u5e93\u5173\u8054"}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-bash",children:"git remote add upstream https://github.com/kubedoop.dev/zncdata-stack\n"})}),"\n",(0,l.jsx)(n.p,{children:"\u540c\u6b65\u6700\u65b0\u6e90\u4ee3\u7801"}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-bash",children:"git pull upstream main\n"})}),"\n",(0,l.jsxs)(n.p,{children:["\u73b0\u5728\u6211\u4eec\u5728 fork \u6765\u7684 ",(0,l.jsx)(n.code,{children:"main"})," \u5206\u652f\u4e0a, \u8fd9\u4e2a ",(0,l.jsx)(n.code,{children:"main"})," \u7559\u4f5c\u8ddf\u8e2a ",(0,l.jsx)(n.code,{children:"upstream"})," \u7684\u8fdc\u7a0b\u4ee3\u7801"]}),"\n",(0,l.jsx)(n.h2,{id:"\u521b\u5efa\u5206\u652f",children:"\u521b\u5efa\u5206\u652f"}),"\n",(0,l.jsx)(n.p,{children:"\u73b0\u5728\u5f00\u59cb\u5728\u672c\u5730\u5f00\u53d1\uff0c\u5e76\u51c6\u5907\u8d21\u732e\u4ee3\u7801\u3002"}),"\n",(0,l.jsxs)(n.p,{children:["\u6309\u7167\u56fd\u9645\u60ef\u4f8b\uff0c\u6211\u4eec\u4e00\u822c\u4e0d\u5728 ",(0,l.jsx)(n.code,{children:"main"})," \u5206\u652f\u4e0a\u5f00\u53d1\uff0c\u800c\u662f\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5206\u652f\uff0c\u7136\u540e\u5728\u65b0\u7684\u5206\u652f\u4e0a\u5f00\u53d1\uff0c\u5f00\u53d1\u5b8c\u6210\u540e\u518d\u5408\u5e76\u5230 ",(0,l.jsx)(n.code,{children:"main"})," \u5206\u652f\u3002"]}),"\n",(0,l.jsxs)(n.p,{children:["\u9996\u5148\u660e\u786e\u6211\u4eec\u8981\u4e0d\u8d21\u732e\u7684\u4ee3\u7801\u662f\u4e00\u4e2a\u65b0\u7684\u529f\u80fd\u7279\u6027\u8fd8\u662f\u4fee\u590d\u4e00\u4e2a bug \u3002\u5982\u679c\u662f\u65b0\u589e\u4e00\u4e2a\u529f\u80fd\u7279\u6027\uff0c\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u57fa\u4e8e ",(0,l.jsx)(n.code,{children:"feature/"})," \u5f00\u5934\u7684\n\u5206\u652f\uff0c\u5982\u679c\u662f\u4fee\u590d\u4e00\u4e2a bug \uff0c\u5728\u521b\u5efa\u4e00\u4e2a\u57fa\u4e8e ",(0,l.jsx)(n.code,{children:"fix/"})," \u5f00\u5934\u7684\u5206\u652f\u3002"]}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-bash",children:"git checkout -b fix/foo-error\n"})}),"\n",(0,l.jsx)(n.p,{children:"\u7136\u540e\u5728\u8fd9\u4e2a\u5206\u652f\u4e0a\u8fdb\u884c\u4ee3\u7801\u5f00\u53d1\uff0c\u5e76\u5728\u5f00\u53d1\u5b8c\u6210\u540e\u63d0\u4ea4\u4ee3\u7801\u3002"}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-bash",children:'git commit -a -m "fix: foo error"\n'})}),"\n",(0,l.jsx)(n.h2,{id:"\u5408\u5e76\u4fee\u6539",children:"\u5408\u5e76\u4fee\u6539"}),"\n",(0,l.jsx)(n.p,{children:"\u4e00\u4e2a\u5e38\u89c1\u7684\u95ee\u9898\u662f\u8fdc\u7a0b\u7684 upstream (swoole/swoole-src) \u6709\u4e86\u65b0\u7684\u66f4\u65b0, \u4ece\u800c\u4f1a\u5bfc\u81f4\u6211\u4eec\u63d0\u4ea4\u7684 Pull Request \u65f6\u4f1a\u5bfc\u81f4\u51b2\u7a81, \u56e0\u6b64\u6211\u4eec\u53ef\u4ee5\u5728\u63d0\u4ea4\u524d\u5148\u628a\u8fdc\u7a0b\u5176\u4ed6\u5f00\u53d1\u8005\u7684commit\u548c\u6211\u4eec\u7684commit\u5408\u5e76."}),"\n",(0,l.jsxs)(n.p,{children:["\u9996\u5148\u6211\u4eec\u9700\u8981\u5207\u6362\u5230 ",(0,l.jsx)(n.code,{children:"main"})," \u5206\u652f, \u7136\u540e\u540c\u6b65\u6700\u65b0\u7684\u4ee3\u7801"]}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-bash",children:"git checkout main\ngit pull upstream main\n"})}),"\n",(0,l.jsxs)(n.p,{children:["\u7136\u540e\u5207\u6362\u56de\u6211\u4eec\u7684\u5f00\u53d1\u5206\u652f, \u5e76\u5408\u5e76 ",(0,l.jsx)(n.code,{children:"main"})," \u5206\u652f"]}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-bash",children:"git checkout fix/foo-error\ngit rebase main\n"})}),"\n",(0,l.jsx)(n.p,{children:"\u5982\u679c\u6709\u51b2\u7a81, \u8bf7\u89e3\u51b3\u51b2\u7a81, \u7136\u540e\u7ee7\u7eed\u5408\u5e76"}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-bash",children:"git add .\ngit rebase --continue\n"})}),"\n",(0,l.jsx)(n.p,{children:"\u6700\u540e\u63d0\u4ea4\u4ee3\u7801"}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{className:"language-bash",children:"git push origin fix/foo-error\n"})}),"\n",(0,l.jsx)(n.h2,{id:"\u63d0\u4ea4-pull-request",children:"\u63d0\u4ea4 Pull Request"}),"\n",(0,l.jsxs)(n.p,{children:["\u5728 Github \u7684\u9879\u76ee\u4e2d\uff0c\u5207\u6362\u5230\u521a\u521a\u63a8\u9001\u7684\u5206\u652f\uff0c\u70b9\u51fb ",(0,l.jsx)(n.code,{children:"Pull Request"})," \u6309\u94ae\uff0c\u586b\u5199\u76f8\u5e94\u7684\u4fe1\u606f\uff0c\u7136\u540e\u63d0\u4ea4 Pull Request\u3002"]})]})}function h(e={}){const{wrapper:n}={...(0,c.R)(),...e.components};return n?(0,l.jsx)(n,{...e,children:(0,l.jsx)(o,{...e})}):o(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>i,x:()=>d});var r=s(6540);const l={},c=r.createContext(l);function i(e){const n=r.useContext(c);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:i(e.components),r.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d61c35d5.8477e64c.js b/assets/js/d61c35d5.8477e64c.js new file mode 100644 index 0000000..94b86dc --- /dev/null +++ b/assets/js/d61c35d5.8477e64c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkkubedoop=self.webpackChunkkubedoop||[]).push([[476],{4645:(e,n,l)=>{l.r(n),l.d(n,{assets:()=>t,contentTitle:()=>c,default:()=>h,frontMatter:()=>d,metadata:()=>s,toc:()=>o});const s=JSON.parse('{"id":"developer-manual/collaboration","title":"\u534f\u4f5c\u6307\u5357","description":"\u672c\u6587\u4f1a\u6307\u5bfc\u4f60\u5982\u4f55\u4e3a ZNCData Labs \u8d21\u732e\u4e00\u4efd\u81ea\u5df1\u7684\u529b\u91cf\uff0c\u5728\u8d21\u732e\u4ee3\u7801\u4e4b\u524d\uff0c\u8bf7\u82b1\u70b9\u65f6\u95f4\u9605\u8bfb\u4e00\u4e0b\u7ec6\u8282\u3002","source":"@site/docs/developer-manual/collaboration.md","sourceDirName":"developer-manual","slug":"/developer-manual/collaboration","permalink":"/docs/developer-manual/collaboration","draft":false,"unlisted":false,"editUrl":"https://github.com/zncdatadev/docs/docs/developer-manual/collaboration.md","tags":[],"version":"current","lastUpdatedBy":"whg517","lastUpdatedAt":1732180678000,"frontMatter":{},"sidebar":"docs","previous":{"title":"spark-k8s-operator","permalink":"/docs/operators/spark-k8s-operator"},"next":{"title":"\u5f00\u53d1\u6307\u5357","permalink":"/docs/developer-manual/develop-guideline"}}');var i=l(4848),r=l(8453);const d={},c="\u534f\u4f5c\u6307\u5357",t={},o=[{value:"\u884c\u4e3a\u51c6\u5219",id:"\u884c\u4e3a\u51c6\u5219",level:2},{value:"\u5206\u652f\u7ba1\u7406",id:"\u5206\u652f\u7ba1\u7406",level:2},{value:"\u7b2c\u4e00\u6b21\u8d21\u732e",id:"\u7b2c\u4e00\u6b21\u8d21\u732e",level:2},{value:"Pull Request",id:"pull-request",level:2},{value:"\u63d0\u4ea4\u4fe1\u606f\u89c4\u8303",id:"\u63d0\u4ea4\u4fe1\u606f\u89c4\u8303",level:2},{value:"\u63d0\u4ea4\u4fe1\u606f\u683c\u5f0f",id:"\u63d0\u4ea4\u4fe1\u606f\u683c\u5f0f",level:3},{value:"\u8303\u56f4\uff08scope\uff09",id:"\u8303\u56f4scope",level:4},{value:"\u7c7b\u578b\uff08type\uff09",id:"\u7c7b\u578btype",level:4},{value:"\u4e3b\u9898 \uff08subject\uff09",id:"\u4e3b\u9898-subject",level:4},{value:"\u6b63\u6587\uff08body\uff09",id:"\u6b63\u6587body",level:4},{value:"\u9875\u811a\uff08footer\uff09",id:"\u9875\u811afooter",level:4}];function a(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"\u534f\u4f5c\u6307\u5357",children:"\u534f\u4f5c\u6307\u5357"})}),"\n",(0,i.jsx)(n.p,{children:"\u672c\u6587\u4f1a\u6307\u5bfc\u4f60\u5982\u4f55\u4e3a ZNCData Labs \u8d21\u732e\u4e00\u4efd\u81ea\u5df1\u7684\u529b\u91cf\uff0c\u5728\u8d21\u732e\u4ee3\u7801\u4e4b\u524d\uff0c\u8bf7\u82b1\u70b9\u65f6\u95f4\u9605\u8bfb\u4e00\u4e0b\u7ec6\u8282\u3002"}),"\n",(0,i.jsx)(n.h2,{id:"\u884c\u4e3a\u51c6\u5219",children:"\u884c\u4e3a\u51c6\u5219"}),"\n",(0,i.jsxs)(n.p,{children:["\u6211\u4eec\u6709\u4e00\u4efd",(0,i.jsx)(n.a,{href:"https://github.com/kubedoop.dev/zncdata-stack.git/CODE_OF_CONDUCT.md",children:"\u884c\u4e3a\u51c6\u5219"}),"\uff0c\u5e0c\u671b\u6240\u6709\u7684\u8d21\u732e\u8005\u90fd\u80fd\u9075\u5b88\uff0c\u8bf7\u82b1\u65f6\u95f4\u9605\u8bfb\u4e00\u904d\u5168\u6587\u4ee5\u786e\u4fdd\u4f60\u80fd\u660e\u767d\u54ea\u4e9b\u662f\u53ef\u4ee5\u505a\u7684\uff0c\u54ea\u4e9b\u662f\u4e0d\u53ef\u4ee5\u505a\u7684\u3002"]}),"\n",(0,i.jsx)(n.h2,{id:"\u5206\u652f\u7ba1\u7406",children:"\u5206\u652f\u7ba1\u7406"}),"\n",(0,i.jsxs)(n.p,{children:["\u6211\u4eec\u957f\u671f\u7ef4\u62a4\u4e3b\u5206\u652f\uff08",(0,i.jsx)(n.code,{children:"main"}),"\uff09\u548c\u53d1\u5e03\u5206\u652f\uff08",(0,i.jsx)(n.code,{children:"release-x.x"}),"\uff09\u3002\u4e3b\u5206\u652f\u662f\u6700\u65b0\u7684\u4ee3\u7801\uff0c\u6211\u4eec\u4f1a\u4e0d\u5b9a\u671f\u5c06\u65b0\u7279\u6027\u548c\u529f\u80fd\u5408\u5e76\u5230\u4e3b\u5206\u652f\uff0c\u6240\u4ee5\u4e3b\u5206\u652f\u4f1a\u6709\u4e00\u4e9b BUG \u548c\u4e0d\u7a33\u5b9a\u7684\u5730\u65b9\u3002\n\u5f53\u4e3b\u5206\u652f\u7ecf\u5386\u4e00\u4e2a\u9636\u6bb5\u7684\u529f\u80fd\u79ef\u7d2f\u65f6\uff0c\u6216\u8005\u5728\u53d1\u5e03\u8def\u7ebf\u56fe\u4e2d\u7684\u67d0\u4e2a\u65f6\u673a\u70b9\uff0c\u6211\u4eec\u4f1a\u4ece\u4e3b\u5206\u652f\u5207\u51fa\u4e00\u4e2a\u65b0\u7684\u53d1\u5e03\u5206\u652f\uff0c\u5e76\u5728\u53d1\u5e03\u5206\u652f\u4e0a\u8fdb\u884c\u6d4b\u8bd5\u548c\u4fee\u590d BUG\uff0c\u76f4\u5230\u53d1\u5e03\u5206\u652f\u7a33\u5b9a\u540e\uff0c\n\u6211\u4eec\u4f1a\u5c06\u53d1\u5e03\u5206\u652f\u5408\u5e76\u5230\u4e3b\u5206\u652f\uff0c\u5e76\u53d1\u5e03\u4e00\u4e2a\u65b0\u7684\u7248\u672c\u3002"]}),"\n",(0,i.jsxs)(n.p,{children:["\u5728\u8d21\u732e\u4ee3\u7801\u4e4b\u524d\u8bf7\u786e\u5b9a\u4f60\u662f\u4fee\u590d\u67d0\u4e00\u4e2a\u7248\u672c\u7684 BUG\uff0c\u8fd8\u662f\u5728\u5f00\u53d1\u65b0\u7684\u529f\u80fd\u3002\u5982\u679c\u4fee\u590d BUG\uff0c\u8bf7\u57fa\u4e8e ",(0,i.jsx)(n.code,{children:"fix/"})," \u524d\u7f00\u5206\u652f\u5f00\u53d1\u540e\u5408\u5e76\u5230\u8be5\u7248\u672c\u7684\u53d1\u5e03\u5206\u652f\u3002\u6211\u4eec\u4f1a\u5728\u5408\u9002\u7684\u65f6\u95f4\u53d1\u5e03 ",(0,i.jsx)(n.code,{children:"patch"})," \u7248\u672c\u3002\n\u5982\u679c\u662f\u5f00\u53d1\u65b0\u7684\u529f\u80fd\uff0c\u8bf7\u57fa\u4e8e ",(0,i.jsx)(n.code,{children:"feature/"})," \u524d\u7f00\u5206\u652f\u5f00\u53d1\u540e\u5408\u5e76\u5230\u4e3b\u5206\u652f\u3002"]}),"\n",(0,i.jsx)(n.h2,{id:"\u7b2c\u4e00\u6b21\u8d21\u732e",children:"\u7b2c\u4e00\u6b21\u8d21\u732e"}),"\n",(0,i.jsxs)(n.p,{children:["\u5982\u679c\u4f60\u662f\u7b2c\u4e00\u6b21\u8d21\u732e\u4ee3\u7801\uff0c\u8bf7\u53c2\u8003",(0,i.jsx)(n.a,{href:"/docs/developer-manual/first-commiter",children:"\u7b2c\u4e00\u6b21\u8d21\u732e"})," \u5feb\u901f\u5f00\u59cb\u3002"]}),"\n",(0,i.jsx)(n.h2,{id:"pull-request",children:"Pull Request"}),"\n",(0,i.jsxs)(n.p,{children:["\u6211\u4eec\u4f7f\u7528 Pull Request \u6765\u8fdb\u884c\u4ee3\u7801\u7684\u5408\u5e76\uff0c\u5982\u679c\u4f60\u4e0d\u719f\u6089 Pull Request \u7684\u4f7f\u7528\uff0c\u8bf7\u53c2\u8003 ",(0,i.jsx)(n.a,{href:"https://docs.github.com/cn/github/collaborating-with-issues-and-pull-requests/about-pull-requests",children:"Github \u5b98\u65b9\u6587\u6863"}),"\u3002"]}),"\n",(0,i.jsx)(n.p,{children:"\u6211\u4eec\u4f1a\u53ca\u65f6\u5173\u6ce8 Pull Request\uff0c\u5e76\u5408\u5e76\uff0c\u4e5f\u6709\u53ef\u80fd\u5728\u4ee3\u7801\u8bc4\u5ba1\u540e\u8981\u6c42\u4f60\u6700\u4e00\u4e9b\u4fee\u6539\u518d\u5408\u5e76\u3002\u5982\u679c\u4f60\u7684 Pull Request \u6ca1\u6709\u53ca\u65f6\u5f97\u5230\u56de\u590d\uff0c\u8bf7\u5728\u6211\u4eec\u7684\u793e\u533a\u4e2d\u63d0\u51fa\u6765\uff0c\u6211\u4eec\u4f1a\u5c3d\u5feb\u5904\u7406\u3002"}),"\n",(0,i.jsx)(n.p,{children:"\u5728\u63d0\u4ea4 Pull Request \u4e4b\u524d\uff0c\u8bf7\u68c0\u67e5\u4e00\u4e0b\u6e05\u5355\uff1a"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"\u57fa\u4e8e\u6b63\u786e\u7684\u5206\u652f\u5f00\u53d1"}),"\n",(0,i.jsxs)(n.li,{children:["\u6267\u884c ",(0,i.jsx)(n.code,{children:"pre-commit"})," \u5e76\u786e\u4fdd\u6ca1\u6709\u5f02\u5e38"]}),"\n",(0,i.jsx)(n.li,{children:"\u4ee3\u7801\u63d0\u4ea4\u4fe1\u606f\u9075\u5faa\u63d0\u4ea4\u89c4\u8303"}),"\n",(0,i.jsx)(n.li,{children:"\u786e\u4fdd\u6240\u6709 Github CI \u68c0\u67e5\u901a\u8fc7\uff0c\u5982\u679c\u5931\u8d25\uff0c\u8bf7\u67e5\u770b\u539f\u56e0\u5e76\u4fee\u6539\u3002"}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"\u5728\u6240\u6709\u95ee\u9898\u90fd\u89e3\u51b3\u540e\uff0c\u53d1\u8d77 Pull Request\u3002"}),"\n",(0,i.jsx)(n.h2,{id:"\u63d0\u4ea4\u4fe1\u606f\u89c4\u8303",children:"\u63d0\u4ea4\u4fe1\u606f\u89c4\u8303"}),"\n",(0,i.jsx)(n.p,{children:"\u6e05\u6670\u6613\u8bfb\u7684\u63d0\u4ea4\u4fe1\u606f\u6709\u52a9\u4e8e\u95ee\u9898\u6392\u67e5\uff0c\u4e5f\u6709\u5229\u4e8e\u81ea\u52a8\u751f\u6210 CHANGELOG\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u6c42\u6240\u6709\u7684\u63d0\u4ea4\u4fe1\u606f\u90fd\u9075\u5faa\u4ee5\u4e0b\u89c4\u8303\uff1a"}),"\n",(0,i.jsx)(n.h3,{id:"\u63d0\u4ea4\u4fe1\u606f\u683c\u5f0f",children:"\u63d0\u4ea4\u4fe1\u606f\u683c\u5f0f"}),"\n",(0,i.jsx)(n.p,{children:"\u6bcf\u6761\u63d0\u4ea4\u6d88\u606f\u5747\u7531\u6807\u9898\u3001\u6b63\u6587\u548c\u9875\u811a\u7ec4\u6210\u3002\u6807\u5934\u5177\u6709\u7279\u6b8a\u683c\u5f0f\uff0c\u5305\u62ec\u7c7b\u578b\u3001\u8303\u56f4\u548c\u4e3b\u9898\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-text",children:"(): \n\n\n\n