2020-06-19 14:52:56 +08:00
<!DOCTYPE HTML>
< html lang = "zh-hans" >
< head >
< meta charset = "UTF-8" >
< meta content = "text/html; charset=utf-8" http-equiv = "Content-Type" >
2022-03-02 09:55:40 +08:00
< title > Volume · Kubernetes 中文指南——云原生应用架构实战手册< / title >
2020-06-19 14:52:56 +08:00
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" / >
< meta name = "description" content = "" >
< meta name = "generator" content = "GitBook 3.2.3" >
2022-03-01 22:33:07 +08:00
< meta name = "author" content = "宋净超( Jimmy Song) " >
2020-06-19 14:52:56 +08:00
< link rel = "stylesheet" href = "../gitbook/style.css" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-splitter/splitter.css" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-page-toc-button/plugin.css" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-image-captions/image-captions.css" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-back-to-top-button/plugin.css" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-search-plus/search.css" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-prism/prism-ghcolors.css" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css" >
2022-02-03 14:59:09 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css" >
2022-02-08 23:30:19 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-insert-logo/plugin.css" >
2020-06-19 14:52:56 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-fontsettings/website.css" >
< meta name = "HandheldFriendly" content = "true" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1, user-scalable=no" >
< meta name = "apple-mobile-web-app-capable" content = "yes" >
< meta name = "apple-mobile-web-app-status-bar-style" content = "black" >
< link rel = "apple-touch-icon-precomposed" sizes = "152x152" href = "../gitbook/images/apple-touch-icon-precomposed-152.png" >
< link rel = "shortcut icon" href = "../gitbook/images/favicon.ico" type = "image/x-icon" >
< link rel = "next" href = "persistent-volume.html" / >
< link rel = "prev" href = "configmap-hot-update.html" / >
< link rel = "shortcut icon" href = '../favicon.ico' type = "image/x-icon" >
< link rel = "bookmark" href = '../favicon.ico' type = "image/x-icon" >
< style >
@media only screen and (max-width: 640px) {
.book-header .hidden-mobile {
display: none;
}
}
< / style >
< script >
window["gitbook-plugin-github-buttons"] = {"repo":"rootsongjc/kubernetes-handbook","types":["star"],"size":"small"};
< / script >
< / head >
< body >
< div class = "book" >
< div class = "book-summary" >
< div id = "book-search-input" role = "search" >
< input type = "text" placeholder = "输入并搜索" / >
< / div >
< nav role = "navigation" >
< ul class = "summary" >
< li >
< a href = "https://jimmysong.io" target = "_blank" class = "custom-link" > 回到主页< / a >
< / li >
2022-04-12 20:31:45 +08:00
< li >
< a href = "https://jimmysong.io/book/" target = "_blank" class = "custom-link" > 全部书籍< / a >
< / li >
2020-06-19 14:52:56 +08:00
< li >
2022-03-01 22:33:07 +08:00
< a href = "https://jimmysong.io/awesome-cloud-native/" target = "_blank" class = "custom-link" > 云原生开源项目大全< / a >
2020-06-19 14:52:56 +08:00
< / li >
< li >
< a href = "https://cloudnative.to" target = "_blank" class = "custom-link" > 云原生社区< / a >
< / li >
< li class = "divider" > < / li >
< li class = "header" > 前言< / li >
< li class = "chapter " data-level = "1.1" data-path = "../" >
< a href = "../" >
< b > 1.1.< / b >
序言
< / a >
< / li >
< li class = "header" > 云原生< / li >
< li class = "chapter " data-level = "2.1" data-path = "../cloud-native/cloud-native-definition.html" >
< a href = "../cloud-native/cloud-native-definition.html" >
< b > 2.1.< / b >
2022-01-18 14:36:33 +08:00
云原生的定义
2020-06-19 14:52:56 +08:00
< / a >
< / li >
< li class = "chapter " data-level = "2.2" data-path = "../cloud-native/cloud-native-philosophy.html" >
< a href = "../cloud-native/cloud-native-philosophy.html" >
< b > 2.2.< / b >
云原生的设计哲学
< / a >
< / li >
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.3" data-path = "../cloud-native/kubernetes-history.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< a href = "../cloud-native/kubernetes-history.html" >
2020-06-19 14:52:56 +08:00
< b > 2.3.< / b >
2021-03-28 18:50:16 +08:00
Kubernetes 的诞生
< / a >
< / li >
< li class = "chapter " data-level = "2.4" data-path = "../cloud-native/kubernetes-and-cloud-native-app-overview.html" >
< a href = "../cloud-native/kubernetes-and-cloud-native-app-overview.html" >
< b > 2.4.< / b >
2021-03-28 16:58:13 +08:00
Kubernetes 与云原生应用概览
2020-11-18 19:26:50 +08:00
< / a >
< / li >
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.5" data-path = "../cloud-native/from-kubernetes-to-cloud-native.html" >
2020-11-18 19:26:50 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/from-kubernetes-to-cloud-native.html" >
2020-11-18 19:26:50 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.5.< / b >
2020-11-18 19:26:50 +08:00
2021-07-14 09:23:37 +08:00
云原生应用之路 —— 从 Kubernetes 到云原生
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.6" data-path = "../cloud-native/define-cloud-native-app.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/define-cloud-native-app.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.6.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
定义云原生应用
2020-06-19 14:52:56 +08:00
< / a >
2021-03-28 16:58:13 +08:00
< ul class = "articles" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.6.1" data-path = "../cloud-native/oam.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/oam.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.6.1.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
OAM
2020-06-19 14:52:56 +08:00
< / a >
2021-03-28 16:58:13 +08:00
< ul class = "articles" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.6.1.1" data-path = "../cloud-native/workload.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/workload.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.6.1.1.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
Workload
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.6.1.2" data-path = "../cloud-native/component.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/component.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.6.1.2.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
Component
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.6.1.3" data-path = "../cloud-native/trait.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/trait.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.6.1.3.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
Trait
2020-06-19 14:52:56 +08:00
< / a >
2021-03-28 16:58:13 +08:00
< / li >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.6.1.4" data-path = "../cloud-native/application-scope.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/application-scope.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.6.1.4.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
Application Scope
2020-06-19 14:52:56 +08:00
< / a >
2021-03-28 16:58:13 +08:00
< / li >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.6.1.5" data-path = "../cloud-native/application-configuration.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/application-configuration.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.6.1.5.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
Application Configuration
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< / ul >
2020-06-24 16:47:22 +08:00
2021-03-28 16:58:13 +08:00
< / li >
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.6.2" data-path = "../cloud-native/crossplane.html" >
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/crossplane.html" >
2020-06-24 16:47:22 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.6.2.< / b >
2020-06-24 16:47:22 +08:00
2021-03-28 16:58:13 +08:00
Crossplane
2020-06-24 16:47:22 +08:00
< / a >
2020-06-19 14:52:56 +08:00
< / li >
2021-03-28 16:58:13 +08:00
< / ul >
< / li >
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.7" data-path = "../cloud-native/cloud-native-programming-languages.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/cloud-native-programming-languages.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.7.< / b >
2020-06-19 14:52:56 +08:00
2021-12-25 21:47:43 +08:00
云原生平台配置语言
2020-06-19 14:52:56 +08:00
< / a >
2021-03-28 16:58:13 +08:00
< ul class = "articles" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.7.1" data-path = "../cloud-native/cloud-native-programming-language-ballerina.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/cloud-native-programming-language-ballerina.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.7.1.< / b >
2020-06-19 14:52:56 +08:00
2021-12-25 21:47:43 +08:00
Ballerina
2020-06-19 14:52:56 +08:00
< / a >
2020-06-24 16:47:22 +08:00
< / li >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.7.2" data-path = "../cloud-native/cloud-native-programming-language-pulumi.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/cloud-native-programming-language-pulumi.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.7.2.< / b >
2020-06-19 14:52:56 +08:00
2021-12-25 21:47:43 +08:00
Pulumi
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2020-06-24 16:47:22 +08:00
< / ul >
2020-06-19 14:52:56 +08:00
2020-06-24 16:47:22 +08:00
< / li >
2021-03-28 18:50:16 +08:00
< li class = "chapter " data-level = "2.8" data-path = "../cloud-native/the-future-of-cloud-native.html" >
2020-06-24 16:47:22 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/the-future-of-cloud-native.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
< b > 2.8.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
云原生的未来
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2020-06-24 16:47:22 +08:00
2021-03-28 16:58:13 +08:00
< li class = "header" > 快速入门< / li >
< li class = "chapter " data-level = "3.1" data-path = "../cloud-native/quick-start.html" >
2020-06-24 16:47:22 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/quick-start.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< b > 3.1.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
云原生新手入门指南
2020-06-19 14:52:56 +08:00
< / a >
2021-03-28 16:58:13 +08:00
< / li >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "3.2" data-path = "../cloud-native/play-with-kubernetes.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/play-with-kubernetes.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< b > 3.2.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
Play with Kubernetes
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "3.3" data-path = "../cloud-native/cloud-native-local-quick-start.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/cloud-native-local-quick-start.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< b > 3.3.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
快速部署一个云原生本地实验环境
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "3.4" data-path = "../cloud-native/setup-kubernetes-with-rancher-and-aliyun.html" >
2020-06-24 16:47:22 +08:00
2021-03-28 16:58:13 +08:00
< a href = "../cloud-native/setup-kubernetes-with-rancher-and-aliyun.html" >
2020-06-24 16:47:22 +08:00
2021-03-28 16:58:13 +08:00
< b > 3.4.< / b >
2020-06-24 16:47:22 +08:00
2021-03-28 16:58:13 +08:00
使用 Rancher 在阿里云上部署 Kubenretes 集群
2020-06-24 16:47:22 +08:00
< / a >
< / li >
2020-06-19 14:52:56 +08:00
< li class = "header" > 概念与原理< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "4.1" data-path = "./" >
2020-06-19 14:52:56 +08:00
< a href = "./" >
2021-03-28 16:58:13 +08:00
< b > 4.1.< / b >
2020-06-19 14:52:56 +08:00
Kubernetes 架构
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "4.1.1" data-path = "concepts.html" >
2020-06-19 14:52:56 +08:00
< a href = "concepts.html" >
2021-03-28 16:58:13 +08:00
< b > 4.1.1.< / b >
2020-06-19 14:52:56 +08:00
2021-12-25 21:47:43 +08:00
Kubernetes 的设计理念
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "4.1.2" data-path = "etcd.html" >
2020-06-19 14:52:56 +08:00
< a href = "etcd.html" >
2021-03-28 16:58:13 +08:00
< b > 4.1.2.< / b >
2020-06-19 14:52:56 +08:00
Etcd 解析
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "4.1.3" data-path = "open-interfaces.html" >
2020-06-19 14:52:56 +08:00
< a href = "open-interfaces.html" >
2021-03-28 16:58:13 +08:00
< b > 4.1.3.< / b >
2020-06-19 14:52:56 +08:00
开放接口
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "4.1.3.1" data-path = "cri.html" >
2020-06-19 14:52:56 +08:00
< a href = "cri.html" >
2021-03-28 16:58:13 +08:00
< b > 4.1.3.1.< / b >
2020-06-19 14:52:56 +08:00
2021-12-23 20:13:17 +08:00
容器运行时接口( CRI)
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "4.1.3.2" data-path = "cni.html" >
2020-06-19 14:52:56 +08:00
< a href = "cni.html" >
2021-03-28 16:58:13 +08:00
< b > 4.1.3.2.< / b >
2020-06-19 14:52:56 +08:00
2021-12-23 20:13:17 +08:00
容器网络接口( CNI)
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "4.1.3.3" data-path = "csi.html" >
2020-06-19 14:52:56 +08:00
< a href = "csi.html" >
2021-03-28 16:58:13 +08:00
< b > 4.1.3.3.< / b >
2020-06-19 14:52:56 +08:00
2021-12-23 20:13:17 +08:00
容器存储接口( CSI)
2020-06-19 14:52:56 +08:00
< / a >
< / li >
< / ul >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.1.4" data-path = "objects.html" >
2020-06-19 14:52:56 +08:00
2021-07-09 16:57:54 +08:00
< a href = "objects.html" >
2020-06-19 14:52:56 +08:00
2021-07-09 16:57:54 +08:00
< b > 4.1.4.< / b >
2020-06-19 14:52:56 +08:00
2021-12-23 20:13:17 +08:00
Kubernetes 中的资源对象
2020-06-19 14:52:56 +08:00
< / a >
< / li >
< / ul >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.2" data-path = "pod-state-and-lifecycle.html" >
2020-06-19 14:52:56 +08:00
< a href = "pod-state-and-lifecycle.html" >
2021-07-09 16:57:54 +08:00
< b > 4.2.< / b >
2020-06-19 14:52:56 +08:00
Pod 状态与生命周期管理
< / a >
< ul class = "articles" >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.2.1" data-path = "pod-overview.html" >
2020-06-19 14:52:56 +08:00
< a href = "pod-overview.html" >
2021-07-09 16:57:54 +08:00
< b > 4.2.1.< / b >
2020-06-19 14:52:56 +08:00
Pod 概览
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.2.2" data-path = "pod.html" >
2020-06-19 14:52:56 +08:00
< a href = "pod.html" >
2021-07-09 16:57:54 +08:00
< b > 4.2.2.< / b >
2020-06-19 14:52:56 +08:00
Pod 解析
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.2.3" data-path = "init-containers.html" >
2020-06-19 14:52:56 +08:00
< a href = "init-containers.html" >
2021-07-09 16:57:54 +08:00
< b > 4.2.3.< / b >
2020-06-19 14:52:56 +08:00
Init 容器
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.2.4" data-path = "pause-container.html" >
2020-06-19 14:52:56 +08:00
< a href = "pause-container.html" >
2021-07-09 16:57:54 +08:00
< b > 4.2.4.< / b >
2020-06-19 14:52:56 +08:00
Pause 容器
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.2.5" data-path = "pod-security-policy.html" >
2020-06-19 14:52:56 +08:00
< a href = "pod-security-policy.html" >
2021-07-09 16:57:54 +08:00
< b > 4.2.5.< / b >
2020-06-19 14:52:56 +08:00
Pod 安全策略
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.2.6" data-path = "pod-lifecycle.html" >
2020-06-19 14:52:56 +08:00
< a href = "pod-lifecycle.html" >
2021-07-09 16:57:54 +08:00
< b > 4.2.6.< / b >
2020-06-19 14:52:56 +08:00
Pod 的生命周期
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.2.7" data-path = "pod-hook.html" >
2020-06-19 14:52:56 +08:00
< a href = "pod-hook.html" >
2021-07-09 16:57:54 +08:00
< b > 4.2.7.< / b >
2020-06-19 14:52:56 +08:00
Pod Hook
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.2.8" data-path = "pod-preset.html" >
2020-06-19 14:52:56 +08:00
< a href = "pod-preset.html" >
2021-07-09 16:57:54 +08:00
< b > 4.2.8.< / b >
2020-06-19 14:52:56 +08:00
Pod Preset
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.2.9" data-path = "pod-disruption-budget.html" >
2020-06-19 14:52:56 +08:00
< a href = "pod-disruption-budget.html" >
2021-07-09 16:57:54 +08:00
< b > 4.2.9.< / b >
2020-06-19 14:52:56 +08:00
Pod 中断与 PDB( Pod 中断预算)
< / a >
< / li >
< / ul >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.3" data-path = "cluster.html" >
2020-06-19 14:52:56 +08:00
< a href = "cluster.html" >
2021-07-09 16:57:54 +08:00
< b > 4.3.< / b >
2020-06-19 14:52:56 +08:00
集群资源管理
< / a >
< ul class = "articles" >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.3.1" data-path = "node.html" >
2020-06-19 14:52:56 +08:00
< a href = "node.html" >
2021-07-09 16:57:54 +08:00
< b > 4.3.1.< / b >
2020-06-19 14:52:56 +08:00
Node
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.3.2" data-path = "namespace.html" >
2020-06-19 14:52:56 +08:00
< a href = "namespace.html" >
2021-07-09 16:57:54 +08:00
< b > 4.3.2.< / b >
2020-06-19 14:52:56 +08:00
Namespace
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.3.3" data-path = "label.html" >
2020-06-19 14:52:56 +08:00
< a href = "label.html" >
2021-07-09 16:57:54 +08:00
< b > 4.3.3.< / b >
2020-06-19 14:52:56 +08:00
Label
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.3.4" data-path = "annotation.html" >
2020-06-19 14:52:56 +08:00
< a href = "annotation.html" >
2021-07-09 16:57:54 +08:00
< b > 4.3.4.< / b >
2020-06-19 14:52:56 +08:00
Annotation
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.3.5" data-path = "taint-and-toleration.html" >
2020-06-19 14:52:56 +08:00
< a href = "taint-and-toleration.html" >
2021-07-09 16:57:54 +08:00
< b > 4.3.5.< / b >
2020-06-19 14:52:56 +08:00
Taint 和 Toleration( 污点和容忍)
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.3.6" data-path = "garbage-collection.html" >
2020-06-19 14:52:56 +08:00
< a href = "garbage-collection.html" >
2021-07-09 16:57:54 +08:00
< b > 4.3.6.< / b >
2020-06-19 14:52:56 +08:00
垃圾收集
< / a >
< / li >
< / ul >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.4" data-path = "controllers.html" >
2020-06-19 14:52:56 +08:00
< a href = "controllers.html" >
2021-07-09 16:57:54 +08:00
< b > 4.4.< / b >
2020-06-19 14:52:56 +08:00
控制器
< / a >
< ul class = "articles" >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.4.1" data-path = "deployment.html" >
2020-06-19 14:52:56 +08:00
< a href = "deployment.html" >
2021-07-09 16:57:54 +08:00
< b > 4.4.1.< / b >
2020-06-19 14:52:56 +08:00
Deployment
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.4.2" data-path = "statefulset.html" >
2020-06-19 14:52:56 +08:00
< a href = "statefulset.html" >
2021-07-09 16:57:54 +08:00
< b > 4.4.2.< / b >
2020-06-19 14:52:56 +08:00
StatefulSet
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.4.3" data-path = "daemonset.html" >
2020-06-19 14:52:56 +08:00
< a href = "daemonset.html" >
2021-07-09 16:57:54 +08:00
< b > 4.4.3.< / b >
2020-06-19 14:52:56 +08:00
DaemonSet
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.4.4" data-path = "replicaset.html" >
2020-06-19 14:52:56 +08:00
< a href = "replicaset.html" >
2021-07-09 16:57:54 +08:00
< b > 4.4.4.< / b >
2020-06-19 14:52:56 +08:00
ReplicationController 和 ReplicaSet
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.4.5" data-path = "job.html" >
2020-06-19 14:52:56 +08:00
< a href = "job.html" >
2021-07-09 16:57:54 +08:00
< b > 4.4.5.< / b >
2020-06-19 14:52:56 +08:00
Job
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.4.6" data-path = "cronjob.html" >
2020-06-19 14:52:56 +08:00
< a href = "cronjob.html" >
2021-07-09 16:57:54 +08:00
< b > 4.4.6.< / b >
2020-06-19 14:52:56 +08:00
CronJob
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.4.7" data-path = "horizontal-pod-autoscaling.html" >
2020-06-19 14:52:56 +08:00
< a href = "horizontal-pod-autoscaling.html" >
2021-07-09 16:57:54 +08:00
< b > 4.4.7.< / b >
2020-06-19 14:52:56 +08:00
Horizontal Pod Autoscaling
< / a >
< ul class = "articles" >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.4.7.1" data-path = "custom-metrics-hpa.html" >
2020-06-19 14:52:56 +08:00
< a href = "custom-metrics-hpa.html" >
2021-07-09 16:57:54 +08:00
< b > 4.4.7.1.< / b >
2020-06-19 14:52:56 +08:00
自定义指标 HPA
< / a >
< / li >
< / ul >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.4.8" data-path = "admission-controller.html" >
2020-06-19 14:52:56 +08:00
< a href = "admission-controller.html" >
2021-07-09 16:57:54 +08:00
< b > 4.4.8.< / b >
2020-06-19 14:52:56 +08:00
准入控制器( Admission Controller)
< / a >
< / li >
< / ul >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.5" data-path = "service-discovery.html" >
2020-06-19 14:52:56 +08:00
< a href = "service-discovery.html" >
2021-07-09 16:57:54 +08:00
< b > 4.5.< / b >
2020-06-19 14:52:56 +08:00
2021-07-09 16:57:54 +08:00
服务发现与路由
2020-06-19 14:52:56 +08:00
< / a >
< ul class = "articles" >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.5.1" data-path = "service.html" >
2020-06-19 14:52:56 +08:00
< a href = "service.html" >
2021-07-09 16:57:54 +08:00
< b > 4.5.1.< / b >
2020-06-19 14:52:56 +08:00
Service
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.5.2" data-path = "topology-aware-routing.html" >
< a href = "topology-aware-routing.html" >
< b > 4.5.2.< / b >
拓扑感知路由
< / a >
< / li >
< li class = "chapter " data-level = "4.5.3" data-path = "ingress.html" >
2020-06-19 14:52:56 +08:00
< a href = "ingress.html" >
2021-07-09 16:57:54 +08:00
< b > 4.5.3.< / b >
2020-06-19 14:52:56 +08:00
Ingress
< / a >
< ul class = "articles" >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.5.3.1" data-path = "traefik-ingress-controller.html" >
2020-06-19 14:52:56 +08:00
< a href = "traefik-ingress-controller.html" >
2021-07-09 16:57:54 +08:00
< b > 4.5.3.1.< / b >
2020-06-19 14:52:56 +08:00
Traefik Ingress Controller
< / a >
< / li >
< / ul >
2021-02-09 20:56:37 +08:00
< / li >
2021-12-23 20:13:17 +08:00
< li class = "chapter " data-level = "4.5.4" data-path = "gateway.html" >
2021-02-09 20:56:37 +08:00
2021-12-23 20:13:17 +08:00
< a href = "gateway.html" >
2021-02-09 20:56:37 +08:00
2021-07-09 16:57:54 +08:00
< b > 4.5.4.< / b >
2021-02-09 20:56:37 +08:00
2021-12-23 20:13:17 +08:00
Gateway
2021-02-09 20:56:37 +08:00
< / a >
2020-06-19 14:52:56 +08:00
< / li >
< / ul >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.6" data-path = "authentication-and-permission.html" >
2020-06-19 14:52:56 +08:00
< a href = "authentication-and-permission.html" >
2021-07-09 16:57:54 +08:00
< b > 4.6.< / b >
2020-06-19 14:52:56 +08:00
身份与权限控制
< / a >
< ul class = "articles" >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.6.1" data-path = "serviceaccount.html" >
2020-06-19 14:52:56 +08:00
< a href = "serviceaccount.html" >
2021-07-09 16:57:54 +08:00
< b > 4.6.1.< / b >
2020-06-19 14:52:56 +08:00
ServiceAccount
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.6.2" data-path = "rbac.html" >
2020-06-19 14:52:56 +08:00
< a href = "rbac.html" >
2021-07-09 16:57:54 +08:00
< b > 4.6.2.< / b >
2020-06-19 14:52:56 +08:00
2021-11-09 17:32:02 +08:00
基于角色的访问控制( RBAC)
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.6.3" data-path = "network-policy.html" >
2020-06-19 14:52:56 +08:00
< a href = "network-policy.html" >
2021-07-09 16:57:54 +08:00
< b > 4.6.3.< / b >
2020-06-19 14:52:56 +08:00
NetworkPolicy
< / a >
2022-04-12 20:31:45 +08:00
< / li >
< li class = "chapter " data-level = "4.6.4" data-path = "spiffe.html" >
< a href = "spiffe.html" >
< b > 4.6.4.< / b >
SPIFFE
< / a >
2022-04-19 20:59:07 +08:00
< ul class = "articles" >
< li class = "chapter " data-level = "4.6.4.1" data-path = "spire.html" >
< a href = "spire.html" >
< b > 4.6.4.1.< / b >
SPIRE
< / a >
< / li >
< / ul >
2020-06-19 14:52:56 +08:00
< / li >
< / ul >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.7" data-path = "networking.html" >
< a href = "networking.html" >
< b > 4.7.< / b >
网络
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "4.7.1" data-path = "flannel.html" >
< a href = "flannel.html" >
< b > 4.7.1.< / b >
2021-12-23 20:13:17 +08:00
扁平网络 Flannel
2021-07-09 16:57:54 +08:00
< / a >
< / li >
< li class = "chapter " data-level = "4.7.2" data-path = "calico.html" >
< a href = "calico.html" >
< b > 4.7.2.< / b >
2021-12-23 20:13:17 +08:00
非 Overlay 扁平网络 Calico
2021-07-09 16:57:54 +08:00
< / a >
< / li >
< li class = "chapter " data-level = "4.7.3" data-path = "cilium.html" >
< a href = "cilium.html" >
< b > 4.7.3.< / b >
2021-12-23 20:13:17 +08:00
基于 eBPF 的网络 Cilium
2021-07-09 16:57:54 +08:00
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "4.7.3.1" data-path = "cilium-concepts.html" >
< a href = "cilium-concepts.html" >
< b > 4.7.3.1.< / b >
Cilium 架构设计与概念解析
< / a >
< / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "4.8" data-path = "storage.html" >
2020-06-19 14:52:56 +08:00
< a href = "storage.html" >
2021-07-09 16:57:54 +08:00
< b > 4.8.< / b >
2020-06-19 14:52:56 +08:00
存储
< / a >
< ul class = "articles" >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.8.1" data-path = "secret.html" >
2020-06-19 14:52:56 +08:00
< a href = "secret.html" >
2021-07-09 16:57:54 +08:00
< b > 4.8.1.< / b >
2020-06-19 14:52:56 +08:00
Secret
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.8.2" data-path = "configmap.html" >
2020-06-19 14:52:56 +08:00
< a href = "configmap.html" >
2021-07-09 16:57:54 +08:00
< b > 4.8.2.< / b >
2020-06-19 14:52:56 +08:00
ConfigMap
< / a >
< ul class = "articles" >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.8.2.1" data-path = "configmap-hot-update.html" >
2020-06-19 14:52:56 +08:00
< a href = "configmap-hot-update.html" >
2021-07-09 16:57:54 +08:00
< b > 4.8.2.1.< / b >
2020-06-19 14:52:56 +08:00
ConfigMap 的热更新
< / a >
< / li >
< / ul >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter active" data-level = "4.8.3" data-path = "volume.html" >
2020-06-19 14:52:56 +08:00
< a href = "volume.html" >
2021-07-09 16:57:54 +08:00
< b > 4.8.3.< / b >
2020-06-19 14:52:56 +08:00
Volume
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.8.4" data-path = "persistent-volume.html" >
2020-06-19 14:52:56 +08:00
< a href = "persistent-volume.html" >
2021-07-09 16:57:54 +08:00
< b > 4.8.4.< / b >
2020-06-19 14:52:56 +08:00
2021-11-09 17:32:02 +08:00
持久化卷( Persistent Volume)
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.8.5" data-path = "storageclass.html" >
2020-06-19 14:52:56 +08:00
< a href = "storageclass.html" >
2021-07-09 16:57:54 +08:00
< b > 4.8.5.< / b >
2020-06-19 14:52:56 +08:00
Storage Class
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.8.6" data-path = "local-persistent-storage.html" >
2020-06-19 14:52:56 +08:00
< a href = "local-persistent-storage.html" >
2021-07-09 16:57:54 +08:00
< b > 4.8.6.< / b >
2020-06-19 14:52:56 +08:00
本地持久化存储
< / a >
< / li >
< / ul >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.9" data-path = "extension.html" >
2020-06-19 14:52:56 +08:00
< a href = "extension.html" >
2021-07-09 16:57:54 +08:00
< b > 4.9.< / b >
2020-06-19 14:52:56 +08:00
集群扩展
< / a >
< ul class = "articles" >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.9.1" data-path = "custom-resource.html" >
2020-06-19 14:52:56 +08:00
< a href = "custom-resource.html" >
2021-07-09 16:57:54 +08:00
< b > 4.9.1.< / b >
2020-06-19 14:52:56 +08:00
使用自定义资源扩展 API
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.9.2" data-path = "crd.html" >
2020-06-19 14:52:56 +08:00
< a href = "crd.html" >
2021-07-09 16:57:54 +08:00
< b > 4.9.2.< / b >
2020-06-19 14:52:56 +08:00
使用 CRD 扩展 Kubernetes API
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.9.3" data-path = "aggregated-api-server.html" >
2020-06-19 14:52:56 +08:00
< a href = "aggregated-api-server.html" >
2021-07-09 16:57:54 +08:00
< b > 4.9.3.< / b >
2020-06-19 14:52:56 +08:00
Aggregated API Server
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.9.4" data-path = "apiservice.html" >
2020-06-19 14:52:56 +08:00
< a href = "apiservice.html" >
2021-07-09 16:57:54 +08:00
< b > 4.9.4.< / b >
2020-06-19 14:52:56 +08:00
APIService
< / a >
< / li >
2021-07-09 16:57:54 +08:00
< li class = "chapter " data-level = "4.9.5" data-path = "service-catalog.html" >
2020-06-19 14:52:56 +08:00
< a href = "service-catalog.html" >
2021-07-09 16:57:54 +08:00
< b > 4.9.5.< / b >
2020-06-19 14:52:56 +08:00
2021-12-25 21:47:43 +08:00
服务目录( Service Catalog)
2020-06-19 14:52:56 +08:00
< / a >
2021-02-09 20:56:37 +08:00
< / li >
2021-10-15 13:19:39 +08:00
< / ul >
< / li >
< li class = "chapter " data-level = "4.10" data-path = "multicluster.html" >
2021-02-09 20:56:37 +08:00
< a href = "multicluster.html" >
2021-10-15 13:19:39 +08:00
< b > 4.10.< / b >
2021-02-09 20:56:37 +08:00
多集群管理
< / a >
2021-10-15 13:19:39 +08:00
< ul class = "articles" >
< li class = "chapter " data-level = "4.10.1" data-path = "multi-cluster-services-api.html" >
< a href = "multi-cluster-services-api.html" >
< b > 4.10.1.< / b >
2021-11-09 17:32:02 +08:00
多集群服务 API( Multi-Cluster Services API)
< / a >
< / li >
< li class = "chapter " data-level = "4.10.2" data-path = "../practice/federation.html" >
< a href = "../practice/federation.html" >
< b > 4.10.2.< / b >
集群联邦( Cluster Federation)
2021-10-15 13:19:39 +08:00
< / a >
2020-06-19 14:52:56 +08:00
< / li >
< / ul >
< / li >
2021-10-15 13:19:39 +08:00
< li class = "chapter " data-level = "4.11" data-path = "scheduling.html" >
2020-06-19 14:52:56 +08:00
< a href = "scheduling.html" >
2021-10-15 13:19:39 +08:00
< b > 4.11.< / b >
2020-06-19 14:52:56 +08:00
资源调度
< / a >
< ul class = "articles" >
2021-10-15 13:19:39 +08:00
< li class = "chapter " data-level = "4.11.1" data-path = "qos.html" >
2020-06-19 14:52:56 +08:00
< a href = "qos.html" >
2021-10-15 13:19:39 +08:00
< b > 4.11.1.< / b >
2020-06-19 14:52:56 +08:00
2021-11-09 17:32:02 +08:00
服务质量等级( QoS)
2020-06-19 14:52:56 +08:00
< / a >
< / li >
< / ul >
< / li >
< li class = "header" > 用户指南< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.1" data-path = "../guide/" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/" >
2021-03-28 16:58:13 +08:00
< b > 5.1.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 18:50:16 +08:00
用户指南概览
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.2" data-path = "../guide/resource-configuration.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/resource-configuration.html" >
2021-03-28 16:58:13 +08:00
< b > 5.2.< / b >
2020-06-19 14:52:56 +08:00
资源对象配置
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.2.1" data-path = "../guide/configure-liveness-readiness-probes.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/configure-liveness-readiness-probes.html" >
2021-03-28 16:58:13 +08:00
< b > 5.2.1.< / b >
2020-06-19 14:52:56 +08:00
配置 Pod 的 liveness 和 readiness 探针
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.2.2" data-path = "../guide/configure-pod-service-account.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/configure-pod-service-account.html" >
2021-03-28 16:58:13 +08:00
< b > 5.2.2.< / b >
2020-06-19 14:52:56 +08:00
配置 Pod 的 Service Account
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.2.3" data-path = "../guide/secret-configuration.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/secret-configuration.html" >
2021-03-28 16:58:13 +08:00
< b > 5.2.3.< / b >
2020-06-19 14:52:56 +08:00
Secret 配置
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.2.4" data-path = "../guide/resource-quota-management.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/resource-quota-management.html" >
2021-03-28 16:58:13 +08:00
< b > 5.2.4.< / b >
2020-06-19 14:52:56 +08:00
管理 namespace 中的资源配额
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.3" data-path = "../guide/command-usage.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/command-usage.html" >
2021-03-28 16:58:13 +08:00
< b > 5.3.< / b >
2020-06-19 14:52:56 +08:00
命令使用
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.3.1" data-path = "../guide/docker-cli-to-kubectl.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/docker-cli-to-kubectl.html" >
2021-03-28 16:58:13 +08:00
< b > 5.3.1.< / b >
2020-06-19 14:52:56 +08:00
Docker 用户过渡到 kubectl 命令行指南
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.3.2" data-path = "../guide/using-kubectl.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/using-kubectl.html" >
2021-03-28 16:58:13 +08:00
< b > 5.3.2.< / b >
2020-06-19 14:52:56 +08:00
kubectl 命令概览
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.3.3" data-path = "../guide/kubectl-cheatsheet.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/kubectl-cheatsheet.html" >
2021-03-28 16:58:13 +08:00
< b > 5.3.3.< / b >
2020-06-19 14:52:56 +08:00
kubectl 命令技巧大全
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.3.4" data-path = "../guide/using-etcdctl-to-access-kubernetes-data.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/using-etcdctl-to-access-kubernetes-data.html" >
2021-03-28 16:58:13 +08:00
< b > 5.3.4.< / b >
2020-06-19 14:52:56 +08:00
2021-08-04 16:20:42 +08:00
使用 etcdctl 访问 Kubernetes 数据
2020-06-19 14:52:56 +08:00
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.4" data-path = "../guide/cluster-security-management.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/cluster-security-management.html" >
2021-03-28 16:58:13 +08:00
< b > 5.4.< / b >
2020-06-19 14:52:56 +08:00
集群安全性管理
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.4.1" data-path = "../guide/managing-tls-in-a-cluster.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/managing-tls-in-a-cluster.html" >
2021-03-28 16:58:13 +08:00
< b > 5.4.1.< / b >
2020-06-19 14:52:56 +08:00
管理集群中的 TLS
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.4.2" data-path = "../guide/kubelet-authentication-authorization.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/kubelet-authentication-authorization.html" >
2021-03-28 16:58:13 +08:00
< b > 5.4.2.< / b >
2020-06-19 14:52:56 +08:00
kubelet 的认证授权
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.4.3" data-path = "../guide/tls-bootstrapping.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/tls-bootstrapping.html" >
2021-03-28 16:58:13 +08:00
< b > 5.4.3.< / b >
2020-06-19 14:52:56 +08:00
2020-07-17 11:08:23 +08:00
TLS Bootstrap
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.4.4" data-path = "../guide/kubectl-user-authentication-authorization.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/kubectl-user-authentication-authorization.html" >
2021-03-28 16:58:13 +08:00
< b > 5.4.4.< / b >
2020-06-19 14:52:56 +08:00
创建用户认证授权的 kubeconfig 文件
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.4.5" data-path = "../guide/ip-masq-agent.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/ip-masq-agent.html" >
2021-03-28 16:58:13 +08:00
< b > 5.4.5.< / b >
2020-06-19 14:52:56 +08:00
IP 伪装代理
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.4.6" data-path = "../guide/auth-with-kubeconfig-or-token.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/auth-with-kubeconfig-or-token.html" >
2021-03-28 16:58:13 +08:00
< b > 5.4.6.< / b >
2020-06-19 14:52:56 +08:00
使用 kubeconfig 或 token 进行用户身份认证
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.4.7" data-path = "../guide/authentication.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/authentication.html" >
2021-03-28 16:58:13 +08:00
< b > 5.4.7.< / b >
2020-06-19 14:52:56 +08:00
Kubernetes 中的用户与身份认证授权
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.4.8" data-path = "../guide/kubernetes-security-best-practice.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/kubernetes-security-best-practice.html" >
2021-03-28 16:58:13 +08:00
< b > 5.4.8.< / b >
2020-06-19 14:52:56 +08:00
Kubernetes 集群安全性配置最佳实践
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.5" data-path = "../guide/access-kubernetes-cluster.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/access-kubernetes-cluster.html" >
2021-03-28 16:58:13 +08:00
< b > 5.5.< / b >
2020-06-19 14:52:56 +08:00
访问 Kubernetes 集群
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.5.1" data-path = "../guide/access-cluster.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/access-cluster.html" >
2021-03-28 16:58:13 +08:00
< b > 5.5.1.< / b >
2020-06-19 14:52:56 +08:00
访问集群
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.5.2" data-path = "../guide/authenticate-across-clusters-kubeconfig.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/authenticate-across-clusters-kubeconfig.html" >
2021-03-28 16:58:13 +08:00
< b > 5.5.2.< / b >
2020-06-19 14:52:56 +08:00
使用 kubeconfig 文件配置跨集群认证
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.5.3" data-path = "../guide/connecting-to-applications-port-forward.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/connecting-to-applications-port-forward.html" >
2021-03-28 16:58:13 +08:00
< b > 5.5.3.< / b >
2020-06-19 14:52:56 +08:00
通过端口转发访问集群中的应用程序
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.5.4" data-path = "../guide/service-access-application-cluster.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/service-access-application-cluster.html" >
2021-03-28 16:58:13 +08:00
< b > 5.5.4.< / b >
2020-06-19 14:52:56 +08:00
使用 service 访问群集中的应用程序
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.5.5" data-path = "../guide/accessing-kubernetes-pods-from-outside-of-the-cluster.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/accessing-kubernetes-pods-from-outside-of-the-cluster.html" >
2021-03-28 16:58:13 +08:00
< b > 5.5.5.< / b >
2020-06-19 14:52:56 +08:00
从外部访问 Kubernetes 中的 Pod
< / a >
< / li >
2021-12-25 21:47:43 +08:00
< li class = "chapter " data-level = "5.5.6" data-path = "../guide/kubernetes-desktop-client.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/kubernetes-desktop-client.html" >
2021-12-25 21:47:43 +08:00
< b > 5.5.6.< / b >
2020-06-19 14:52:56 +08:00
2021-12-25 21:47:43 +08:00
Lens - Kubernetes IDE
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-12-25 21:47:43 +08:00
< li class = "chapter " data-level = "5.5.7" data-path = "../guide/kubernator-kubernetes-ui.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/kubernator-kubernetes-ui.html" >
2021-12-25 21:47:43 +08:00
< b > 5.5.7.< / b >
2020-06-19 14:52:56 +08:00
Kubernator - 更底层的 Kubernetes UI
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.6" data-path = "../guide/application-development-deployment-flow.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/application-development-deployment-flow.html" >
2021-03-28 16:58:13 +08:00
< b > 5.6.< / b >
2020-06-19 14:52:56 +08:00
在 Kubernetes 中开发部署应用
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.6.1" data-path = "../guide/deploy-applications-in-kubernetes.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/deploy-applications-in-kubernetes.html" >
2021-03-28 16:58:13 +08:00
< b > 5.6.1.< / b >
2020-06-19 14:52:56 +08:00
2021-08-04 16:20:42 +08:00
适用于 Kubernetes 的应用开发部署流程
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.6.2" data-path = "../guide/migrating-hadoop-yarn-to-kubernetes.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/migrating-hadoop-yarn-to-kubernetes.html" >
2021-03-28 16:58:13 +08:00
< b > 5.6.2.< / b >
2020-06-19 14:52:56 +08:00
迁移传统应用到 Kubernetes 中 —— 以 Hadoop YARN 为例
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "5.6.3" data-path = "../guide/using-statefulset.html" >
2020-06-19 14:52:56 +08:00
< a href = "../guide/using-statefulset.html" >
2021-03-28 16:58:13 +08:00
< b > 5.6.3.< / b >
2020-06-19 14:52:56 +08:00
使用 StatefulSet 部署用状态应用
< / a >
< / li >
< / ul >
< / li >
< li class = "header" > 最佳实践< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.1" data-path = "../practice/" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/" >
2021-03-28 16:58:13 +08:00
< b > 6.1.< / b >
2020-06-19 14:52:56 +08:00
最佳实践概览
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2" data-path = "../practice/install-kubernetes-on-centos.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/install-kubernetes-on-centos.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.< / b >
2020-06-19 14:52:56 +08:00
在 CentOS 上部署 Kubernetes 集群
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2.1" data-path = "../practice/create-tls-and-secret-key.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/create-tls-and-secret-key.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.1.< / b >
2020-06-19 14:52:56 +08:00
创建 TLS 证书和秘钥
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2.2" data-path = "../practice/create-kubeconfig.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/create-kubeconfig.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.2.< / b >
2020-06-19 14:52:56 +08:00
创建 kubeconfig 文件
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2.3" data-path = "../practice/etcd-cluster-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/etcd-cluster-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.3.< / b >
2020-06-19 14:52:56 +08:00
创建高可用 etcd 集群
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2.4" data-path = "../practice/kubectl-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/kubectl-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.4.< / b >
2020-06-19 14:52:56 +08:00
安装 kubectl 命令行工具
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2.5" data-path = "../practice/master-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/master-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.5.< / b >
2020-06-19 14:52:56 +08:00
部署 master 节点
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2.6" data-path = "../practice/flannel-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/flannel-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.6.< / b >
2020-06-19 14:52:56 +08:00
安装 flannel 网络插件
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2.7" data-path = "../practice/node-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/node-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.7.< / b >
2020-06-19 14:52:56 +08:00
部署 node 节点
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2.8" data-path = "../practice/kubedns-addon-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/kubedns-addon-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.8.< / b >
2020-06-19 14:52:56 +08:00
安装 kubedns 插件
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2.9" data-path = "../practice/dashboard-addon-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/dashboard-addon-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.9.< / b >
2020-06-19 14:52:56 +08:00
安装 dashboard 插件
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2.10" data-path = "../practice/heapster-addon-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/heapster-addon-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.10.< / b >
2020-06-19 14:52:56 +08:00
安装 heapster 插件
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.2.11" data-path = "../practice/efk-addon-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/efk-addon-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.2.11.< / b >
2020-06-19 14:52:56 +08:00
安装 EFK 插件
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.3" data-path = "../practice/install-kubernetes-with-kubeadm.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/install-kubernetes-with-kubeadm.html" >
2021-03-28 16:58:13 +08:00
< b > 6.3.< / b >
2020-06-19 14:52:56 +08:00
生产级的 Kubernetes 简化管理工具 kubeadm
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.3.1" data-path = "../practice/install-kubernetes-on-ubuntu-server-16.04-with-kubeadm.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/install-kubernetes-on-ubuntu-server-16.04-with-kubeadm.html" >
2021-03-28 16:58:13 +08:00
< b > 6.3.1.< / b >
2020-06-19 14:52:56 +08:00
使用 kubeadm 在 Ubuntu Server 16.04 上快速构建测试集群
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.4" data-path = "../practice/service-discovery-and-loadbalancing.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/service-discovery-and-loadbalancing.html" >
2021-03-28 16:58:13 +08:00
< b > 6.4.< / b >
2020-06-19 14:52:56 +08:00
服务发现与负载均衡
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.4.1" data-path = "../practice/traefik-ingress-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/traefik-ingress-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.4.1.< / b >
2020-06-19 14:52:56 +08:00
安装 Traefik ingress
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.4.2" data-path = "../practice/distributed-load-test.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/distributed-load-test.html" >
2021-03-28 16:58:13 +08:00
< b > 6.4.2.< / b >
2020-06-19 14:52:56 +08:00
分布式负载测试
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.4.3" data-path = "../practice/network-and-cluster-perfermance-test.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/network-and-cluster-perfermance-test.html" >
2021-03-28 16:58:13 +08:00
< b > 6.4.3.< / b >
2020-06-19 14:52:56 +08:00
网络和集群性能测试
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.4.4" data-path = "../practice/edge-node-configuration.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/edge-node-configuration.html" >
2021-03-28 16:58:13 +08:00
< b > 6.4.4.< / b >
2020-06-19 14:52:56 +08:00
边缘节点配置
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.4.5" data-path = "../practice/nginx-ingress-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/nginx-ingress-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.4.5.< / b >
2020-06-19 14:52:56 +08:00
安装 Nginx ingress
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.4.6" data-path = "../practice/dns-installation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/dns-installation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.4.6.< / b >
2020-06-19 14:52:56 +08:00
安装配置 DNS
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.4.6.1" data-path = "../practice/configuring-dns.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/configuring-dns.html" >
2021-03-28 16:58:13 +08:00
< b > 6.4.6.1.< / b >
2020-06-19 14:52:56 +08:00
安装配置 Kube-dns
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.4.6.2" data-path = "../practice/coredns.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/coredns.html" >
2021-03-28 16:58:13 +08:00
< b > 6.4.6.2.< / b >
2020-06-19 14:52:56 +08:00
安装配置 CoreDNS
< / a >
< / li >
< / ul >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.5" data-path = "../practice/operation.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/operation.html" >
2021-03-28 16:58:13 +08:00
< b > 6.5.< / b >
2020-06-19 14:52:56 +08:00
运维管理
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.5.1" data-path = "../practice/master-ha.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/master-ha.html" >
2021-03-28 16:58:13 +08:00
< b > 6.5.1.< / b >
2020-06-19 14:52:56 +08:00
Master 节点高可用
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.5.2" data-path = "../practice/service-rolling-update.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/service-rolling-update.html" >
2021-03-28 16:58:13 +08:00
< b > 6.5.2.< / b >
2020-06-19 14:52:56 +08:00
服务滚动升级
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.5.3" data-path = "../practice/app-log-collection.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/app-log-collection.html" >
2021-03-28 16:58:13 +08:00
< b > 6.5.3.< / b >
2020-06-19 14:52:56 +08:00
应用日志收集
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.5.4" data-path = "../practice/configuration-best-practice.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/configuration-best-practice.html" >
2021-03-28 16:58:13 +08:00
< b > 6.5.4.< / b >
2020-06-19 14:52:56 +08:00
配置最佳实践
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.5.5" data-path = "../practice/monitor.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/monitor.html" >
2021-03-28 16:58:13 +08:00
< b > 6.5.5.< / b >
2020-06-19 14:52:56 +08:00
集群及应用监控
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.5.6" data-path = "../practice/data-persistence-problem.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/data-persistence-problem.html" >
2021-03-28 16:58:13 +08:00
< b > 6.5.6.< / b >
2020-06-19 14:52:56 +08:00
数据持久化问题
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.5.7" data-path = "../practice/manage-compute-resources-container.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/manage-compute-resources-container.html" >
2021-03-28 16:58:13 +08:00
< b > 6.5.7.< / b >
2020-06-19 14:52:56 +08:00
管理容器的计算资源
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6" data-path = "../practice/storage.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/storage.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.< / b >
2020-06-19 14:52:56 +08:00
存储管理
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.1" data-path = "../practice/glusterfs.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/glusterfs.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.1.< / b >
2020-06-19 14:52:56 +08:00
GlusterFS
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.1.1" data-path = "../practice/using-glusterfs-for-persistent-storage.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/using-glusterfs-for-persistent-storage.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.1.1.< / b >
2020-06-19 14:52:56 +08:00
使用 GlusterFS 做持久化存储
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.1.2" data-path = "../practice/using-heketi-gluster-for-persistent-storage.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/using-heketi-gluster-for-persistent-storage.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.1.2.< / b >
2020-06-19 14:52:56 +08:00
使用 Heketi 作为 Kubernetes 的持久存储 GlusterFS 的 external provisioner
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.1.3" data-path = "../practice/storage-for-containers-using-glusterfs-with-openshift.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/storage-for-containers-using-glusterfs-with-openshift.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.1.3.< / b >
2020-06-19 14:52:56 +08:00
在 OpenShift 中使用 GlusterFS 做持久化存储
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.2" data-path = "../practice/glusterd-2.0.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/glusterd-2.0.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.2.< / b >
2020-06-19 14:52:56 +08:00
GlusterD-2.0
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.3" data-path = "../practice/ceph.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/ceph.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.3.< / b >
2020-06-19 14:52:56 +08:00
Ceph
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.3.1" data-path = "../practice/ceph-helm-install-guide-zh.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/ceph-helm-install-guide-zh.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.3.1.< / b >
2020-06-19 14:52:56 +08:00
用 Helm 托管安装 Ceph 集群并提供后端存储
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.3.2" data-path = "../practice/using-ceph-for-persistent-storage.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/using-ceph-for-persistent-storage.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.3.2.< / b >
2020-06-19 14:52:56 +08:00
使用 Ceph 做持久化存储
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.3.3" data-path = "../practice/rbd-provisioner.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/rbd-provisioner.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.3.3.< / b >
2020-06-19 14:52:56 +08:00
使用 rbd-provisioner 提供 rbd 持久化存储
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.4" data-path = "../practice/openebs.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/openebs.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.4.< / b >
2020-06-19 14:52:56 +08:00
OpenEBS
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.4.1" data-path = "../practice/using-openebs-for-persistent-storage.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/using-openebs-for-persistent-storage.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.4.1.< / b >
2020-06-19 14:52:56 +08:00
使用 OpenEBS 做持久化存储
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.5" data-path = "../practice/rook.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/rook.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.5.< / b >
2020-06-19 14:52:56 +08:00
Rook
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.6" data-path = "../practice/nfs.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/nfs.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.6.< / b >
2020-06-19 14:52:56 +08:00
NFS
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.6.6.1" data-path = "../practice/using-nfs-for-persistent-storage.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/using-nfs-for-persistent-storage.html" >
2021-03-28 16:58:13 +08:00
< b > 6.6.6.1.< / b >
2020-06-19 14:52:56 +08:00
利用 NFS 动态提供 Kubernetes 后端存储卷
< / a >
< / li >
< / ul >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.7" data-path = "../practice/monitoring.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/monitoring.html" >
2021-03-28 16:58:13 +08:00
< b > 6.7.< / b >
2020-06-19 14:52:56 +08:00
集群与应用监控
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.7.1" data-path = "../practice/heapster.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/heapster.html" >
2021-03-28 16:58:13 +08:00
< b > 6.7.1.< / b >
2020-06-19 14:52:56 +08:00
Heapster
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.7.1.1" data-path = "../practice/using-heapster-to-get-object-metrics.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/using-heapster-to-get-object-metrics.html" >
2021-03-28 16:58:13 +08:00
< b > 6.7.1.1.< / b >
2020-06-19 14:52:56 +08:00
使用 Heapster 获取集群和对象的 metric 数据
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.7.2" data-path = "../practice/prometheus.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/prometheus.html" >
2021-03-28 16:58:13 +08:00
< b > 6.7.2.< / b >
2020-06-19 14:52:56 +08:00
Prometheus
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.7.2.1" data-path = "../practice/using-prometheus-to-monitor-kuberentes-cluster.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/using-prometheus-to-monitor-kuberentes-cluster.html" >
2021-03-28 16:58:13 +08:00
< b > 6.7.2.1.< / b >
2020-06-19 14:52:56 +08:00
2021-11-09 17:32:02 +08:00
使用 Prometheus 监控 Kubernetes 集群
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.7.2.2" data-path = "../practice/promql.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/promql.html" >
2021-03-28 16:58:13 +08:00
< b > 6.7.2.2.< / b >
2020-06-19 14:52:56 +08:00
Prometheus 查询语言 PromQL 使用说明
< / a >
< / li >
< / ul >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.8" data-path = "../practice/distributed-tracing.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/distributed-tracing.html" >
2021-03-28 16:58:13 +08:00
< b > 6.8.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
分布式追踪
2020-06-19 14:52:56 +08:00
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.8.1" data-path = "../practice/opentracing.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/opentracing.html" >
2021-03-28 16:58:13 +08:00
< b > 6.8.1.< / b >
2020-06-19 14:52:56 +08:00
OpenTracing
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.9" data-path = "../practice/services-management-tool.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/services-management-tool.html" >
2021-03-28 16:58:13 +08:00
< b > 6.9.< / b >
2020-06-19 14:52:56 +08:00
服务编排管理
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.9.1" data-path = "../practice/helm.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/helm.html" >
2021-03-28 16:58:13 +08:00
< b > 6.9.1.< / b >
2020-06-19 14:52:56 +08:00
使用 Helm 管理 Kubernetes 应用
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.9.2" data-path = "../practice/create-private-charts-repo.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/create-private-charts-repo.html" >
2021-03-28 16:58:13 +08:00
< b > 6.9.2.< / b >
2020-06-19 14:52:56 +08:00
构建私有 Chart 仓库
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.10" data-path = "../practice/ci-cd.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/ci-cd.html" >
2021-03-28 16:58:13 +08:00
< b > 6.10.< / b >
2020-06-19 14:52:56 +08:00
2022-01-18 10:33:37 +08:00
持续集成与发布( CI/CD)
2020-06-19 14:52:56 +08:00
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.10.1" data-path = "../practice/jenkins-ci-cd.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/jenkins-ci-cd.html" >
2021-03-28 16:58:13 +08:00
< b > 6.10.1.< / b >
2020-06-19 14:52:56 +08:00
使用 Jenkins 进行持续集成与发布
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.10.2" data-path = "../practice/drone-ci-cd.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/drone-ci-cd.html" >
2021-03-28 16:58:13 +08:00
< b > 6.10.2.< / b >
2020-06-19 14:52:56 +08:00
使用 Drone 进行持续集成与发布
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.11" data-path = "../practice/update-and-upgrade.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/update-and-upgrade.html" >
2021-03-28 16:58:13 +08:00
< b > 6.11.< / b >
2020-06-19 14:52:56 +08:00
更新与升级
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.11.1" data-path = "../practice/manually-upgrade.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/manually-upgrade.html" >
2021-03-28 16:58:13 +08:00
< b > 6.11.1.< / b >
2020-06-19 14:52:56 +08:00
手动升级 Kubernetes 集群
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.11.2" data-path = "../practice/dashboard-upgrade.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/dashboard-upgrade.html" >
2021-03-28 16:58:13 +08:00
< b > 6.11.2.< / b >
2020-06-19 14:52:56 +08:00
升级 dashboard
< / a >
< / li >
< / ul >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.12" data-path = "../practice/controller-extended.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/controller-extended.html" >
2021-03-28 16:58:13 +08:00
< b > 6.12.< / b >
2020-06-19 14:52:56 +08:00
扩展控制器
< / a >
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.12.1" data-path = "../practice/openkruise.html" >
2020-06-19 14:52:56 +08:00
< a href = "../practice/openkruise.html" >
2021-03-28 16:58:13 +08:00
< b > 6.12.1.< / b >
2020-06-19 14:52:56 +08:00
OpenKruise
< / a >
2020-06-22 17:07:42 +08:00
< ul class = "articles" >
2021-03-28 16:58:13 +08:00
< li class = "chapter " data-level = "6.12.1.1" data-path = "../practice/in-place-update.html" >
2020-06-22 17:07:42 +08:00
< a href = "../practice/in-place-update.html" >
2021-03-28 16:58:13 +08:00
< b > 6.12.1.1.< / b >
2020-06-22 17:07:42 +08:00
原地升级
< / a >
< / li >
< / ul >
2020-06-19 14:52:56 +08:00
< / li >
< / ul >
< / li >
2021-06-30 15:18:58 +08:00
< li class = "chapter " data-level = "6.13" data-path = "../practice/security-policy.html" >
< a href = "../practice/security-policy.html" >
< b > 6.13.< / b >
安全策略
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "6.13.1" data-path = "../practice/open-policy-agent.html" >
< a href = "../practice/open-policy-agent.html" >
< b > 6.13.1.< / b >
2021-11-09 17:32:02 +08:00
开放策略代理( OPA)
2021-06-30 15:18:58 +08:00
< / a >
2021-08-06 14:42:13 +08:00
< / li >
< li class = "chapter " data-level = "6.13.2" data-path = "../practice/cloud-native-security.html" >
< a href = "../practice/cloud-native-security.html" >
< b > 6.13.2.< / b >
云原生安全
< / a >
2021-06-30 15:18:58 +08:00
< / li >
< / ul >
< / li >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< li class = "header" > 服务网格< / li >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.1" data-path = "../usecases/service-mesh.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/service-mesh.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< b > 7.1.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
服务网格( Service Mesh)
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.2" data-path = "../usecases/the-enterprise-path-to-service-mesh-architectures.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/the-enterprise-path-to-service-mesh-architectures.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< b > 7.2.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
企业级服务网格架构
2020-06-19 14:52:56 +08:00
< / a >
< ul class = "articles" >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.2.1" data-path = "../usecases/service-mesh-fundamental.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/service-mesh-fundamental.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< b > 7.2.1.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
服务网格基础
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.2.2" data-path = "../usecases/comparing-service-mesh-technologies.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/comparing-service-mesh-technologies.html" >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
< b > 7.2.2.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
服务网格技术对比
2020-06-19 14:52:56 +08:00
< / a >
2021-04-06 19:01:23 +08:00
< / li >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.2.3" data-path = "../usecases/service-mesh-vs-api-gateway.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/service-mesh-vs-api-gateway.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< b > 7.2.3.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
服务网格对比 API 网关
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.2.4" data-path = "../usecases/service-mesh-adoption-and-evolution.html" >
< a href = "../usecases/service-mesh-adoption-and-evolution.html" >
< b > 7.2.4.< / b >
采纳和演进
< / a >
2020-06-19 14:52:56 +08:00
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.2.5" data-path = "../usecases/service-mesh-customization-and-integration.html" >
< a href = "../usecases/service-mesh-customization-and-integration.html" >
< b > 7.2.5.< / b >
定制和集成
< / a >
2020-06-19 14:52:56 +08:00
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.2.6" data-path = "../usecases/service-mesh-conclusion.html" >
2020-11-23 12:24:15 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/service-mesh-conclusion.html" >
2020-11-23 12:24:15 +08:00
2021-04-06 19:01:23 +08:00
< b > 7.2.6.< / b >
2020-11-23 12:24:15 +08:00
2021-04-06 19:01:23 +08:00
总结
2020-06-19 14:52:56 +08:00
< / a >
2021-04-06 19:01:23 +08:00
< / li >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< / ul >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< / li >
< li class = "chapter " data-level = "7.3" data-path = "../usecases/istio.html" >
< a href = "../usecases/istio.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< b > 7.3.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
Istio
2020-06-19 14:52:56 +08:00
< / a >
< ul class = "articles" >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.3.1" data-path = "../usecases/before-using-istio.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/before-using-istio.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< b > 7.3.1.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
使用 Istio 前需要考虑的问题
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2022-04-27 12:19:40 +08:00
< li class = "chapter " data-level = "7.3.2" data-path = "../usecases/sidecar-pattern.html" >
2020-06-19 14:52:56 +08:00
2022-04-27 12:19:40 +08:00
< a href = "../usecases/sidecar-pattern.html" >
2020-06-19 14:52:56 +08:00
2021-12-12 21:39:36 +08:00
< b > 7.3.2.< / b >
2020-06-19 14:52:56 +08:00
2022-04-27 12:19:40 +08:00
Sidecar 模式
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2022-04-27 12:19:40 +08:00
< li class = "chapter " data-level = "7.3.3" data-path = "../usecases/sidecar-spec-in-istio.html" >
2020-06-19 14:52:56 +08:00
2022-04-27 12:19:40 +08:00
< a href = "../usecases/sidecar-spec-in-istio.html" >
2020-06-19 14:52:56 +08:00
2021-12-12 21:39:36 +08:00
< b > 7.3.3.< / b >
2020-06-19 14:52:56 +08:00
2022-04-27 12:19:40 +08:00
Istio 中 sidecar 的注入规范
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2022-03-09 17:24:42 +08:00
< li class = "chapter " data-level = "7.3.4" data-path = "../usecases/understand-sidecar-injection-and-traffic-hijack-in-istio-service-mesh.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/understand-sidecar-injection-and-traffic-hijack-in-istio-service-mesh.html" >
2020-06-19 14:52:56 +08:00
2022-03-09 17:24:42 +08:00
< b > 7.3.4.< / b >
2020-06-19 14:52:56 +08:00
2022-04-27 12:19:40 +08:00
Sidecar 的注入与透明流量劫持
2020-06-19 14:52:56 +08:00
< / a >
2021-04-06 19:01:23 +08:00
< / li >
2020-06-19 14:52:56 +08:00
2022-04-27 12:19:40 +08:00
< li class = "chapter " data-level = "7.3.5" data-path = "../usecases/istio-traffic-routing.html" >
2020-06-19 14:52:56 +08:00
2022-04-27 12:19:40 +08:00
< a href = "../usecases/istio-traffic-routing.html" >
2020-06-19 14:52:56 +08:00
2022-03-09 17:24:42 +08:00
< b > 7.3.5.< / b >
2020-06-19 14:52:56 +08:00
2022-04-27 12:19:40 +08:00
Istio 中的流量路由过程详解
< / a >
< / li >
< li class = "chapter " data-level = "7.3.6" data-path = "../usecases/how-to-integrate-istio-with-vm.html" >
< a href = "../usecases/how-to-integrate-istio-with-vm.html" >
< b > 7.3.6.< / b >
2021-04-06 19:01:23 +08:00
Istio 如何支持虚拟机
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2022-04-27 12:19:40 +08:00
< li class = "chapter " data-level = "7.3.7" data-path = "../usecases/istio-vm-support.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/istio-vm-support.html" >
2020-06-19 14:52:56 +08:00
2022-04-27 12:19:40 +08:00
< b > 7.3.7.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
Istio 支持虚拟机的历史
2020-06-19 14:52:56 +08:00
< / a >
2022-04-27 12:19:40 +08:00
< / li >
< li class = "chapter " data-level = "7.3.8" data-path = "../usecases/istio-community-tips.html" >
< a href = "../usecases/istio-community-tips.html" >
< b > 7.3.8.< / b >
如何参与 Istio 社区及注意事项
< / a >
2020-06-19 14:52:56 +08:00
< / li >
2021-04-06 19:01:23 +08:00
< / ul >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< / li >
< li class = "chapter " data-level = "7.4" data-path = "../usecases/envoy.html" >
< a href = "../usecases/envoy.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< b > 7.4.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
Envoy
2020-06-19 14:52:56 +08:00
< / a >
2021-04-06 19:01:23 +08:00
< ul class = "articles" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.4.1" data-path = "../usecases/envoy-terminology.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/envoy-terminology.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< b > 7.4.1.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
Envoy 的架构与基本术语
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.4.2" data-path = "../usecases/envoy-front-proxy.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/envoy-front-proxy.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< b > 7.4.2.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
Envoy 作为前端代理
2020-06-19 14:52:56 +08:00
< / a >
2020-11-18 17:21:45 +08:00
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "7.4.3" data-path = "../usecases/envoy-mesh-in-kubernetes-tutorial.html" >
2020-11-18 17:21:45 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/envoy-mesh-in-kubernetes-tutorial.html" >
2020-11-18 17:21:45 +08:00
2021-04-06 19:01:23 +08:00
< b > 7.4.3.< / b >
2020-11-18 17:21:45 +08:00
2021-04-06 19:01:23 +08:00
Envoy mesh 教程
2020-11-18 17:21:45 +08:00
< / a >
2020-12-25 20:38:09 +08:00
< / li >
2021-04-06 19:01:23 +08:00
< / ul >
2020-12-25 20:38:09 +08:00
2021-04-06 19:01:23 +08:00
< / li >
< li class = "header" > 领域应用< / li >
< li class = "chapter " data-level = "8.1" data-path = "../usecases/" >
< a href = "../usecases/" >
2020-12-25 20:38:09 +08:00
2021-04-06 19:01:23 +08:00
< b > 8.1.< / b >
2020-12-25 20:38:09 +08:00
2021-04-06 19:01:23 +08:00
领域应用概览
2020-12-25 20:38:09 +08:00
< / a >
2020-06-19 14:52:56 +08:00
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.2" data-path = "../usecases/microservices.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/microservices.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< b > 8.2.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
微服务架构
2020-06-19 14:52:56 +08:00
< / a >
< ul class = "articles" >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.2.1" data-path = "../usecases/service-discovery-in-microservices.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/service-discovery-in-microservices.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< b > 8.2.1.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
微服务中的服务发现
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.2.2" data-path = "../usecases/microservices-for-java-developers.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/microservices-for-java-developers.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< b > 8.2.2.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
使用 Java 构建微服务并发布到 Kubernetes 平台
2020-06-19 14:52:56 +08:00
< / a >
2021-04-06 19:01:23 +08:00
< ul class = "articles" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.2.2.1" data-path = "../usecases/spring-boot-quick-start-guide.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< a href = "../usecases/spring-boot-quick-start-guide.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< b > 8.2.2.1.< / b >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
Spring Boot 快速开始指南
2020-06-19 14:52:56 +08:00
< / a >
< / li >
< / ul >
< / li >
< / ul >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.3" data-path = "../usecases/big-data.html" >
2020-06-19 14:52:56 +08:00
< a href = "../usecases/big-data.html" >
2021-04-06 19:01:23 +08:00
< b > 8.3.< / b >
2020-06-19 14:52:56 +08:00
大数据
< / a >
< ul class = "articles" >
2021-10-30 08:21:32 +08:00
< li class = "chapter " data-level = "8.3.1" data-path = "../usecases/spark-on-kubernetes.html" >
2020-06-19 14:52:56 +08:00
2021-10-30 08:21:32 +08:00
< a href = "../usecases/spark-on-kubernetes.html" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< b > 8.3.1.< / b >
2020-06-19 14:52:56 +08:00
2021-10-30 08:21:32 +08:00
Spark 与 Kubernetes
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "8.3.1.1" data-path = "../usecases/spark-standalone-on-kubernetes.html" >
< a href = "../usecases/spark-standalone-on-kubernetes.html" >
< b > 8.3.1.1.< / b >
2020-06-19 14:52:56 +08:00
Spark standalone on Kubernetes
< / a >
< / li >
2021-10-30 08:21:32 +08:00
< li class = "chapter " data-level = "8.3.1.2" data-path = "../usecases/running-spark-with-kubernetes-native-scheduler.html" >
2020-06-19 14:52:56 +08:00
< a href = "../usecases/running-spark-with-kubernetes-native-scheduler.html" >
2021-10-30 08:21:32 +08:00
< b > 8.3.1.2.< / b >
2020-06-19 14:52:56 +08:00
运行支持 Kubernetes 原生调度的 Spark 程序
< / a >
< / li >
< / ul >
< / li >
2021-10-30 08:21:32 +08:00
< / ul >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.4" data-path = "../usecases/serverless.html" >
2020-06-19 14:52:56 +08:00
< a href = "../usecases/serverless.html" >
2021-04-06 19:01:23 +08:00
< b > 8.4.< / b >
2020-06-19 14:52:56 +08:00
Serverless 架构
< / a >
< ul class = "articles" >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.4.1" data-path = "../usecases/understanding-serverless.html" >
2020-06-19 14:52:56 +08:00
< a href = "../usecases/understanding-serverless.html" >
2021-04-06 19:01:23 +08:00
< b > 8.4.1.< / b >
2020-06-19 14:52:56 +08:00
理解 Serverless
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.4.2" data-path = "../usecases/faas.html" >
2020-06-19 14:52:56 +08:00
< a href = "../usecases/faas.html" >
2021-04-06 19:01:23 +08:00
< b > 8.4.2.< / b >
2020-06-19 14:52:56 +08:00
FaaS( 函数即服务)
< / a >
< ul class = "articles" >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.4.2.1" data-path = "../usecases/openfaas-quick-start.html" >
2020-06-19 14:52:56 +08:00
< a href = "../usecases/openfaas-quick-start.html" >
2021-04-06 19:01:23 +08:00
< b > 8.4.2.1.< / b >
2020-06-19 14:52:56 +08:00
OpenFaaS 快速入门指南
< / a >
< / li >
< / ul >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.4.3" data-path = "../usecases/knative.html" >
2020-06-19 14:52:56 +08:00
< a href = "../usecases/knative.html" >
2021-04-06 19:01:23 +08:00
< b > 8.4.3.< / b >
2020-06-19 14:52:56 +08:00
Knative
< / a >
< / li >
< / ul >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.5" data-path = "../usecases/edge-computing.html" >
2020-06-19 14:52:56 +08:00
< a href = "../usecases/edge-computing.html" >
2021-04-06 19:01:23 +08:00
< b > 8.5.< / b >
2020-06-19 14:52:56 +08:00
边缘计算
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.6" data-path = "../usecases/ai.html" >
2020-06-19 14:52:56 +08:00
< a href = "../usecases/ai.html" >
2021-04-06 19:01:23 +08:00
< b > 8.6.< / b >
2020-06-19 14:52:56 +08:00
人工智能
< / a >
2021-03-28 16:58:13 +08:00
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "8.7" data-path = "../usecases/observability.html" >
2021-03-28 16:58:13 +08:00
< a href = "../usecases/observability.html" >
2021-04-06 19:01:23 +08:00
< b > 8.7.< / b >
2021-03-28 16:58:13 +08:00
可观察性
< / a >
2020-06-19 14:52:56 +08:00
< / li >
< li class = "header" > 开发指南< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.1" data-path = "../develop/" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/" >
2021-04-06 19:01:23 +08:00
< b > 9.1.< / b >
2020-06-19 14:52:56 +08:00
开发指南概览
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.2" data-path = "../develop/sigs-and-working-group.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/sigs-and-working-group.html" >
2021-04-06 19:01:23 +08:00
< b > 9.2.< / b >
2020-06-19 14:52:56 +08:00
SIG 和工作组
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.3" data-path = "../develop/developing-environment.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/developing-environment.html" >
2021-04-06 19:01:23 +08:00
< b > 9.3.< / b >
2020-06-19 14:52:56 +08:00
开发环境搭建
< / a >
< ul class = "articles" >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.3.1" data-path = "../develop/using-vagrant-and-virtualbox-for-development.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/using-vagrant-and-virtualbox-for-development.html" >
2021-04-06 19:01:23 +08:00
< b > 9.3.1.< / b >
2020-06-19 14:52:56 +08:00
本地分布式开发环境搭建(使用 Vagrant 和 Virtualbox)
< / a >
< / li >
< / ul >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.4" data-path = "../develop/testing.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/testing.html" >
2021-04-06 19:01:23 +08:00
< b > 9.4.< / b >
2020-06-19 14:52:56 +08:00
单元测试和集成测试
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.5" data-path = "../develop/client-go-sample.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/client-go-sample.html" >
2021-04-06 19:01:23 +08:00
< b > 9.5.< / b >
2020-06-19 14:52:56 +08:00
client-go 示例
< / a >
2021-07-01 10:02:38 +08:00
< ul class = "articles" >
< li class = "chapter " data-level = "9.5.1" data-path = "../develop/client-go-informer-sourcecode-analyse.html" >
< a href = "../develop/client-go-informer-sourcecode-analyse.html" >
< b > 9.5.1.< / b >
client-go 中的 informer 源码分析
< / a >
< / li >
< / ul >
2020-06-19 14:52:56 +08:00
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.6" data-path = "../develop/operator.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/operator.html" >
2021-04-06 19:01:23 +08:00
< b > 9.6.< / b >
2020-06-19 14:52:56 +08:00
Operator
< / a >
< ul class = "articles" >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.6.1" data-path = "../develop/operator-sdk.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/operator-sdk.html" >
2021-04-06 19:01:23 +08:00
< b > 9.6.1.< / b >
2020-06-19 14:52:56 +08:00
operator-sdk
< / a >
< / li >
< / ul >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.7" data-path = "../develop/kubebuilder.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/kubebuilder.html" >
2021-04-06 19:01:23 +08:00
< b > 9.7.< / b >
2020-06-19 14:52:56 +08:00
kubebuilder
< / a >
< ul class = "articles" >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.7.1" data-path = "../develop/kubebuilder-example.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/kubebuilder-example.html" >
2021-04-06 19:01:23 +08:00
< b > 9.7.1.< / b >
2020-06-19 14:52:56 +08:00
使用 kubebuilder 创建 operator 示例
< / a >
< / li >
< / ul >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.8" data-path = "../develop/advance-developer.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/advance-developer.html" >
2021-04-06 19:01:23 +08:00
< b > 9.8.< / b >
2020-06-19 14:52:56 +08:00
高级开发指南
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.9" data-path = "../develop/contribute.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/contribute.html" >
2021-04-06 19:01:23 +08:00
< b > 9.9.< / b >
2020-06-19 14:52:56 +08:00
社区贡献
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "9.10" data-path = "../develop/minikube.html" >
2020-06-19 14:52:56 +08:00
< a href = "../develop/minikube.html" >
2021-04-06 19:01:23 +08:00
< b > 9.10.< / b >
2020-06-19 14:52:56 +08:00
Minikube
< / a >
< / li >
2021-03-28 16:58:13 +08:00
< li class = "header" > 社区及生态< / li >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "10.1" data-path = "../cloud-native/cncf.html" >
2020-06-19 14:52:56 +08:00
< a href = "../cloud-native/cncf.html" >
2021-04-06 19:01:23 +08:00
< b > 10.1.< / b >
2020-06-19 14:52:56 +08:00
2021-03-28 16:58:13 +08:00
云原生计算基金会( CNCF)
2020-06-19 14:52:56 +08:00
< / a >
2021-03-28 16:58:13 +08:00
< ul class = "articles" >
2020-06-19 14:52:56 +08:00
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "10.1.1" data-path = "../cloud-native/cncf-charter.html" >
2020-06-19 14:52:56 +08:00
< a href = "../cloud-native/cncf-charter.html" >
2021-04-06 19:01:23 +08:00
< b > 10.1.1.< / b >
2020-06-19 14:52:56 +08:00
CNCF 章程
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "10.1.2" data-path = "../cloud-native/cncf-sig.html" >
2020-06-19 14:52:56 +08:00
< a href = "../cloud-native/cncf-sig.html" >
2021-04-06 19:01:23 +08:00
< b > 10.1.2.< / b >
2020-06-19 14:52:56 +08:00
CNCF 特别兴趣小组( SIG) 说明
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "10.1.3" data-path = "../cloud-native/cncf-sandbox-criteria.html" >
2020-06-19 14:52:56 +08:00
< a href = "../cloud-native/cncf-sandbox-criteria.html" >
2021-04-06 19:01:23 +08:00
< b > 10.1.3.< / b >
2020-06-19 14:52:56 +08:00
开源项目加入 CNCF Sandbox 的要求
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "10.1.4" data-path = "../cloud-native/cncf-project-governing.html" >
2020-06-19 14:52:56 +08:00
< a href = "../cloud-native/cncf-project-governing.html" >
2021-04-06 19:01:23 +08:00
< b > 10.1.4.< / b >
2020-06-19 14:52:56 +08:00
CNCF 中的项目治理
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "10.1.5" data-path = "../cloud-native/cncf-ambassador.html" >
2020-06-19 14:52:56 +08:00
< a href = "../cloud-native/cncf-ambassador.html" >
2021-04-06 19:01:23 +08:00
< b > 10.1.5.< / b >
2020-06-19 14:52:56 +08:00
CNCF Ambassador
< / a >
2021-03-28 16:58:13 +08:00
< / li >
< / ul >
< / li >
2021-11-09 17:32:02 +08:00
< li class = "chapter " data-level = "10.2" data-path = "../cloud-native/certification.html" >
2021-03-28 18:50:16 +08:00
< a href = "../cloud-native/certification.html" >
2021-11-09 17:32:02 +08:00
< b > 10.2.< / b >
2021-03-28 18:50:16 +08:00
认证及培训
< / a >
< ul class = "articles" >
2021-11-09 17:32:02 +08:00
< li class = "chapter " data-level = "10.2.1" data-path = "../appendix/about-kcsp.html" >
2021-03-28 18:50:16 +08:00
< a href = "../appendix/about-kcsp.html" >
2021-11-09 17:32:02 +08:00
< b > 10.2.1.< / b >
2021-03-28 18:50:16 +08:00
认证 Kubernetes 服务提供商( KCSP) 说明
< / a >
< / li >
2021-11-09 17:32:02 +08:00
< li class = "chapter " data-level = "10.2.2" data-path = "../appendix/about-cka-candidate.html" >
2021-03-28 18:50:16 +08:00
< a href = "../appendix/about-cka-candidate.html" >
2021-11-09 17:32:02 +08:00
< b > 10.2.2.< / b >
2021-03-28 18:50:16 +08:00
认证 Kubernetes 管理员( CKA) 说明
< / a >
< / li >
< / ul >
< / li >
2020-06-19 14:52:56 +08:00
< li class = "header" > 附录< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "11.1" data-path = "../appendix/" >
2020-06-19 14:52:56 +08:00
< a href = "../appendix/" >
2021-04-06 19:01:23 +08:00
< b > 11.1.< / b >
2020-06-19 14:52:56 +08:00
附录说明
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "11.2" data-path = "../appendix/debug-kubernetes-services.html" >
2020-06-19 14:52:56 +08:00
< a href = "../appendix/debug-kubernetes-services.html" >
2021-04-06 19:01:23 +08:00
< b > 11.2.< / b >
2020-06-19 14:52:56 +08:00
Kubernetes 中的应用故障排查
< / a >
< / li >
2021-04-06 19:01:23 +08:00
< li class = "chapter " data-level = "11.3" data-path = "../appendix/material-share.html" >
2020-06-19 14:52:56 +08:00
< a href = "../appendix/material-share.html" >
2021-04-06 19:01:23 +08:00
< b > 11.3.< / b >
2020-06-19 14:52:56 +08:00
2022-02-08 16:44:08 +08:00
Kubernetes 参考资源
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2022-02-08 16:44:08 +08:00
< li class = "chapter " data-level = "11.4" data-path = "../appendix/tricks.html" >
2020-06-19 14:52:56 +08:00
< a href = "../appendix/tricks.html" >
2022-02-08 16:44:08 +08:00
< b > 11.4.< / b >
2020-06-19 14:52:56 +08:00
2021-10-20 17:17:43 +08:00
Kubernetes 使用技巧
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2022-02-08 16:44:08 +08:00
< li class = "chapter " data-level = "11.5" data-path = "../appendix/issues.html" >
2020-06-19 14:52:56 +08:00
< a href = "../appendix/issues.html" >
2022-02-08 16:44:08 +08:00
< b > 11.5.< / b >
2020-06-19 14:52:56 +08:00
2021-10-20 17:17:43 +08:00
Kubernetes 相关问题记录
2020-06-19 14:52:56 +08:00
< / a >
< / li >
2022-02-08 16:44:08 +08:00
< li class = "chapter " data-level = "11.6" data-path = "../appendix/summary-and-outlook.html" >
2020-06-19 14:52:56 +08:00
< a href = "../appendix/summary-and-outlook.html" >
2022-02-08 16:44:08 +08:00
< b > 11.6.< / b >
2020-06-19 14:52:56 +08:00
Kubernetes 及云原生年度总结及展望
< / a >
< ul class = "articles" >
2022-02-08 16:44:08 +08:00
< li class = "chapter " data-level = "11.6.1" data-path = "../appendix/kubernetes-and-cloud-native-summary-in-2017-and-outlook-for-2018.html" >
2020-06-19 14:52:56 +08:00
< a href = "../appendix/kubernetes-and-cloud-native-summary-in-2017-and-outlook-for-2018.html" >
2022-02-08 16:44:08 +08:00
< b > 11.6.1.< / b >
2020-06-19 14:52:56 +08:00
Kubernetes 与云原生 2017 年年终总结及 2018 年展望
< / a >
< / li >
2022-02-08 16:44:08 +08:00
< li class = "chapter " data-level = "11.6.2" data-path = "../appendix/kubernetes-and-cloud-native-summary-in-2018-and-outlook-for-2019.html" >
2020-06-19 14:52:56 +08:00
< a href = "../appendix/kubernetes-and-cloud-native-summary-in-2018-and-outlook-for-2019.html" >
2022-02-08 16:44:08 +08:00
< b > 11.6.2.< / b >
2020-06-19 14:52:56 +08:00
Kubernetes 与云原生 2018 年年终总结及 2019 年展望
< / a >
< / li >
< / ul >
< / li >
2022-02-08 16:44:08 +08:00
< li class = "chapter " data-level = "11.7" data-path = "../appendix/cncf-annual-report.html" >
2020-06-19 14:52:56 +08:00
< a href = "../appendix/cncf-annual-report.html" >
2022-02-08 16:44:08 +08:00
< b > 11.7.< / b >
2020-06-19 14:52:56 +08:00
CNCF 年度报告解读
< / a >
< ul class = "articles" >
2022-02-08 16:44:08 +08:00
< li class = "chapter " data-level = "11.7.1" data-path = "../appendix/cncf-annual-report-2018.html" >
2020-06-19 14:52:56 +08:00
< a href = "../appendix/cncf-annual-report-2018.html" >
2022-02-08 16:44:08 +08:00
< b > 11.7.1.< / b >
2020-06-19 14:52:56 +08:00
CNCF 2018 年年度报告解读
< / a >
2021-01-09 21:48:01 +08:00
< / li >
2022-02-08 16:44:08 +08:00
< li class = "chapter " data-level = "11.7.2" data-path = "../appendix/cncf-annual-report-2020.html" >
2021-01-09 21:48:01 +08:00
< a href = "../appendix/cncf-annual-report-2020.html" >
2022-02-08 16:44:08 +08:00
< b > 11.7.2.< / b >
2021-01-09 21:48:01 +08:00
CNCF 2020 年年度报告解读
< / a >
2020-06-19 14:52:56 +08:00
< / li >
< / ul >
< / li >
2022-04-20 16:02:20 +08:00
< li class = "chapter " data-level = "11.8" data-path = "../GLOSSARY.html" >
< a href = "../GLOSSARY.html" >
< b > 11.8.< / b >
术语表
< / a >
< / li >
2020-06-19 14:52:56 +08:00
< li class = "divider" > < / li >
< li >
< a href = "https://www.gitbook.com" target = "blank" class = "gitbook-link" >
本书使用 GitBook 发布
< / a >
< / li >
< / ul >
< / nav >
< / div >
< div class = "book-body" >
< div class = "body-inner" >
< div class = "book-header" role = "navigation" >
<!-- Title -->
< h1 >
< i class = "fa fa-circle-o-notch fa-spin" > < / i >
< a href = ".." > Volume< / a >
< / h1 >
< / div >
< div class = "page-wrapper" tabindex = "-1" role = "main" >
< div class = "page-inner" >
< div class = "search-plus" id = "book-search-results" >
< div class = "search-noresults" >
< section class = "normal markdown-section" >
< h1 id = "volume" > Volume< / h1 >
< p > 容 器 磁 盘 上 的 文 件 的 生 命 周 期 是 短 暂 的 , 这 就 使 得 在 容 器 中 运 行 重 要 应 用 时 会 出 现 一 些 问 题 。 首 先 , 当 容 器 崩 溃 时 , kubelet 会 重 启 它 , 但 是 容 器 中 的 文 件 将 丢 失 — — 容 器 以 干 净 的 状 态 ( 镜 像 最 初 的 状 态 ) 重 新 启 动 。 其 次 , 在 < code > Pod< / code > 中 同 时 运 行 多 个 容 器 时 , 这 些 容 器 之 间 通 常 需 要 共 享 文 件 。 Kubernetes 中 的 < code > Volume< / code > 抽 象 就 很 好 的 解 决 了 这 些 问 题 。 < / p >
< p > 建 议 先 熟 悉 < a href = "https://kubernetes.io/docs/user-guide/pods" target = "_blank" > pod< / a > 。 < / p >
< h2 id = "背景" > 背 景 < / h2 >
< p > Docker 中 也 有 一 个 < a href = "https://docs.docker.com/engine/admin/volumes/" target = "_blank" > volume< / a > 的 概 念 , 尽 管 它 稍 微 宽 松 一 些 , 管 理 也 很 少 。 在 Docker 中 , 卷 就 像 是 磁 盘 或 是 另 一 个 容 器 中 的 一 个 目 录 。 它 的 生 命 周 期 不 受 管 理 , 直 到 最 近 才 有 了 local-disk-backed 卷 。 Docker 现 在 提 供 了 卷 驱 动 程 序 , 但 是 功 能 还 非 常 有 限 ( 例 如 Docker1.7只 允 许 每 个 容 器 使 用 一 个 卷 驱 动 , 并 且 无 法 给 卷 传 递 参 数 ) 。 < / p >
2020-07-24 10:10:37 +08:00
< p > 另 一 方 面 , Kubernetes 中 的 卷 有 明 确 的 寿 命 — — 与 封 装 它 的 Pod 相 同 。 所 以 , 卷 的 生 命 比 Pod 中 的 所 有 容 器 都 长 , 当 这 个 容 器 重 启 时 数 据 仍 然 得 以 保 存 。 当 然 , 当 Pod 不 再 存 在 时 , 卷 也 将 不 复 存 在 。 也 许 更 重 要 的 是 , Kubernetes 支 持 多 种 类 型 的 卷 , Pod 可 以 同 时 使 用 任 意 数 量 的 卷 。 < / p >
2020-06-19 14:52:56 +08:00
< p > 卷 的 核 心 是 目 录 , 可 能 还 包 含 了 一 些 数 据 , 可 以 通 过 pod 中 的 容 器 来 访 问 。 该 目 录 是 如 何 形 成 的 、 支 持 该 目 录 的 介 质 以 及 其 内 容 取 决 于 所 使 用 的 特 定 卷 类 型 。 < / p >
< p > 要 使 用 卷 , 需 要 为 pod 指 定 为 卷 ( < code > spec.volumes< / code > 字 段 ) 以 及 将 它 挂 载 到 容 器 的 位 置 ( < code > spec.containers.volumeMounts< / code > 字 段 ) 。 < / p >
< p > 容 器 中 的 进 程 看 到 的 是 由 其 Docker 镜 像 和 卷 组 成 的 文 件 系 统 视 图 。 < a href = "https://docs.docker.com/userguide/dockerimages/" target = "_blank" > Docker 镜 像 < / a > 位 于 文 件 系 统 层 次 结 构 的 根 目 录 , 任 何 卷 都 被 挂 载 在 镜 像 的 指 定 路 径 中 。 卷 无 法 挂 载 到 其 他 卷 上 或 与 其 他 卷 有 硬 连 接 。 Pod 中 的 每 个 容 器 都 必 须 独 立 指 定 每 个 卷 的 挂 载 位 置 。 < / p >
< h2 id = "卷的类型" > 卷 的 类 型 < / h2 >
< p > Kubernetes 支 持 以 下 类 型 的 卷 : < / p >
< ul >
< li > < code > awsElasticBlockStore< / code > < / li >
< li > < code > azureDisk< / code > < / li >
< li > < code > azureFile< / code > < / li >
< li > < code > cephfs< / code > < / li >
< li > < code > csi< / code > < / li >
< li > < code > downwardAPI< / code > < / li >
< li > < code > emptyDir< / code > < / li >
< li > < code > fc< / code > (fibre channel)< / li >
< li > < code > flocker< / code > < / li >
< li > < code > gcePersistentDisk< / code > < / li >
< li > < code > gitRepo< / code > < / li >
< li > < code > glusterfs< / code > < / li >
< li > < code > hostPath< / code > < / li >
< li > < code > iscsi< / code > < / li >
< li > < code > local< / code > < / li >
< li > < code > nfs< / code > < / li >
< li > < code > persistentVolumeClaim< / code > < / li >
< li > < code > projected< / code > < / li >
< li > < code > portworxVolume< / code > < / li >
< li > < code > quobyte< / code > < / li >
< li > < code > rbd< / code > < / li >
< li > < code > scaleIO< / code > < / li >
< li > < code > secret< / code > < / li >
< li > < code > storageos< / code > < / li >
< li > < code > vsphereVolume< / code > < / li >
< / ul >
< p > 我 们 欢 迎 额 外 贡 献 。 < / p >
< h3 id = "awselasticblockstore" > awsElasticBlockStore< / h3 >
< p > < code > awsElasticBlockStore< / code > 卷 将 Amazon Web Services( AWS) EBS Volume 挂 载 到 您 的 容 器 中 。 与 < code > emptyDir< / code > 类 型 会 在 删 除 Pod 时 被 清 除 不 同 , EBS 卷 的 的 内 容 会 保 留 下 来 , 仅 仅 是 被 卸 载 。 这 意 味 着 EBS 卷 可 以 预 先 填 充 数 据 , 并 且 可 以 在 数 据 包 之 间 “ 切 换 ” 数 据 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 使 用 < code > aws ec2 create-volume< / code > 或 AWS API 创 建 EBS 卷 , 才 能 使 用 它 。 < / p >
< p > 使 用 awsElasticBlockStore 卷 时 有 一 些 限 制 : < / p >
< ul >
< li > 运 行 Pod 的 节 点 必 须 是 AWS EC2 实 例 < / li >
< li > 这 些 实 例 需 要 与 EBS 卷 位 于 相 同 的 区 域 和 可 用 区 域 < / li >
< li > EBS 仅 支 持 卷 和 EC2 实 例 的 一 对 一 的 挂 载 < / li >
< / ul >
< h4 id = "创建-ebs-卷" > 创 建 EBS 卷 < / h4 >
< p > 在 pod 中 使 用 的 EBS 卷 之 前 , 您 需 要 先 创 建 它 。 < / p >
< pre class = "language-" > < code class = "lang-bash" > aws ec2 create-volume --availability-zone< span class = "token operator" > =< / span > eu-west-1a --size< span class = "token operator" > =< / span > < span class = "token number" > 10< / span > --volume-type< span class = "token operator" > =< / span > gp2
< / code > < / pre >
< p > 确 保 区 域 与 您 启 动 集 群 的 区 域 相 匹 配 ( 并 且 检 查 大 小 和 EBS 卷 类 型 是 否 适 合 您 的 使 用 ! ) < / p >
< h3 id = "aws-ebs-示例配置" > AWS EBS 示 例 配 置 < / h3 >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > ebs
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > k8s.gcr.io/test< span class = "token punctuation" > -< / span > webserver
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > container
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > /test< span class = "token punctuation" > -< / span > ebs
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > volume
< span class = "token comment" > # This AWS EBS volume must already exist.< / span >
< span class = "token key atrule" > awsElasticBlockStore< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > volumeID< / span > < span class = "token punctuation" > :< / span > < volume< span class = "token punctuation" > -< / span > id< span class = "token punctuation" > > < / span >
< span class = "token key atrule" > fsType< / span > < span class = "token punctuation" > :< / span > ext4
< / code > < / pre >
< h3 id = "azuredisk" > azureDisk< / h3 >
< p > < code > AzureDisk< / code > 用 于 将 Microsoft Azure < a href = "https://azure.microsoft.com/zh-cn/documentation/articles/virtual-machines-linux-about-disks-vhds" target = "_blank" > Data Disk< / a > 挂 载 到 Pod 中 。 < / p >
< h3 id = "azurefile" > azureFile< / h3 >
< p > < code > azureFile< / code > 用 于 将 Microsoft Azure File Volume( SMB 2.1 和 3.0) 挂 载 到 Pod 中 。 < / p >
< h3 id = "cephfs" > cephfs< / h3 >
< p > < code > cephfs< / code > 卷 允 许 将 现 有 的 CephFS 卷 挂 载 到 您 的 容 器 中 。 不 像 < code > emptyDir< / code > , 当 删 除 Pod 时 被 删 除 , < code > cephfs< / code > 卷 的 内 容 将 被 保 留 , 卷 仅 仅 是 被 卸 载 。 这 意 味 着 CephFS 卷 可 以 预 先 填 充 数 据 , 并 且 可 以 在 数 据 包 之 间 “ 切 换 ” 数 据 。 CephFS 可 以 被 多 个 写 设 备 同 时 挂 载 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 先 拥 有 自 己 的 Ceph 服 务 器 , 然 后 才 能 使 用 它 。 < / p >
< h3 id = "csi" > csi< / h3 >
< p > CSI 代 表 < a href = "https://github.com/container-storage-interface/spec/blob/master/spec.md" target = "_blank" > 容 器 存 储 接 口 < / a > , CSI 试 图 建 立 一 个 行 业 标 准 接 口 的 规 范 , 借 助 CSI 容 器 编 排 系 统 ( CO) 可 以 将 任 意 存 储 系 统 暴 露 给 自 己 的 容 器 工 作 负 载 。 有 关 详 细 信 息 , 请 查 看 < a href = "https://github.com/kubernetes/community/blob/master/contributors/design-proposals/storage/container-storage-interface.md" target = "_blank" > 设 计 方 案 < / a > 。 < / p >
< p > < code > csi< / code > 卷 类 型 是 一 种 in-tree 的 CSI 卷 插 件 , 用 于 Pod 与 在 同 一 节 点 上 运 行 的 外 部 CSI 卷 驱 动 程 序 交 互 。 部 署 CSI 兼 容 卷 驱 动 后 , 用 户 可 以 使 用 < code > csi< / code > 作 为 卷 类 型 来 挂 载 驱 动 提 供 的 存 储 。 < / p >
< p > CSI 持 久 化 卷 支 持 是 在 Kubernetes v1.9 中 引 入 的 , 作 为 一 个 alpha 特 性 , 必 须 由 集 群 管 理 员 明 确 启 用 。 换 句 话 说 , 集 群 管 理 员 需 要 在 apiserver、 controller-manager 和 kubelet 组 件 的 “ < code > --feature-gates =< / code > ” 标 志 中 加 上 “ < code > CSIPersistentVolume = true< / code > ” 。 < / p >
< p > CSI 持 久 化 卷 具 有 以 下 字 段 可 供 用 户 指 定 : < / p >
< ul >
< li > < code > driver< / code > : 一 个 字 符 串 值 , 指 定 要 使 用 的 卷 驱 动 程 序 的 名 称 。 必 须 少 于 63 个 字 符 , 并 以 一 个 字 符 开 头 。 驱 动 程 序 名 称 可 以 包 含 “ < code > .< / code > ” 、 “ < code > -< / code > ” 、 “ < code > _< / code > ” 或 数 字 。 < / li >
< li > < code > volumeHandle< / code > : 一 个 字 符 串 值 , 唯 一 标 识 从 CSI 卷 插 件 的 < code > CreateVolume< / code > 调 用 返 回 的 卷 名 。 随 后 在 卷 驱 动 程 序 的 所 有 后 续 调 用 中 使 用 卷 句 柄 来 引 用 该 卷 。 < / li >
< li > < code > readOnly< / code > : 一 个 可 选 的 布 尔 值 , 指 示 卷 是 否 被 发 布 为 只 读 。 默 认 是 false。 < / li >
< / ul >
< h3 id = "downwardapi" > downwardAPI< / h3 >
< p > < code > downwardAPI< / code > 卷 用 于 使 向 下 API 数 据 ( downward API data) 对 应 用 程 序 可 用 。 它 挂 载 一 个 目 录 , 并 将 请 求 的 数 据 写 入 纯 文 本 文 件 。 < / p >
< p > 参 考 < a href = "https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/" target = "_blank" > < code > downwardAPI< / code > 卷 示 例 < / a > 查 看 详 细 信 息 。 < / p >
< h3 id = "emptydir" > emptyDir< / h3 >
< p > 当 Pod 被 分 配 给 节 点 时 , 首 先 创 建 < code > emptyDir< / code > 卷 , 并 且 只 要 该 Pod 在 该 节 点 上 运 行 , 该 卷 就 会 存 在 。 正 如 卷 的 名 字 所 述 , 它 最 初 是 空 的 。 Pod 中 的 容 器 可 以 读 取 和 写 入 < code > emptyDir< / code > 卷 中 的 相 同 文 件 , 尽 管 该 卷 可 以 挂 载 到 每 个 容 器 中 的 相 同 或 不 同 路 径 上 。 当 出 于 任 何 原 因 从 节 点 中 删 除 Pod 时 , < code > emptyDir< / code > 中 的 数 据 将 被 永 久 删 除 。 < / p >
< p > < strong > 注 意 < / strong > : 容 器 崩 溃 不 会 从 节 点 中 移 除 pod, 因 此 < code > emptyDir< / code > 卷 中 的 数 据 在 容 器 崩 溃 时 是 安 全 的 。 < / p >
< p > < code > emptyDir< / code > 的 用 法 有 : < / p >
< ul >
< li > 暂 存 空 间 , 例 如 用 于 基 于 磁 盘 的 合 并 排 序 < / li >
< li > 用 作 长 时 间 计 算 崩 溃 恢 复 时 的 检 查 点 < / li >
< li > Web服 务 器 容 器 提 供 数 据 时 , 保 存 内 容 管 理 器 容 器 提 取 的 文 件 < / li >
< / ul >
< h4 id = "pod-示例" > Pod 示 例 < / h4 >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > pd
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > k8s.gcr.io/test< span class = "token punctuation" > -< / span > webserver
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > container
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > /cache
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > cache< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > cache< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > emptyDir< / span > < span class = "token punctuation" > :< / span > < span class = "token punctuation" > {< / span > < span class = "token punctuation" > }< / span >
< / code > < / pre >
< h3 id = "fc-fibre-channel" > fc (fibre channel)< / h3 >
< p > fc 卷 允 许 将 现 有 的 < code > fc< / code > 卷 挂 载 到 pod 中 。 您 可 以 使 用 卷 配 置 中 的 < code > targetWWN< / code > 参 数 指 定 单 个 或 多 个 目 标 全 球 通 用 名 称 ( World Wide Name) 。 如 果 指 定 了 多 个 WWN, 则 targetWWN 期 望 这 些 WWN 来 自 多 路 径 连 接 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 配 置 FC SAN 区 域 划 分 , 并 预 先 将 这 些 LUN( 卷 ) 分 配 并 屏 蔽 到 目 标 WWN, 以 便 Kubernetes 主 机 可 以 访 问 它 们 。 < / p >
< p > 参 考 < a href = "https://github.com/kubernetes/examples/tree/master/staging/volumes/fibre_channel" target = "_blank" > FC 示 例 < / a > 获 取 详 细 信 息 。 < / p >
< h3 id = "flocker" > flocker< / h3 >
< p > Flocker 是 一 款 开 源 的 集 群 容 器 数 据 卷 管 理 器 。 它 提 供 了 由 各 种 存 储 后 端 支 持 的 数 据 卷 的 管 理 和 编 排 。 < / p >
< p > < code > flocker< / code > 允 许 将 Flocker 数 据 集 挂 载 到 pod 中 。 如 果 数 据 集 在 Flocker 中 不 存 在 , 则 需 要 先 使 用 Flocker CLI 或 使 用 Flocker API 创 建 数 据 集 。 如 果 数 据 集 已 经 存 在 , 它 将 被 Flocker 重 新 连 接 到 pod 被 调 度 的 节 点 上 。 这 意 味 着 数 据 可 以 根 据 需 要 在 数 据 包 之 间 “ 切 换 ” 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 先 运 行 自 己 的 Flocker 安 装 程 序 才 能 使 用 它 。 < / p >
< p > 参 考 < a href = "https://github.com/kubernetes/examples/tree/master/staging/volumes/flocker" target = "_blank" > Flocker 示 例 < / a > 获 取 更 多 详 细 信 息 。 < / p >
< h3 id = "gcepersistentdisk" > gcePersistentDisk< / h3 >
< p > < code > gcePersistentDisk< / code > 卷 将 Google Compute Engine( GCE) < a href = "http://cloud.google.com/compute/docs/disks" target = "_blank" > Persistent Disk< / a > 挂 载 到 您 的 容 器 中 。 与 删 除 Pod 时 删 除 的 < code > emptyDir< / code > 不 同 , PD 的 内 容 被 保 留 , 只 是 卸 载 了 卷 。 这 意 味 着 PD 可 以 预 先 填 充 数 据 , 并 且 数 据 可 以 在 Pod 之 间 “ 切 换 ” 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 先 使 用 gcloud 或 GCE API 或 UI 创 建 一 个 PD, 然 后 才 能 使 用 它 。 < / p >
< p > 使 用 < code > gcePersistentDisk< / code > 时 有 一 些 限 制 : < / p >
< ul >
< li > 运 行 Pod 的 节 点 必 须 是 GCE 虚 拟 机 < / li >
< li > 那 些 虚 拟 机 需 要 在 与 PD 一 样 在 GCE 项 目 和 区 域 中 < / li >
< / ul >
< p > PD 的 一 个 特 点 是 它 们 可 以 同 时 被 多 个 用 户 以 只 读 方 式 挂 载 。 这 意 味 着 您 可 以 预 先 使 用 您 的 数 据 集 填 充 PD, 然 后 根 据 需 要 给 多 个 Pod 中 并 行 提 供 。 不 幸 的 是 , 只 能 由 单 个 消 费 者 以 读 写 模 式 挂 载 PD, 而 不 允 许 同 时 写 入 。
在 由 ReplicationController 控 制 的 pod 上 使 用 PD 将 会 失 败 , 除 非 PD 是 只 读 的 或 者 副 本 数 是 0 或 1。 < / p >
< h4 id = "创建-pd" > 创 建 PD< / h4 >
< p > 在 您 在 pod 中 使 用 GCE PD 之 前 , 需 要 先 创 建 它 。 < / p >
< pre class = "language-" > < code class = "lang-bash" > gcloud compute disks create --size< span class = "token operator" > =< / span > 500GB --zone< span class = "token operator" > =< / span > us-central1-a my-data-disk
< / code > < / pre >
< h4 id = "pod-示例" > Pod 示 例 < / h4 >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > pd
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > k8s.gcr.io/test< span class = "token punctuation" > -< / span > webserver
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > container
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > /test< span class = "token punctuation" > -< / span > pd
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > volume
< span class = "token comment" > # This GCE PD must already exist.< / span >
< span class = "token key atrule" > gcePersistentDisk< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > pdName< / span > < span class = "token punctuation" > :< / span > my< span class = "token punctuation" > -< / span > data< span class = "token punctuation" > -< / span > disk
< span class = "token key atrule" > fsType< / span > < span class = "token punctuation" > :< / span > ext4
< / code > < / pre >
< h3 id = "gitrepo" > gitRepo< / h3 >
< p > < code > gitRepo< / code > 卷 是 一 个 可 以 演 示 卷 插 件 功 能 的 示 例 。 它 会 挂 载 一 个 空 目 录 并 将 git 存 储 库 克 隆 到 您 的 容 器 中 。 将 来 , 这 样 的 卷 可 能 会 转 移 到 一 个 更 加 分 离 的 模 型 , 而 不 是 为 每 个 这 样 的 用 例 扩 展 Kubernetes API。 < / p >
< p > 下 面 是 gitRepo 卷 示 例 : < / p >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > server
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > nginx
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > nginx
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > /mypath
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > git< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > git< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > gitRepo< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > repository< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " git@somewhere:me/my-git-repository.git" < / span >
< span class = "token key atrule" > revision< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " 22f1d8406d464b0c0874075539c1f2e96c253775" < / span >
< / code > < / pre >
< h3 id = "glusterfs" > glusterfs< / h3 >
< p > < code > glusterfs< / code > 卷 允 许 将 < a href = "http://www.gluster.org" target = "_blank" > Glusterfs< / a > ( 一 个 开 放 源 代 码 的 网 络 文 件 系 统 ) 卷 挂 载 到 您 的 集 群 中 。 与 删 除 Pod 时 删 除 的 < code > emptyDir< / code > 不 同 , < code > glusterfs< / code > 卷 的 内 容 将 被 保 留 , 而 卷 仅 仅 被 卸 载 。 这 意 味 着 glusterfs 卷 可 以 预 先 填 充 数 据 , 并 且 可 以 在 数 据 包 之 间 “ 切 换 ” 数 据 。 GlusterFS 可 以 同 时 由 多 个 写 入 挂 载 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 先 自 行 安 装 GlusterFS, 才 能 使 用 它 。 < / p >
< h3 id = "hostpath" > hostPath< / h3 >
< p > < code > hostPath< / code > 卷 将 主 机 节 点 的 文 件 系 统 中 的 文 件 或 目 录 挂 载 到 集 群 中 。 该 功 能 大 多 数 Pod 都 用 不 到 , 但 它 为 某 些 应 用 程 序 提 供 了 一 个 强 大 的 解 决 方 法 。 < / p >
< p > 例 如 , < code > hostPath< / code > 的 用 途 如 下 : < / p >
< ul >
< li > 运 行 需 要 访 问 Docker 内 部 的 容 器 ; 使 用 < code > /var/lib/docker< / code > 的 < code > hostPath< / code > < / li >
< li > 在 容 器 中 运 行 cAdvisor; 使 用 < code > /dev/cgroups< / code > 的 < code > hostPath< / code > < / li >
< li > 允 许 pod 指 定 给 定 的 hostPath 是 否 应 该 在 pod 运 行 之 前 存 在 , 是 否 应 该 创 建 , 以 及 它 应 该 以 什 么 形 式 存 在 < / li >
< / ul >
< p > 除 了 所 需 的 < code > path< / code > 属 性 之 外 , 用 户 还 可 以 为 < code > hostPath< / code > 卷 指 定 < code > type< / code > 。 < / p >
< p > < code > type< / code > 字 段 支 持 以 下 值 : < / p >
< table >
< thead >
< tr >
< th style = "text-align:left" > 值 < / th >
< th style = "text-align:left" > 行 为 < / th >
< / tr >
< / thead >
< tbody >
< tr >
< td style = "text-align:left" > < / td >
< td style = "text-align:left" > 空 字 符 串 ( 默 认 ) 用 于 向 后 兼 容 , 这 意 味 着 在 挂 载 hostPath 卷 之 前 不 会 执 行 任 何 检 查 。 < / td >
< / tr >
< tr >
< td style = "text-align:left" > < code > DirectoryOrCreate< / code > < / td >
< td style = "text-align:left" > 如 果 在 给 定 的 路 径 上 没 有 任 何 东 西 存 在 , 那 么 将 根 据 需 要 在 那 里 创 建 一 个 空 目 录 , 权 限 设 置 为 0755, 与 Kubelet 具 有 相 同 的 组 和 所 有 权 。 < / td >
< / tr >
< tr >
< td style = "text-align:left" > < code > Directory< / code > < / td >
< td style = "text-align:left" > 给 定 的 路 径 下 必 须 存 在 目 录 < / td >
< / tr >
< tr >
< td style = "text-align:left" > < code > FileOrCreate< / code > < / td >
< td style = "text-align:left" > 如 果 在 给 定 的 路 径 上 没 有 任 何 东 西 存 在 , 那 么 会 根 据 需 要 创 建 一 个 空 文 件 , 权 限 设 置 为 0644, 与 Kubelet 具 有 相 同 的 组 和 所 有 权 。 < / td >
< / tr >
< tr >
< td style = "text-align:left" > < code > File< / code > < / td >
< td style = "text-align:left" > 给 定 的 路 径 下 必 须 存 在 文 件 < / td >
< / tr >
< tr >
< td style = "text-align:left" > < code > Socket< / code > < / td >
< td style = "text-align:left" > 给 定 的 路 径 下 必 须 存 在 UNIX 套 接 字 < / td >
< / tr >
< tr >
< td style = "text-align:left" > < code > CharDevice< / code > < / td >
< td style = "text-align:left" > 给 定 的 路 径 下 必 须 存 在 字 符 设 备 < / td >
< / tr >
< tr >
< td style = "text-align:left" > < code > BlockDevice< / code > < / td >
< td style = "text-align:left" > 给 定 的 路 径 下 必 须 存 在 块 设 备 < / td >
< / tr >
< / tbody >
< / table >
< p > 使 用 这 种 卷 类 型 是 请 注 意 , 因 为 : < / p >
< ul >
< li > 由 于 每 个 节 点 上 的 文 件 都 不 同 , 具 有 相 同 配 置 ( 例 如 从 podTemplate 创 建 的 ) 的 pod 在 不 同 节 点 上 的 行 为 可 能 会 有 所 不 同 < / li >
< li > 当 Kubernetes 按 照 计 划 添 加 资 源 感 知 调 度 时 , 将 无 法 考 虑 < code > hostPath< / code > 使 用 的 资 源 < / li >
< li > 在 底 层 主 机 上 创 建 的 文 件 或 目 录 只 能 由 root 写 入 。 您 需 要 在 特 权 容 器 中 以 root 身 份 运 行 进 程 , 或 修 改 主 机 上 的 文 件 权 限 以 便 写 入 < code > hostPath< / code > 卷 < / li >
< / ul >
< h4 id = "pod-示例" > Pod 示 例 < / h4 >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > pd
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > k8s.gcr.io/test< span class = "token punctuation" > -< / span > webserver
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > container
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > /test< span class = "token punctuation" > -< / span > pd
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > hostPath< / span > < span class = "token punctuation" > :< / span >
< span class = "token comment" > # directory location on host< / span >
< span class = "token key atrule" > path< / span > < span class = "token punctuation" > :< / span > /data
< span class = "token comment" > # this field is optional< / span >
< span class = "token key atrule" > type< / span > < span class = "token punctuation" > :< / span > Directory
< / code > < / pre >
< h3 id = "iscsi" > iscsi< / h3 >
< p > < code > iscsi< / code > 卷 允 许 将 现 有 的 iSCSI( SCSI over IP) 卷 挂 载 到 容 器 中 。 不 像 < code > emptyDir< / code > , 删 除 Pod 时 < code > iscsi< / code > 卷 的 内 容 将 被 保 留 , 卷 仅 仅 是 被 卸 载 。 这 意 味 着 iscsi 卷 可 以 预 先 填 充 数 据 , 并 且 这 些 数 据 可 以 在 pod 之 间 “ 切 换 ” 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 必 须 先 创 建 自 己 的 iSCSI 服 务 器 , 然 后 才 能 使 用 它 。 < / p >
< p > iSCSI 的 一 个 特 点 是 它 可 以 同 时 被 多 个 用 户 以 只 读 方 式 安 装 。 这 意 味 着 您 可 以 预 先 使 用 您 的 数 据 集 填 充 卷 , 然 后 根 据 需 要 向 多 个 额 pod 同 时 提 供 。 不 幸 的 是 , iSCSI 卷 只 能 由 单 个 使 用 者 以 读 写 模 式 挂 载 — — 不 允 许 同 时 写 入 。 < / p >
< h3 id = "local" > local< / h3 >
< p > 这 个 alpha 功 能 要 求 启 用 < code > PersistentLocalVolumes< / code > feature gate。 < / p >
< p > < strong > 注 意 < / strong > : 从 1.9 开 始 , < code > VolumeScheduling< / code > feature gate 也 必 须 启 用 。 < / p >
< p > < code > local< / code > 卷 表 示 挂 载 的 本 地 存 储 设 备 , 如 磁 盘 、 分 区 或 目 录 。 < / p >
< p > 本 地 卷 只 能 用 作 静 态 创 建 的 PersistentVolume。 < / p >
< p > 与 HostPath 卷 相 比 , local 卷 可 以 以 持 久 的 方 式 使 用 , 而 无 需 手 动 将 pod 调 度 到 节 点 上 , 因 为 系 统 会 通 过 查 看 PersistentVolume 上 的 节 点 关 联 性 来 了 解 卷 的 节 点 约 束 。 < / p >
< p > 但 是 , local 卷 仍 然 受 底 层 节 点 的 可 用 性 影 响 , 并 不 适 用 于 所 有 应 用 程 序 。 < / p >
< p > 以 下 是 使 用 < code > local< / code > 卷 的 示 例 PersistentVolume 规 范 : < / p >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > PersistentVolume
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > example< span class = "token punctuation" > -< / span > pv
< span class = "token key atrule" > annotations< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > " volume.alpha.kubernetes.io/node-affinity" < / span > < span class = "token punctuation" > :< / span > ' < span class = "token punctuation" > {< / span >
< span class = "token key atrule" > " requiredDuringSchedulingIgnoredDuringExecution" < / span > < span class = "token punctuation" > :< / span > < span class = "token punctuation" > {< / span >
< span class = "token key atrule" > " nodeSelectorTerms" < / span > < span class = "token punctuation" > :< / span > < span class = "token punctuation" > [< / span >
< span class = "token punctuation" > {< / span > < span class = "token key atrule" > " matchExpressions" < / span > < span class = "token punctuation" > :< / span > < span class = "token punctuation" > [< / span >
< span class = "token punctuation" > {< / span > < span class = "token key atrule" > " key" < / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " kubernetes.io/hostname" < / span > < span class = "token punctuation" > ,< / span >
< span class = "token key atrule" > " operator" < / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " In" < / span > < span class = "token punctuation" > ,< / span >
< span class = "token key atrule" > " values" < / span > < span class = "token punctuation" > :< / span > < span class = "token punctuation" > [< / span > < span class = "token string" > " example-node" < / span > < span class = "token punctuation" > ]< / span >
< span class = "token punctuation" > }< / span >
< span class = "token punctuation" > ]< / span > < span class = "token punctuation" > }< / span >
< span class = "token punctuation" > ]< / span > < span class = "token punctuation" > }< / span >
< span class = "token punctuation" > }< / span > '
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > capacity< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > storage< / span > < span class = "token punctuation" > :< / span > 100Gi
< span class = "token key atrule" > accessModes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > ReadWriteOnce
< span class = "token key atrule" > persistentVolumeReclaimPolicy< / span > < span class = "token punctuation" > :< / span > Delete
< span class = "token key atrule" > storageClassName< / span > < span class = "token punctuation" > :< / span > local< span class = "token punctuation" > -< / span > storage
< span class = "token key atrule" > local< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > path< / span > < span class = "token punctuation" > :< / span > /mnt/disks/ssd1
< / code > < / pre >
< p > < strong > 注 意 < / strong > : 本 地 PersistentVolume 清 理 和 删 除 需 要 手 动 干 预 , 无 外 部 提 供 程 序 。 < / p >
< p > 从 1.9 开 始 , 本 地 卷 绑 定 可 以 被 延 迟 , 直 到 通 过 具 有 StorageClass 中 的 < code > WaitForFirstConsumer< / code > 设 置 为 < code > volumeBindingMode< / code > 的 pod 开 始 调 度 。 请 参 阅 示 例 。 延 迟 卷 绑 定 可 确 保 卷 绑 定 决 策 也 可 以 使 用 任 何 其 他 节 点 约 束 ( 例 如 节 点 资 源 需 求 , 节 点 选 择 器 , pod 亲 和 性 和 pod 反 亲 和 性 ) 进 行 评 估 。 < / p >
< p > 有 关 < code > local< / code > 卷 类 型 的 详 细 信 息 , 请 参 见 < a href = "https://github.com/kubernetes-incubator/external-storage/tree/master/local-volume" target = "_blank" > 本 地 持 久 化 存 储 用 户 指 南 < / a > 。 < / p >
< h3 id = "nfs" > nfs< / h3 >
< p > < code > nfs< / code > 卷 允 许 将 现 有 的 NFS( 网 络 文 件 系 统 ) 共 享 挂 载 到 您 的 容 器 中 。 不 像 < code > emptyDir< / code > , 当 删 除 Pod 时 , < code > nfs< / code > 卷 的 内 容 被 保 留 , 卷 仅 仅 是 被 卸 载 。 这 意 味 着 NFS 卷 可 以 预 填 充 数 据 , 并 且 可 以 在 pod 之 间 “ 切 换 ” 数 据 。 NFS 可 以 被 多 个 写 入 者 同 时 挂 载 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 先 拥 有 自 己 的 NFS 服 务 器 才 能 使 用 它 , 然 后 才 能 使 用 它 。 < / p >
< p > 有 关 更 多 详 细 信 息 , 请 参 见 < a href = "https://github.com/kubernetes/examples/tree/master/staging/volumes/nfs" target = "_blank" > NFS 示 例 < / a > 。 < / p >
< h3 id = "persistentvolumeclaim" > persistentVolumeClaim< / h3 >
< p > < code > persistentVolumeClaim< / code > 卷 用 于 将 < a href = "https://kubernetes.io/docs/concepts/storage/persistent-volumes/" target = "_blank" > PersistentVolume< / a > 挂 载 到 容 器 中 。 PersistentVolumes 是 在 用 户 不 知 道 特 定 云 环 境 的 细 节 的 情 况 下 “ 声 明 ” 持 久 化 存 储 ( 例 如 GCE PersistentDisk 或 iSCSI 卷 ) 的 一 种 方 式 。 < / p >
< p > 有 关 更 多 详 细 信 息 , 请 参 阅 < a href = "https://kubernetes.io/docs/concepts/storage/persistent-volumes/" target = "_blank" > PersistentVolumes 示 例 < / a > 。 < / p >
< h3 id = "projected" > projected< / h3 >
< p > < code > projected< / code > 卷 将 几 个 现 有 的 卷 源 映 射 到 同 一 个 目 录 中 。 < / p >
< p > 目 前 , 可 以 映 射 以 下 类 型 的 卷 来 源 : < / p >
< ul >
< li > < a href = "#secret" > < code > secret< / code > < / a > < / li >
< li > < a href = "#downwardapi" > < code > downwardAPI< / code > < / a > < / li >
< li > < code > configMap< / code > < / li >
< / ul >
< p > 所 有 来 源 都 必 须 在 与 pod 相 同 的 命 名 空 间 中 。 < / p >
< h4 id = "带有-secret、downward-api-和-configmap-的-pod" > 带 有 secret、 downward API 和 configmap 的 pod< / h4 >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > volume< span class = "token punctuation" > -< / span > test
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > container< span class = "token punctuation" > -< / span > test
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > busybox
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > all< span class = "token punctuation" > -< / span > in< span class = "token punctuation" > -< / span > one
< span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " /projected-volume" < / span >
< span class = "token key atrule" > readOnly< / span > < span class = "token punctuation" > :< / span > < span class = "token boolean important" > true< / span >
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > all< span class = "token punctuation" > -< / span > in< span class = "token punctuation" > -< / span > one
< span class = "token key atrule" > projected< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > sources< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > secret< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > mysecret
< span class = "token key atrule" > items< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > key< / span > < span class = "token punctuation" > :< / span > username
< span class = "token key atrule" > path< / span > < span class = "token punctuation" > :< / span > my< span class = "token punctuation" > -< / span > group/my< span class = "token punctuation" > -< / span > username
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > downwardAPI< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > items< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > path< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " labels" < / span >
< span class = "token key atrule" > fieldRef< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > fieldPath< / span > < span class = "token punctuation" > :< / span > metadata.labels
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > path< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " cpu_limit" < / span >
< span class = "token key atrule" > resourceFieldRef< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containerName< / span > < span class = "token punctuation" > :< / span > container< span class = "token punctuation" > -< / span > test
< span class = "token key atrule" > resource< / span > < span class = "token punctuation" > :< / span > limits.cpu
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > configMap< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > myconfigmap
< span class = "token key atrule" > items< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > key< / span > < span class = "token punctuation" > :< / span > config
< span class = "token key atrule" > path< / span > < span class = "token punctuation" > :< / span > my< span class = "token punctuation" > -< / span > group/my< span class = "token punctuation" > -< / span > config
< / code > < / pre >
< h4 id = "使用非默认权限模式设置多个-secret-的示例-pod" > 使 用 非 默 认 权 限 模 式 设 置 多 个 secret 的 示 例 pod< / h4 >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > volume< span class = "token punctuation" > -< / span > test
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > container< span class = "token punctuation" > -< / span > test
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > busybox
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > all< span class = "token punctuation" > -< / span > in< span class = "token punctuation" > -< / span > one
< span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " /projected-volume" < / span >
< span class = "token key atrule" > readOnly< / span > < span class = "token punctuation" > :< / span > < span class = "token boolean important" > true< / span >
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > all< span class = "token punctuation" > -< / span > in< span class = "token punctuation" > -< / span > one
< span class = "token key atrule" > projected< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > sources< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > secret< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > mysecret
< span class = "token key atrule" > items< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > key< / span > < span class = "token punctuation" > :< / span > username
< span class = "token key atrule" > path< / span > < span class = "token punctuation" > :< / span > my< span class = "token punctuation" > -< / span > group/my< span class = "token punctuation" > -< / span > username
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > secret< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > mysecret2
< span class = "token key atrule" > items< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > key< / span > < span class = "token punctuation" > :< / span > password
< span class = "token key atrule" > path< / span > < span class = "token punctuation" > :< / span > my< span class = "token punctuation" > -< / span > group/my< span class = "token punctuation" > -< / span > password
< span class = "token key atrule" > mode< / span > < span class = "token punctuation" > :< / span > < span class = "token number" > 511< / span >
< / code > < / pre >
< p > 每 个 映 射 的 卷 来 源 在 < code > sources< / code > 下 的 规 格 中 列 出 。 除 了 以 下 两 个 例 外 , 参 数 几 乎 相 同 : < / p >
< ul >
< li > 对 于 secret, < code > secretName< / code > 字 段 已 经 被 更 改 为 < code > name< / code > 以 与 ConfigMap 命 名 一 致 。 < / li >
< li > < code > defaultMode< / code > 只 能 在 映 射 级 别 指 定 , 而 不 能 针 对 每 个 卷 源 指 定 。 但 是 , 如 上 所 述 , 您 可 以 明 确 设 置 每 个 映 射 的 < code > mode< / code > 。 < / li >
< / ul >
< h3 id = "portworxvolume" > portworxVolume< / h3 >
< p > < code > portworxVolume< / code > 是 一 个 与 Kubernetes 一 起 , 以 超 融 合 模 式 运 行 的 弹 性 块 存 储 层 。 Portwork 指 纹 存 储 在 服 务 器 中 , 基 于 功 能 的 分 层 , 以 及 跨 多 个 服 务 器 聚 合 容 量 。 Portworx 在 虚 拟 机 或 裸 机 Linux 节 点 上 运 行 。 < / p >
< p > < code > portworxVolume< / code > 可 以 通 过 Kubernetes 动 态 创 建 , 也 可 以 在 Kubernetes pod 中 预 先 设 置 和 引 用 。 < / p >
< p > 以 下 是 一 个 引 用 预 先 配 置 的 PortworxVolume 的 示 例 pod: < / p >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > portworx< span class = "token punctuation" > -< / span > volume< span class = "token punctuation" > -< / span > pod
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > k8s.gcr.io/test< span class = "token punctuation" > -< / span > webserver
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > container
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > /mnt
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > pxvol
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > pxvol
< span class = "token comment" > # This Portworx volume must already exist.< / span >
< span class = "token key atrule" > portworxVolume< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > volumeID< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " pxvol" < / span >
< span class = "token key atrule" > fsType< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " < fs-type> " < / span >
< / code > < / pre >
< p > < strong > 重 要 提 示 < / strong > : 在 pod 中 使 用 之 前 , 请 确 保 您 有 一 个 名 为 < code > pxvol< / code > 的 现 有 PortworxVolume。 < / p >
< h3 id = "quobyte" > quobyte< / h3 >
< p > < code > quobyte< / code > 卷 允 许 将 现 有 的 < a href = "http://www.quobyte.com" target = "_blank" > Quobyte< / a > 卷 挂 载 到 容 器 中 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 先 创 建 自 己 的 Quobyte 安 装 程 序 , 然 后 才 能 使 用 它 。 < / p >
< h3 id = "rbd" > rbd< / h3 >
2020-12-25 21:19:09 +08:00
< p > < code > rbd< / code > 卷 允 许 将 Rados Block Device 卷 挂 载 到 容 器 中 。 不 像 < code > emptyDir< / code > , 删 除 Pod 时 < code > rbd< / code > 卷 的 内 容 被 保 留 , 卷 仅 仅 被 卸 载 。 这 意 味 着 RBD 卷 可 以 预 先 填 充 数 据 , 并 且 可 以 在 pod 之 间 “ 切 换 ” 数 据 。 < / p >
2020-06-19 14:52:56 +08:00
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 先 自 行 安 装 Ceph, 然 后 才 能 使 用 RBD。 < / p >
< p > RBD 的 一 个 特 点 是 它 可 以 同 时 为 多 个 用 户 以 只 读 方 式 挂 载 。 这 意 味 着 可 以 预 先 使 用 您 的 数 据 集 填 充 卷 , 然 后 根 据 需 要 同 时 为 多 个 pod 并 行 提 供 。 不 幸 的 是 , RBD 卷 只 能 由 单 个 用 户 以 读 写 模 式 安 装 — — 不 允 许 同 时 写 入 。 < / p >
< h3 id = "scaleio" > scaleIO< / h3 >
< p > ScaleIO 是 一 个 基 于 软 件 的 存 储 平 台 , 可 以 使 用 现 有 的 硬 件 来 创 建 可 扩 展 的 共 享 块 网 络 存 储 集 群 。 < code > scaleIO< / code > 卷 插 件 允 许 已 部 署 的 pod 访 问 现 有 的 ScaleIO 卷 ( 或 者 它 可 以 为 持 久 性 卷 声 明 动 态 调 配 新 卷 , 请 参 阅 < a href = "https://kubernetes.io/docs/concepts/storage/persistent-volumes/#scaleio" target = "_blank" > ScaleIO 持 久 卷 < / a > ) 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 有 一 个 已 经 配 置 好 的 ScaleIO 集 群 , 并 和 创 建 的 卷 一 同 运 行 , 然 后 才 能 使 用 它 们 。 < / p >
< p > 以 下 是 使 用 ScaleIO 的 示 例 pod 配 置 : < / p >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > pod< span class = "token punctuation" > -< / span > < span class = "token number" > 0< / span >
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > k8s.gcr.io/test< span class = "token punctuation" > -< / span > webserver
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > pod< span class = "token punctuation" > -< / span > < span class = "token number" > 0< / span >
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > /test< span class = "token punctuation" > -< / span > pd
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > vol< span class = "token punctuation" > -< / span > < span class = "token number" > 0< / span >
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > vol< span class = "token punctuation" > -< / span > < span class = "token number" > 0< / span >
< span class = "token key atrule" > scaleIO< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > gateway< / span > < span class = "token punctuation" > :< / span > https< span class = "token punctuation" > :< / span > //localhost< span class = "token punctuation" > :< / span > 443/api
< span class = "token key atrule" > system< / span > < span class = "token punctuation" > :< / span > scaleio
< span class = "token key atrule" > protectionDomain< / span > < span class = "token punctuation" > :< / span > sd0
< span class = "token key atrule" > storagePool< / span > < span class = "token punctuation" > :< / span > sp1
< span class = "token key atrule" > volumeName< / span > < span class = "token punctuation" > :< / span > vol< span class = "token punctuation" > -< / span > < span class = "token number" > 0< / span >
< span class = "token key atrule" > secretRef< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > sio< span class = "token punctuation" > -< / span > secret
< span class = "token key atrule" > fsType< / span > < span class = "token punctuation" > :< / span > xfs
< / code > < / pre >
< p > 有 关 更 多 详 细 信 息 , 请 参 阅 < a href = "https://github.com/kubernetes/examples/tree/master/staging/volumes/scaleio" target = "_blank" > ScaleIO 示 例 < / a > 。 < / p >
< h3 id = "secret" > secret< / h3 >
< p > < code > secret< / code > 卷 用 于 将 敏 感 信 息 ( 如 密 码 ) 传 递 到 pod。 您 可 以 将 secret 存 储 在 Kubernetes API 中 , 并 将 它 们 挂 载 为 文 件 , 以 供 Pod 使 用 , 而 无 需 直 接 连 接 到 Kubernetes。 < code > secret< / code > 卷 由 tmpfs( 一 个 RAM 支 持 的 文 件 系 统 ) 支 持 , 所 以 它 们 永 远 不 会 写 入 非 易 失 性 存 储 器 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 先 在 Kubernetes API 中 创 建 一 个 secret, 然 后 才 能 使 用 它 。 < / p >
< h3 id = "storageos" > storageOS< / h3 >
< p > < code > storageos< / code > 卷 允 许 将 现 有 的 < a href = "https://www.storageos.com" target = "_blank" > StorageOS< / a > 卷 挂 载 到 容 器 中 。 < / p >
< p > StorageOS 在 Kubernetes 环 境 中 以 容 器 方 式 运 行 , 使 本 地 或 附 加 存 储 可 以 从 Kubernetes 集 群 中 的 任 何 节 点 访 问 。 可 以 复 制 数 据 以 防 止 节 点 故 障 。 精 简 配 置 和 压 缩 可 以 提 高 利 用 率 并 降 低 成 本 。 < / p >
< p > StorageOS 的 核 心 是 为 容 器 提 供 块 存 储 , 可 以 通 过 文 件 系 统 访 问 。 < / p >
< p > StorageOS 容 器 需 要 64 位 Linux, 没 有 额 外 的 依 赖 关 系 。 可 以 使 用 免 费 的 开 发 者 许 可 证 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 您 必 须 在 每 个 要 访 问 StorageOS 卷 的 节 点 上 运 行 StorageOS 容 器 , 或 者 为 该 池 提 供 存 储 容 量 。 相 关 的 安 装 说 明 , 请 参 阅 < a href = "https://docs.storageos.com" target = "_blank" > StorageOS文 档 < / a > 。 < / p >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > labels< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > redis
< span class = "token key atrule" > role< / span > < span class = "token punctuation" > :< / span > master
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > storageos< span class = "token punctuation" > -< / span > redis
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > master
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > kubernetes/redis< span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > env< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > MASTER
< span class = "token key atrule" > value< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " true" < / span >
< span class = "token key atrule" > ports< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > containerPort< / span > < span class = "token punctuation" > :< / span > < span class = "token number" > 6379< / span >
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > /redis< span class = "token punctuation" > -< / span > master< span class = "token punctuation" > -< / span > data
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > redis< span class = "token punctuation" > -< / span > data
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > redis< span class = "token punctuation" > -< / span > data
< span class = "token key atrule" > storageos< / span > < span class = "token punctuation" > :< / span >
< span class = "token comment" > # The `redis-vol01` volume must already exist within StorageOS in the `default` namespace.< / span >
< span class = "token key atrule" > volumeName< / span > < span class = "token punctuation" > :< / span > redis< span class = "token punctuation" > -< / span > vol01
< span class = "token key atrule" > fsType< / span > < span class = "token punctuation" > :< / span > ext4
< / code > < / pre >
< h3 id = "vspherevolume" > vsphereVolume< / h3 >
2022-02-22 16:31:44 +08:00
< p > < strong > 先 决 条 件 < / strong > : 配 置 了 vSphere Cloud Provider 的 Kubernetes。 < / p >
2020-06-19 14:52:56 +08:00
< p > < code > vsphereVolume< / code > 用 于 将 vSphere VMDK 卷 挂 载 到 Pod 中 。 卷 的 内 容 在 卸 载 时 会 被 保 留 。 支 持 VMFS 和 VSAN 数 据 存 储 。 < / p >
< p > < strong > 重 要 提 示 < / strong > : 在 Pod 中 使 用 它 之 前 , 您 必 须 使 用 以 下 一 种 方 法 创 建 VMDK。 < / p >
< h4 id = "创建-vmdk-卷" > 创 建 VMDK 卷 < / h4 >
< p > 选 择 以 下 方 法 之 一 来 创 建 VMDK。 < / p >
< p > 首 先 进 入 ESX, 然 后 使 用 以 下 命 令 创 建 一 个 VMDK: < / p >
< pre class = "language-" > < code class = "lang-bash" > vmkfstools -c 2G /vmfs/volumes/DatastoreName/volumes/myDisk.vmdk
< / code > < / pre >
< p > 使 用 下 列 命 令 创 建 一 个 VMDK: < / p >
< pre class = "language-" > < code class = "lang-bash" > vmware-vdiskmanager -c -t < span class = "token number" > 0< / span > -s 40GB -a lsilogic myDisk.vmdk
< / code > < / pre >
< h4 id = "vsphere-vmdk-示例配置" > vSphere VMDK 示 例 配 置 < / h4 >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > vmdk
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > k8s.gcr.io/test< span class = "token punctuation" > -< / span > webserver
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > container
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > /test< span class = "token punctuation" > -< / span > vmdk
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > volume
< span class = "token comment" > # This VMDK volume must already exist.< / span >
< span class = "token key atrule" > vsphereVolume< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > volumePath< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " [DatastoreName] volumes/myDisk" < / span >
< span class = "token key atrule" > fsType< / span > < span class = "token punctuation" > :< / span > ext4
< / code > < / pre >
< p > 更 多 的 例 子 可 以 在 < a href = "https://github.com/kubernetes/examples/tree/master/staging/volumes/vsphere" target = "_blank" > 这 里 < / a > 找 到 。 < / p >
< h2 id = "使用-subpath" > 使 用 subPath< / h2 >
< p > 有 时 , 在 单 个 容 器 中 共 享 一 个 卷 用 于 多 个 用 途 是 有 用 的 。 < code > volumeMounts.subPath< / code > 属 性 可 用 于 在 引 用 的 卷 内 而 不 是 其 根 目 录 中 指 定 子 路 径 。 < / p >
< p > 下 面 是 一 个 使 用 单 个 共 享 卷 的 LAMP 堆 栈 ( Linux Apache Mysql PHP) 的 示 例 。 HTML 内 容 被 映 射 到 它 的 html 目 录 , 数 据 库 将 被 存 储 在 它 的 mysql 目 录 中 : < / p >
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > my< span class = "token punctuation" > -< / span > lamp< span class = "token punctuation" > -< / span > site
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > containers< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > mysql
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > mysql
< span class = "token key atrule" > env< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > MYSQL_ROOT_PASSWORD
< span class = "token key atrule" > value< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " rootpasswd" < / span >
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > /var/lib/mysql
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > site< span class = "token punctuation" > -< / span > data
< span class = "token key atrule" > subPath< / span > < span class = "token punctuation" > :< / span > mysql
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > php
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > php< span class = "token punctuation" > :< / span > 7.0< span class = "token punctuation" > -< / span > apache
< span class = "token key atrule" > volumeMounts< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > /var/www/html
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > site< span class = "token punctuation" > -< / span > data
< span class = "token key atrule" > subPath< / span > < span class = "token punctuation" > :< / span > html
< span class = "token key atrule" > volumes< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > site< span class = "token punctuation" > -< / span > data
< span class = "token key atrule" > persistentVolumeClaim< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > claimName< / span > < span class = "token punctuation" > :< / span > my< span class = "token punctuation" > -< / span > lamp< span class = "token punctuation" > -< / span > site< span class = "token punctuation" > -< / span > data
< / code > < / pre >
< h2 id = "资源" > 资 源 < / h2 >
< p > < code > emptyDir< / code > 卷 的 存 储 介 质 ( 磁 盘 、 SSD 等 ) 由 保 存 在 kubelet 根 目 录 的 文 件 系 统 的 介 质 ( 通 常 是 < code > /var/lib/kubelet< / code > ) 决 定 。 < code > emptyDir< / code > 或 < code > hostPath< / code > 卷 可 占 用 多 少 空 间 并 没 有 限 制 , 容 器 之 间 或 Pod 之 间 也 没 有 隔 离 。 < / p >
< p > 在 将 来 , 我 们 预 计 < code > emptyDir< / code > 和 < code > hostPath< / code > 卷 将 能 够 使 用 < a href = "https://kubernetes.io/docs/user-guide/compute-resources" target = "_blank" > resource< / a > 规 范 请 求 一 定 的 空 间 , 并 选 择 要 使 用 的 介 质 , 适 用 于 具 有 多 种 媒 体 类 型 的 集 群 。 < / p >
< h2 id = "out-of-tree-卷插件" > Out-of-Tree 卷 插 件 < / h2 >
< p > 除 了 之 前 列 出 的 卷 类 型 之 外 , 存 储 供 应 商 可 以 创 建 自 定 义 插 件 而 不 将 其 添 加 到 Kubernetes 存 储 库 中 。 可 以 通 过 使 用 < code > FlexVolume< / code > 插 件 来 实 现 。 < / p >
< p > < code > FlexVolume< / code > 使 用 户 能 够 将 供 应 商 卷 挂 载 到 容 器 中 。 供 应 商 插 件 是 使 用 驱 动 程 序 实 现 的 , 该 驱 动 程 序 支 持 由 < code > FlexVolume< / code > API定 义 的 一 系 列 卷 命 令 。 驱 动 程 序 必 须 安 装 在 每 个 节 点 的 预 定 义 卷 插 件 路 径 中 。 < / p >
< h2 id = "挂载传播" > 挂 载 传 播 < / h2 >
< p > < strong > 注 意 < / strong > : 挂 载 传 播 是 Kubernetes 1.8 中 的 一 个 alpha 特 性 , 在 将 来 的 版 本 中 可 能 会 重 新 设 计 甚 至 删 除 。 < / p >
< p > 挂 载 传 播 允 许 将 由 容 器 挂 载 的 卷 共 享 到 同 一 个 Pod 中 的 其 他 容 器 上 , 甚 至 是 同 一 节 点 上 的 其 他 Pod。 < / p >
< p > 如 果 禁 用 MountPropagation 功 能 , 则 不 会 传 播 pod 中 的 卷 挂 载 。 也 就 是 说 , 容 器 按 照 < a href = "https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt" target = "_blank" > Linux内 核 文 档 < / a > 中 所 述 的 < code > private< / code > 挂 载 传 播 运 行 。 < / p >
< p > 要 启 用 此 功 能 , 请 在 < code > --feature-gates< / code > 命 令 行 选 项 中 指 定 < code > MountPropagation = true< / code > 。 启 用 时 , 容 器 的 < code > volumeMounts< / code > 字 段 有 一 个 新 的 < code > mountPropagation< / code > 子 字 段 。 它 的 值 为 : < / p >
< ul >
< li > < p > < code > HostToContainer< / code > : 此 卷 挂 载 将 接 收 所 有 后 续 挂 载 到 此 卷 或 其 任 何 子 目 录 的 挂 载 。 这 是 MountPropagation 功 能 启 用 时 的 默 认 模 式 。 < / p >
< p > 同 样 的 , 如 果 任 何 带 有 < code > Bidirectional< / code > 挂 载 传 播 的 pod 挂 载 到 同 一 个 卷 上 , 带 有 < code > HostToContainer< / code > 挂 载 传 播 的 容 器 将 会 看 到 它 。 < / p >
< p > 该 模 式 等 同 于 < a href = "https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt" target = "_blank" > Linux内 核 文 档 < / a > 中 描 述 的 < code > rslave< / code > 挂 载 传 播 。 < / p >
< / li >
< li > < p > < code > Bidirectional< / code > 卷 挂 载 与 < code > HostToContainer< / code > 挂 载 相 同 。 另 外 , 由 容 器 创 建 的 所 有 卷 挂 载 将 被 传 播 回 主 机 和 所 有 使 用 相 同 卷 的 容 器 的 所 有 容 器 。 < / p >
< p > 此 模 式 的 一 个 典 型 用 例 是 带 有 Flex 卷 驱 动 器 或 需 要 使 用 HostPath 卷 在 主 机 上 挂 载 某 些 内 容 的 pod。 < / p >
< p > 该 模 式 等 同 于 < a href = "https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt" target = "_blank" > Linux内 核 文 档 < / a > 中 所 述 的 < code > rshared< / code > 挂 载 传 播 。 < / p >
< / li >
< / ul >
< p > < strong > 小 心 < / strong > : 双 向 挂 载 传 播 可 能 是 危 险 的 。 它 可 能 会 损 坏 主 机 操 作 系 统 , 因 此 只 能 在 特 权 容 器 中 使 用 。 强 烈 建 议 熟 悉 Linux 内 核 行 为 。 另 外 , 容 器 在 Pod 中 创 建 的 任 何 卷 挂 载 必 须 在 容 器 终 止 时 销 毁 ( 卸 载 ) 。 < / p >
< h2 id = "参考" > 参 考 < / h2 >
< ul >
2021-12-25 21:47:43 +08:00
< li > < p > < a href = "https://kubernetes.io/docs/concepts/storage/volumes/" target = "_blank" > Volumes - kubernetes.io< / a > < / p >
2020-06-19 14:52:56 +08:00
< / li >
2021-12-25 21:47:43 +08:00
< li > < p > < a href = "https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/" target = "_blank" > 使 用 持 久 化 卷 来 部 署 WordPress 和 MySQL - kubernetes.io< / a > < / p >
2020-06-19 14:52:56 +08:00
< / li >
< / ul >
2022-02-03 14:59:09 +08:00
< footer class = "page-footer" > < span class = "copyright" > Copyright © 2017-2022 | Distributed under < a href = "https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" target = "_blank" > CC BY 4.0< / a > | < a href = "https://jimmysong.io" target = "_blank" > jimmysong.io< / a > all right reserved.< / span > < span class = "footer-modification" > Updated at
2022-04-27 12:19:40 +08:00
2022-04-27 04:14:59
2020-06-19 14:52:56 +08:00
< / span > < / footer >
< / section >
< / div >
< div class = "search-results" >
< div class = "has-results" >
< h1 class = "search-results-title" > < span class = 'search-results-count' > < / span > results matching "< span class = 'search-query' > < / span > "< / h1 >
< ul class = "search-results-list" > < / ul >
< / div >
< div class = "no-results" >
< h1 class = "search-results-title" > No results matching "< span class = 'search-query' > < / span > "< / h1 >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< a href = "configmap-hot-update.html" class = "navigation navigation-prev " aria-label = "Previous page: ConfigMap 的热更新" >
< i class = "fa fa-angle-left" > < / i >
< / a >
2021-11-09 17:32:02 +08:00
< a href = "persistent-volume.html" class = "navigation navigation-next " aria-label = "Next page: 持久化卷( Persistent Volume) " >
2020-06-19 14:52:56 +08:00
< i class = "fa fa-angle-right" > < / i >
< / a >
< / div >
< script >
var gitbook = gitbook || [];
gitbook.push(function() {
2022-04-27 12:19:40 +08:00
gitbook.page.hasChanged({"page":{"title":"Volume","level":"4.8.3","depth":2,"next":{"title":"持久化卷( Persistent Volume) ","level":"4.8.4","depth":2,"path":"concepts/persistent-volume.md","ref":"concepts/persistent-volume.md","articles":[]},"previous":{"title":"ConfigMap 的热更新","level":"4.8.2.1","depth":3,"path":"concepts/configmap-hot-update.md","ref":"concepts/configmap-hot-update.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github","codesnippet","splitter","page-toc-button","image-captions","editlink","back-to-top-button","-lunr","-search","search-plus","github-buttons@2.1.0","favicon@^0.0.2","tbfed-pagefooter@^0.0.1","3-ba","theme-default","-highlight","prism","prism-themes","lightbox","ga","sitemap-general","hide-element","expandable-chapters-small","insert-logo","adsense"],"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © 2017-2022 | Distributed under < a href = https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh > CC BY 4.0< / a > | < a href = https://jimmysong.io > jimmysong.io< / a > ","modify_label":" Updated at ","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-ghcolors.css"]},"github":{"url":"https://github.com/rootsongjc/kubernetes-handbook"},"editlink":{"label":"编辑本页","multilingual":false,"base":"https://github.com/rootsongjc/kubernetes-handbook/blob/master/"},"splitter":{},"adsense":{"client":"ca-pub-4029167986768912","slot":"2445941692","format":"auto","element":".page-inner section","position":"bottom"},"codesnippet":{},"sitemap-general":{"prefix":"https://jimmysong.io/kubernetes-handbook/"},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"lightbox":{"jquery":true,"sameUuid":false},"page-toc-button":{},"back-to-top-button":{},"prism-themes":{},"github-buttons":{"repo":"rootsongjc/kubernetes-handbook","types":["star"],"size":"small"},"3-ba":{"configuration":"auto","token":"11f7d254cfa4e0ca44b175c66d379ecc"},"expandable-chapters-small":{},"ga":{"configuration":"auto","token":"UA-93485976-1"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"showLevel":true,"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}},"insert-logo":{"style":"background: none; max-height: 100px; min-height: 30px","url":"https://jimmysong.io/images/logo-black-text.png"},"search-plus":{},"image-captions":{"caption":"图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_: _CAPTION_","variable_name":"_pictures"}},"theme":"default","author":"宋净超( Jimmy Song) ","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"_pictures":[{"backlink":"cloud-native/kubernetes-and-cloud-native-app-overview.html#fig2.4.1","level":"2.4","list_caption":"Figure: 云计算演进历程","alt":"云计算演进历程","nro":1,"url":"../images/cloud-computing-evolution-road.jpg","index":1,"caption_template":"图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_: _CAPTION_","label":"云计算演进历程","attributes":{},"skip":false,"key":"2.4.1"},{"backlink":"cloud-native/kubernetes-and-cloud-native-app-overview.html#fig2.4.2","level":"2.4","list_caption":"Figure: 来自 Twitter @MarcWilczek","alt":"来自 Twitter @MarcWilczek","nro":2,"url":"../images/cloud-native-comes-of-age.jpg","index":2,"caption_template":"图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_: _CAPTION_","label":"来自 Twitter @MarcWilczek","attributes":{},"skip":false,"key":"2.4.2"},{"back
2020-06-19 14:52:56 +08:00
});
< / script >
< / div >
< script src = "../gitbook/gitbook.js" > < / script >
< script src = "../gitbook/theme.js" > < / script >
< script src = "../gitbook/gitbook-plugin-github/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-splitter/splitter.js" > < / script >
< script src = "../gitbook/gitbook-plugin-page-toc-button/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-editlink/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-back-to-top-button/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js" > < / script >
< script src = "../gitbook/gitbook-plugin-search-plus/search.js" > < / script >
< script src = "../gitbook/gitbook-plugin-github-buttons/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-3-ba/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js" > < / script >
< script src = "../gitbook/gitbook-plugin-ga/plugin.js" > < / script >
2022-02-03 14:59:09 +08:00
< script src = "../gitbook/gitbook-plugin-hide-element/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js" > < / script >
2022-02-08 23:30:19 +08:00
< script src = "../gitbook/gitbook-plugin-insert-logo/plugin.js" > < / script >
2022-02-22 16:00:11 +08:00
< script src = "../gitbook/gitbook-plugin-adsense/plugin.js" > < / script >
2020-06-19 14:52:56 +08:00
< script src = "../gitbook/gitbook-plugin-sharing/buttons.js" > < / script >
< script src = "../gitbook/gitbook-plugin-fontsettings/fontsettings.js" > < / script >
< / body >
< / html >