From 9c4b1835fd4ed6ad3c8a0ed74383dea93ee73c42 Mon Sep 17 00:00:00 2001 From: "huanqing.shao" Date: Wed, 9 Oct 2019 12:13:32 +0800 Subject: [PATCH] =?UTF-8?q?404=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vuepress/theme/layouts/404.vue | 31 +++++++++++++++++++ docker/nginx.80.conf | 6 +++- .../config/sec-ctx/pod-kuboard.md | 2 +- package-lock.json | 13 -------- package.json | 3 +- 5 files changed, 38 insertions(+), 17 deletions(-) create mode 100644 .vuepress/theme/layouts/404.vue diff --git a/.vuepress/theme/layouts/404.vue b/.vuepress/theme/layouts/404.vue new file mode 100644 index 0000000..8fa5b54 --- /dev/null +++ b/.vuepress/theme/layouts/404.vue @@ -0,0 +1,31 @@ + + + diff --git a/docker/nginx.80.conf b/docker/nginx.80.conf index 497251f..8fb3fc9 100644 --- a/docker/nginx.80.conf +++ b/docker/nginx.80.conf @@ -6,8 +6,12 @@ server { index index.html index.htm; } - error_page 500 502 503 504 /50x.html; + error_page 404 500 502 503 504 /404.html; location /50x.html { root /usr/share/nginx/html; } + + location /404.html { + root /usr/share/nginx/html; + } } diff --git a/learning/k8s-intermediate/config/sec-ctx/pod-kuboard.md b/learning/k8s-intermediate/config/sec-ctx/pod-kuboard.md index d4f1fc2..911b860 100644 --- a/learning/k8s-intermediate/config/sec-ctx/pod-kuboard.md +++ b/learning/k8s-intermediate/config/sec-ctx/pod-kuboard.md @@ -22,7 +22,7 @@ meta: | 非Root
runAsNonRoot | boolean | 如果为 true,则 kubernetes 在运行容器之前将执行检查,以确保容器进程不是以 root 用户(UID为0)运行,否则将不能启动容器;如果此字段不设置或者为 false,则不执行此检查。该字段也可以在容器的 securityContext 中设定,如果 Pod 和容器的 securityContext 中都设定了这个字段,则对该容器来说以容器中的设置为准。 | | 用户
runAsUser | integer | 执行容器 entrypoint 进程的 UID。默认为镜像元数据中定义的用户(dockerfile 中通过 USER 指令指定)。该字段也可以在容器的 securityContext 中设定,如果 Pod 和容器的 securityContext 中都设定了这个字段,则对该容器来说以容器中的设置为准。 | | 用户组
runAsGroup | integer | 执行容器 entrypoint 进程的 GID。默认为 docker 引擎的 GID。该字段也可以在容器的 securityContext 中设定,如果 Pod 和容器的 securityContext 中都设定了这个字段,则对该容器来说以容器中的设置为准。 | -| fsGroup | integer | 一个特殊的补充用户组,将被应用到 Pod 中所有容器。某些类型的数据卷允许 Kubelete 修改数据卷的 ownership:
1. 修改后的 GID 取值来自于 fsGroup
2. setgid 标记位被设为 1(此时,数据卷中新创建的文件 owner 为 fsGroup)
3. permission 标记将与 `rw-rw----` 执行或运算
如果该字段不设置,kubelete 将不会修改数据卷的 ownership 和 permission | +| fsGroup | integer | 一个特殊的补充用户组,将被应用到 Pod 中所有容器。某些类型的数据卷允许 kubelet 修改数据卷的 ownership:
1. 修改后的 GID 取值来自于 fsGroup
2. setgid 标记位被设为 1(此时,数据卷中新创建的文件 owner 为 fsGroup)
3. permission 标记将与 `rw-rw----` 执行或运算
如果该字段不设置,kubelete 将不会修改数据卷的 ownership 和 permission | | 补充用户组
supplementalGroups | integer | 该列表中的用户组将被作为容器的主 GID 的补充,添加到 Pod 中容器的 enrtypoint 进程。可以不设置。 | | seLinuxOptions | Object | 此字段设定的 SELinux 上下文将被应用到 Pod 中所有容器。如果不指定,容器引擎将为每个容器分配一个随机的 SELinux 上下文。该字段也可以在容器的 securityContext 中设定,如果 Pod 和容器的 securityContext 中都设定了这个字段,则对该容器来说以容器中的设置为准。 | | sysctls | Array | 该列表中的所有 sysctl 将被应用到 Pod 中的容器。如果定义了容器引擎不支持的 sysctl,Pod 启动将会失败 | diff --git a/package-lock.json b/package-lock.json index 9ff9188..b4dc2b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10860,11 +10860,6 @@ "resolved": "https://registry.npm.taobao.org/slash/download/slash-2.0.0.tgz", "integrity": "sha1-3lUoUaF1nfOo8gZTVEL17E3eq0Q=" }, - "smoothscroll-polyfill": { - "version": "0.4.4", - "resolved": "https://registry.npm.taobao.org/smoothscroll-polyfill/download/smoothscroll-polyfill-0.4.4.tgz", - "integrity": "sha1-OiWRMdxpMObKgAA+HLA7YDtpq/g=" - }, "snapdragon": { "version": "0.8.2", "resolved": "https://registry.npm.taobao.org/snapdragon/download/snapdragon-0.8.2.tgz", @@ -12170,14 +12165,6 @@ "sitemap": "^2.0.1" } }, - "vuepress-plugin-smooth-scroll": { - "version": "0.0.4", - "resolved": "https://registry.npm.taobao.org/vuepress-plugin-smooth-scroll/download/vuepress-plugin-smooth-scroll-0.0.4.tgz", - "integrity": "sha1-ZEcilHbmBO+L1usqVtN3xpdKPY4=", - "requires": { - "smoothscroll-polyfill": "^0.4.4" - } - }, "watchpack": { "version": "1.6.0", "resolved": "https://registry.npm.taobao.org/watchpack/download/watchpack-1.6.0.tgz?cache=0&sync_timestamp=1562782917067&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwatchpack%2Fdownload%2Fwatchpack-1.6.0.tgz", diff --git a/package.json b/package.json index 281ff5f..1ebba34 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "npm": "^6.11.3", "reduce-css-calc": "^2.1.6", "vuepress": "^1.1.0", - "vuepress-plugin-named-chunks": "^1.0.2", - "vuepress-plugin-smooth-scroll": "0.0.4" + "vuepress-plugin-named-chunks": "^1.0.2" } }