diff --git a/.vuepress/enhanceApp.js b/.vuepress/enhanceApp.js index a674056..813d9cb 100644 --- a/.vuepress/enhanceApp.js +++ b/.vuepress/enhanceApp.js @@ -16,6 +16,7 @@ import defaults from './grid/utils/defaults' import Comp from './comp/index' import Cookies from 'js-cookie' +import VueClipboard from 'vue-clipboard2' const VueFractionGrid = { install (Vue, options) { @@ -33,7 +34,7 @@ export default ({ router, // 当前应用的路由实例 siteData // 站点元数据 }) => { - + Vue.use(VueClipboard) Vue.use(BootstrapVue) Vue.use(VueFractionGrid, { approach: 'desktop-first', diff --git a/install/v3/install-in-k8s.md b/install/v3/install-in-k8s.md index 60b9a55..ea1b471 100644 --- a/install/v3/install-in-k8s.md +++ b/install/v3/install-in-k8s.md @@ -20,6 +20,10 @@ meta: * 执行 Kuboard v3 在 K8S 中的安装 + + + + ```sh kubectl apply -f https://addons.kuboard.cn/kuboard/kuboard-v3.yaml # 您也可以使用下面的指令,唯一的区别是,该指令使用华为云的镜像仓库替代 docker hub 分发 Kuboard 所需要的镜像 @@ -30,6 +34,122 @@ meta: 如果您想要定制 Kuboard 的启动参数,请将该 YAML 文件下载到本地,并修改其中的 ConfigMap ::: + + + + * 在您的镜像仓库服务中创建一个名为 `kuboard` 的 repository(harbor 中称之为项目、华为镜像仓库中称之为组织) + * 输入您镜像仓库地址及 repository 名称(替换输入框中 `registry.mycompayn.com` 为你的镜像仓库服务地址即可): + + * 将所需镜像导入到您的私有镜像仓库 + + + {{dockerPull}} + + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + + + 请先输入私有镜像仓库 + + * 在您的镜像仓库设置导入的镜像为公开可访问(无需镜像仓库的用户名密码) + * 获取 YAML 文件,并将该文件保存到集群 master 节点(或者 kubectl 客户端所在机器,假设文件名为 `kuboard-v3.yaml`) + + 保存 YAML 到文件 + 复制 YAML 到粘贴板 + * 执行安装指令 + ```sh + kubectl apply -f kuboard-v3.yaml + ``` + + + + + + + * 等待 Kuboard v3 就绪 执行指令 `watch kubectl get pods -n kuboard`,等待 kuboard 名称空间中所有的 Pod 就绪,如下所示, diff --git a/package.json b/package.json index 3a3b66c..8739ba4 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,14 @@ "animated-number-vue": "^1.0.0", "aos": "^2.3.4", "axios": "^0.19.2", - "js-cookie": "^2.2.1", "babel-plugin-component": "^1.1.1", "bootstrap": "^4.6.0", "bootstrap-vue": "^2.21.2", "date-fns": "^1.30.1", "esm": "^3.2.25", + "js-cookie": "^2.2.1", "reduce-css-calc": "^2.1.8", + "vue-clipboard2": "^0.3.1", "vue2-animate": "^2.1.4", "vuepress": "^1.8.2", "vuepress-plugin-baidu-autopush": "^1.0.1", diff --git a/yarn.lock b/yarn.lock index ad9ac20..f467c30 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7539,6 +7539,13 @@ vue-class-component@^7.1.0: resolved "https://registry.npm.taobao.org/vue-class-component/download/vue-class-component-7.2.3.tgz#a5b1abd53513a72ad51098752e2dedd499807cca" integrity sha1-pbGr1TUTpyrVEJh1Li3t1JmAfMo= +vue-clipboard2@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/vue-clipboard2/-/vue-clipboard2-0.3.1.tgz#6e551fb7bd384889b28b0da3b12289ed6bca4894" + integrity sha512-H5S/agEDj0kXjUb5GP2c0hCzIXWRBygaWLN3NEFsaI9I3uWin778SFEMt8QRXiPG+7anyjqWiw2lqcxWUSfkYg== + dependencies: + clipboard "^2.0.0" + vue-functional-data-merge@^3.1.0: version "3.1.0" resolved "https://registry.npm.taobao.org/vue-functional-data-merge/download/vue-functional-data-merge-3.1.0.tgz#08a7797583b7f35680587f8a1d51d729aa1dc657"
+ {{dockerPull}} +
{{dockerPull}}