2017-09-28 21:20:49 +08:00
<!DOCTYPE HTML>
< html lang = "zh-hans" >
< head >
< meta charset = "UTF-8" >
< meta content = "text/html; charset=utf-8" http-equiv = "Content-Type" >
2017-11-15 21:18:59 +08:00
< title > Secret配置 · Kubernetes Handbook - jimmysong.io< / title >
2017-09-28 21:20:49 +08:00
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" / >
< meta name = "description" content = "" >
< meta name = "generator" content = "GitBook 3.2.2" >
< meta name = "author" content = "Jimmy Song" >
< 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" >
2017-10-09 15:28:05 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-back-to-top-button/plugin.css" >
2017-09-28 21:20:49 +08:00
2017-10-09 15:28:05 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-search-plus/search.css" >
2017-09-28 21:20:49 +08:00
2017-10-09 15:28:05 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css" >
2017-09-28 21:20:49 +08:00
2018-02-20 18:00:08 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-prism/prism-ghcolors.css" >
2017-09-28 21:20:49 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-fontsettings/website.css" >
2017-10-09 15:28:05 +08:00
2017-09-28 21:20:49 +08:00
< 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" >
2017-10-10 14:51:45 +08:00
< link rel = "next" href = "resource-quota-management.html" / >
2017-09-28 21:20:49 +08:00
< link rel = "prev" href = "configure-pod-service-account.html" / >
2017-10-09 15:28:05 +08:00
< 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 >
2017-09-28 21:20:49 +08:00
< / 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" >
2017-10-09 15:28:05 +08:00
< li >
2017-11-15 21:18:59 +08:00
< a href = "https://jimmysong.io" target = "_blank" class = "custom-link" > Jimmy Song< / a >
2017-10-09 15:28:05 +08:00
< / li >
2017-09-28 21:20:49 +08:00
2017-10-09 15:28:05 +08:00
< li class = "divider" > < / li >
2017-09-28 21:20:49 +08:00
2017-11-15 21:18:59 +08:00
< li class = "header" > 前言< / li >
2017-09-28 21:20:49 +08:00
< li class = "chapter " data-level = "1.1" data-path = "../" >
< a href = "../" >
2017-11-15 21:18:59 +08:00
< b > 1.1.< / b >
2017-10-20 10:51:14 +08:00
序言
2017-09-28 21:20:49 +08:00
< / a >
2018-03-04 18:01:35 +08:00
< / li >
< li class = "chapter " data-level = "1.2" data-path = "../cloud-native/cncf.html" >
< a href = "../cloud-native/cncf.html" >
< b > 1.2.< / b >
CNCF - 云原生计算基金会简介
< / a >
2017-09-28 21:20:49 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "header" > 云原生< / li >
2018-01-21 20:30:36 +08:00
< li class = "chapter " data-level = "2.1" data-path = "../cloud-native/play-with-kubernetes.html" >
2017-10-20 10:51:14 +08:00
2018-01-21 20:30:36 +08:00
< a href = "../cloud-native/play-with-kubernetes.html" >
2017-10-20 10:51:14 +08:00
2017-12-20 17:27:16 +08:00
< b > 2.1.< / b >
2017-11-15 21:18:59 +08:00
2018-01-21 20:30:36 +08:00
Play with Kubernetes
< / a >
< / li >
< li class = "chapter " data-level = "2.2" data-path = "../cloud-native/kubernetes-and-cloud-native-app-overview.html" >
< a href = "../cloud-native/kubernetes-and-cloud-native-app-overview.html" >
< b > 2.2.< / b >
2017-11-15 21:18:59 +08:00
Kubernetes与云原生应用概览
2017-10-20 10:51:14 +08:00
< / a >
2017-12-20 19:27:32 +08:00
< / li >
2018-01-21 20:30:36 +08:00
< li class = "chapter " data-level = "2.3" data-path = "../cloud-native/from-kubernetes-to-cloud-native.html" >
2017-12-20 19:27:32 +08:00
< a href = "../cloud-native/from-kubernetes-to-cloud-native.html" >
2018-01-21 20:30:36 +08:00
< b > 2.3.< / b >
2017-12-20 19:27:32 +08:00
云原生应用之路——从Kubernetes到Cloud Native
< / a >
2018-05-12 23:29:42 +08:00
< / li >
< li class = "chapter " data-level = "2.4" data-path = "../cloud-native/cloud-native-programming-language-ballerina.html" >
< a href = "../cloud-native/cloud-native-programming-language-ballerina.html" >
< b > 2.4.< / b >
云原生编程语言Ballerina
< / a >
2017-10-20 10:51:14 +08:00
< / li >
2017-11-15 21:18:59 +08:00
< li class = "header" > 概念与原理< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "3.1" data-path = "../concepts/" >
2017-09-28 21:20:49 +08:00
< a href = "../concepts/" >
2017-12-20 17:27:16 +08:00
< b > 3.1.< / b >
2017-11-15 21:18:59 +08:00
Kubernetes架构
2017-09-28 21:20:49 +08:00
< / a >
2018-01-22 14:25:36 +08:00
< ul class = "articles" >
2018-01-30 12:30:58 +08:00
< li class = "chapter " data-level = "3.1.1" data-path = "../concepts/concepts.html" >
2018-01-22 14:25:36 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/concepts.html" >
2018-01-22 14:25:36 +08:00
< b > 3.1.1.< / b >
2018-01-30 12:30:58 +08:00
设计理念
< / a >
< / li >
< li class = "chapter " data-level = "3.1.2" data-path = "../concepts/etcd.html" >
< a href = "../concepts/etcd.html" >
< b > 3.1.2.< / b >
2018-01-22 14:25:36 +08:00
Etcd解析
< / a >
2018-01-22 15:48:09 +08:00
< / li >
2018-01-30 12:30:58 +08:00
< li class = "chapter " data-level = "3.1.3" data-path = "../concepts/open-interfaces.html" >
2018-01-22 15:48:09 +08:00
< a href = "../concepts/open-interfaces.html" >
2018-01-30 12:30:58 +08:00
< b > 3.1.3.< / b >
2018-01-22 15:48:09 +08:00
开放接口
< / a >
2018-01-22 18:55:50 +08:00
< ul class = "articles" >
2018-01-30 12:30:58 +08:00
< li class = "chapter " data-level = "3.1.3.1" data-path = "../concepts/cri.html" >
2018-01-22 18:55:50 +08:00
< a href = "../concepts/cri.html" >
2018-01-30 12:30:58 +08:00
< b > 3.1.3.1.< / b >
2018-01-22 18:55:50 +08:00
CRI - Container Runtime Interface( 容器运行时接口)
< / a >
2018-01-24 18:11:17 +08:00
< / li >
2018-01-30 12:30:58 +08:00
< li class = "chapter " data-level = "3.1.3.2" data-path = "../concepts/cni.html" >
2018-01-24 18:11:17 +08:00
< a href = "../concepts/cni.html" >
2018-01-30 12:30:58 +08:00
< b > 3.1.3.2.< / b >
2018-01-24 18:11:17 +08:00
CNI - Container Network Interface( 容器网络接口)
< / a >
2018-01-25 17:06:10 +08:00
< / li >
2018-01-30 12:30:58 +08:00
< li class = "chapter " data-level = "3.1.3.3" data-path = "../concepts/csi.html" >
2018-01-25 17:06:10 +08:00
< a href = "../concepts/csi.html" >
2018-01-30 12:30:58 +08:00
< b > 3.1.3.3.< / b >
2018-01-25 17:06:10 +08:00
CSI - Container Storage Interface( 容器存储接口)
< / a >
2018-01-22 18:55:50 +08:00
< / li >
< / ul >
2018-02-05 22:14:09 +08:00
< / li >
2018-03-12 17:48:23 +08:00
< / ul >
< / li >
< li class = "chapter " data-level = "3.2" >
< span >
< b > 3.2.< / b >
Kubernetes中的网络
< / span >
< ul class = "articles" >
< li class = "chapter " data-level = "3.2.1" data-path = "../concepts/networking.html" >
2018-02-05 22:14:09 +08:00
< a href = "../concepts/networking.html" >
2018-03-12 17:48:23 +08:00
< b > 3.2.1.< / b >
2018-02-05 22:14:09 +08:00
Kubernetes中的网络解析——以flannel为例
< / a >
2018-01-22 14:25:36 +08:00
< / li >
2018-03-12 17:48:23 +08:00
< li class = "chapter " data-level = "3.2.2" data-path = "../concepts/calico.html" >
2017-09-28 21:20:49 +08:00
2018-02-09 18:24:23 +08:00
< a href = "../concepts/calico.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 17:48:23 +08:00
< b > 3.2.2.< / b >
2017-11-15 21:18:59 +08:00
2018-02-09 18:24:23 +08:00
Kubernetes中的网络解析——以calico为例
< / a >
< / li >
2018-03-12 17:48:23 +08:00
< / ul >
< / li >
< li class = "chapter " data-level = "3.3" data-path = "../concepts/objects.html" >
2018-02-09 18:24:23 +08:00
< a href = "../concepts/objects.html" >
2018-03-12 17:48:23 +08:00
< b > 3.3.< / b >
2018-02-09 18:24:23 +08:00
2018-01-30 12:30:58 +08:00
资源对象与基本概念解析
2017-09-28 21:20:49 +08:00
< / a >
2018-03-12 17:48:23 +08:00
< / li >
2017-09-28 21:20:49 +08:00
2018-03-12 17:48:23 +08:00
< li class = "chapter " data-level = "3.4" data-path = "../concepts/pod-state-and-lifecycle.html" >
2017-09-28 21:20:49 +08:00
2018-02-06 16:51:29 +08:00
< a href = "../concepts/pod-state-and-lifecycle.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 17:48:23 +08:00
< b > 3.4.< / b >
2017-11-15 21:18:59 +08:00
2018-02-06 16:51:29 +08:00
Pod状态与生命周期管理
2017-09-28 21:20:49 +08:00
< / a >
2018-03-12 17:48:23 +08:00
< ul class = "articles" >
2017-09-28 21:20:49 +08:00
2018-03-12 17:48:23 +08:00
< li class = "chapter " data-level = "3.4.1" data-path = "../concepts/pod-overview.html" >
2017-09-28 21:20:49 +08:00
< a href = "../concepts/pod-overview.html" >
2018-03-12 17:48:23 +08:00
< b > 3.4.1.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Pod概览
2017-09-28 21:20:49 +08:00
< / a >
2018-01-30 12:30:58 +08:00
< / li >
2017-09-28 21:20:49 +08:00
2018-03-12 17:48:23 +08:00
< li class = "chapter " data-level = "3.4.2" data-path = "../concepts/pod.html" >
2017-09-28 21:20:49 +08:00
< a href = "../concepts/pod.html" >
2018-03-12 17:48:23 +08:00
< b > 3.4.2.< / b >
2017-11-15 21:18:59 +08:00
Pod解析
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-12 17:48:23 +08:00
< li class = "chapter " data-level = "3.4.3" data-path = "../concepts/init-containers.html" >
2017-09-28 21:20:49 +08:00
< a href = "../concepts/init-containers.html" >
2018-03-12 17:48:23 +08:00
< b > 3.4.3.< / b >
2017-11-15 21:18:59 +08:00
Init容器
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-17 22:22:27 +08:00
< li class = "chapter " data-level = "3.4.4" data-path = "../concepts/pause-container.html" >
2017-09-28 21:20:49 +08:00
2018-03-17 22:22:27 +08:00
< a href = "../concepts/pause-container.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 17:48:23 +08:00
< b > 3.4.4.< / b >
2017-11-15 21:18:59 +08:00
2018-03-17 22:22:27 +08:00
Pause容器
< / a >
< / li >
< li class = "chapter " data-level = "3.4.5" data-path = "../concepts/pod-security-policy.html" >
< a href = "../concepts/pod-security-policy.html" >
< b > 3.4.5.< / b >
2017-11-15 21:18:59 +08:00
Pod安全策略
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-17 22:22:27 +08:00
< li class = "chapter " data-level = "3.4.6" data-path = "../concepts/pod-lifecycle.html" >
2017-09-28 21:20:49 +08:00
< a href = "../concepts/pod-lifecycle.html" >
2018-03-17 22:22:27 +08:00
< b > 3.4.6.< / b >
2017-11-15 21:18:59 +08:00
Pod的生命周期
2017-09-28 21:20:49 +08:00
< / a >
2017-11-24 22:59:46 +08:00
< / li >
2018-03-17 22:22:27 +08:00
< li class = "chapter " data-level = "3.4.7" data-path = "../concepts/pod-hook.html" >
2017-11-24 22:59:46 +08:00
< a href = "../concepts/pod-hook.html" >
2018-03-17 22:22:27 +08:00
< b > 3.4.7.< / b >
2017-11-24 22:59:46 +08:00
2017-12-27 12:29:33 +08:00
Pod Hook
2017-11-24 22:59:46 +08:00
< / a >
2017-12-11 10:47:19 +08:00
< / li >
2018-03-17 22:22:27 +08:00
< li class = "chapter " data-level = "3.4.8" data-path = "../concepts/pod-preset.html" >
2017-12-11 10:47:19 +08:00
< a href = "../concepts/pod-preset.html" >
2018-03-17 22:22:27 +08:00
< b > 3.4.8.< / b >
2017-12-11 10:47:19 +08:00
Pod Preset
< / a >
2018-01-30 12:30:58 +08:00
< / li >
2018-03-17 22:22:27 +08:00
< li class = "chapter " data-level = "3.4.9" data-path = "../concepts/pod-disruption-budget.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/pod-disruption-budget.html" >
2018-03-17 22:22:27 +08:00
< b > 3.4.9.< / b >
2018-01-30 12:30:58 +08:00
Pod中断与PDB( Pod中断预算)
< / a >
2018-03-12 18:00:25 +08:00
< / li >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< / ul >
< / li >
< li class = "chapter " data-level = "3.5" data-path = "../concepts/cluster.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/cluster.html" >
2018-03-12 18:00:25 +08:00
< b > 3.5.< / b >
2018-01-30 12:30:58 +08:00
2018-03-12 17:48:23 +08:00
集群资源管理
2018-01-30 12:30:58 +08:00
< / a >
2018-03-12 18:00:25 +08:00
< ul class = "articles" >
2018-01-30 12:30:58 +08:00
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.5.1" data-path = "../concepts/node.html" >
2017-09-28 21:20:49 +08:00
< a href = "../concepts/node.html" >
2018-03-12 18:00:25 +08:00
< b > 3.5.1.< / b >
2017-11-15 21:18:59 +08:00
Node
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.5.2" data-path = "../concepts/namespace.html" >
2017-09-28 21:20:49 +08:00
< a href = "../concepts/namespace.html" >
2018-03-12 18:00:25 +08:00
< b > 3.5.2.< / b >
2017-11-15 21:18:59 +08:00
Namespace
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.5.3" data-path = "../concepts/label.html" >
2017-09-28 21:20:49 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/label.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.5.3.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Label
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.5.4" data-path = "../concepts/annotation.html" >
2017-09-28 21:20:49 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/annotation.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.5.4.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Annotation
2017-09-28 21:20:49 +08:00
< / a >
2018-01-25 15:01:14 +08:00
< / li >
2018-01-08 17:26:29 +08:00
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.5.5" data-path = "../concepts/taint-and-toleration.html" >
2018-01-08 17:26:29 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/taint-and-toleration.html" >
2018-01-08 17:26:29 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.5.5.< / b >
2018-01-08 17:26:29 +08:00
2018-01-30 12:30:58 +08:00
Taint和Toleration( 污点和容忍)
2018-01-08 17:26:29 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.5.6" data-path = "../concepts/garbage-collection.html" >
2017-09-28 21:20:49 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/garbage-collection.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.5.6.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
垃圾收集
2017-09-28 21:20:49 +08:00
< / a >
2018-03-12 18:00:25 +08:00
< / li >
2018-01-30 12:30:58 +08:00
2018-03-12 18:00:25 +08:00
< / ul >
< / li >
< li class = "chapter " data-level = "3.6" data-path = "../concepts/controllers.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/controllers.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
控制器
2017-09-28 21:20:49 +08:00
< / a >
2018-03-12 18:00:25 +08:00
< ul class = "articles" >
2018-03-12 17:48:23 +08:00
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.6.1" data-path = "../concepts/deployment.html" >
2017-09-28 21:20:49 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/deployment.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.1.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Deployment
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.6.2" data-path = "../concepts/statefulset.html" >
2017-09-28 21:20:49 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/statefulset.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.2.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
StatefulSet
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.6.3" data-path = "../concepts/daemonset.html" >
2017-09-28 21:20:49 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/daemonset.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.3.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
DaemonSet
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.6.4" data-path = "../concepts/replicaset.html" >
2017-09-28 21:20:49 +08:00
< a href = "../concepts/replicaset.html" >
2018-03-12 18:00:25 +08:00
< b > 3.6.4.< / b >
2017-11-15 21:18:59 +08:00
ReplicationController和ReplicaSet
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.6.5" data-path = "../concepts/job.html" >
2017-09-28 21:20:49 +08:00
< a href = "../concepts/job.html" >
2018-03-12 18:00:25 +08:00
< b > 3.6.5.< / b >
2017-11-15 21:18:59 +08:00
Job
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.6.6" data-path = "../concepts/cronjob.html" >
2017-09-28 21:20:49 +08:00
< a href = "../concepts/cronjob.html" >
2018-03-12 18:00:25 +08:00
< b > 3.6.6.< / b >
2017-11-15 21:18:59 +08:00
CronJob
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.6.7" data-path = "../concepts/horizontal-pod-autoscaling.html" >
2017-09-28 21:20:49 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/horizontal-pod-autoscaling.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.7.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Horizontal Pod Autoscaling
2017-09-28 21:20:49 +08:00
< / a >
2017-11-30 16:59:17 +08:00
< ul class = "articles" >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.6.7.1" data-path = "../concepts/custom-metrics-hpa.html" >
2017-11-30 16:59:17 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/custom-metrics-hpa.html" >
2017-11-30 16:59:17 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.7.1.< / b >
2017-11-30 16:59:17 +08:00
2018-01-30 12:30:58 +08:00
自定义指标HPA
2017-11-30 16:59:17 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< / ul >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "3.7" data-path = "../concepts/service-discovery.html" >
2017-09-28 21:20:49 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/service-discovery.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.7.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
服务发现
2017-09-28 21:20:49 +08:00
< / a >
2018-03-12 18:00:25 +08:00
< ul class = "articles" >
2017-11-08 19:28:16 +08:00
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.7.1" data-path = "../concepts/service.html" >
2017-11-08 19:28:16 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/service.html" >
2017-11-08 19:28:16 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.7.1.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Service
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.7.2" data-path = "../concepts/ingress.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/ingress.html" >
2018-03-12 18:00:25 +08:00
< b > 3.7.2.< / b >
2018-01-30 12:30:58 +08:00
Ingress
< / a >
< ul class = "articles" >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.7.2.1" data-path = "../concepts/traefik-ingress-controller.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/traefik-ingress-controller.html" >
2018-03-12 18:00:25 +08:00
< b > 3.7.2.1.< / b >
2018-01-30 12:30:58 +08:00
Traefik Ingress Controller
2017-11-08 19:28:16 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< / ul >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "3.8" data-path = "../concepts/authentication-and-permission.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/authentication-and-permission.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.8.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
身份与权限控制
2017-09-28 21:20:49 +08:00
< / a >
2018-03-12 18:00:25 +08:00
< ul class = "articles" >
2018-03-12 17:48:23 +08:00
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.8.1" data-path = "../concepts/serviceaccount.html" >
2017-11-27 19:36:05 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/serviceaccount.html" >
2017-11-27 19:36:05 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.8.1.< / b >
2017-11-27 19:36:05 +08:00
2018-01-30 12:30:58 +08:00
ServiceAccount
2017-11-27 19:36:05 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.8.2" data-path = "../concepts/rbac.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/rbac.html" >
2018-03-12 18:00:25 +08:00
< b > 3.8.2.< / b >
2018-01-30 12:30:58 +08:00
RBAC——基于角色的访问控制
< / a >
2017-11-27 19:36:05 +08:00
2017-09-28 21:20:49 +08:00
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.8.3" data-path = "../concepts/network-policy.html" >
2017-09-28 21:20:49 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/network-policy.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.8.3.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
NetworkPolicy
2017-09-28 21:20:49 +08:00
< / a >
2018-03-12 18:00:25 +08:00
< / li >
< / ul >
< / li >
2018-01-30 12:30:58 +08:00
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.9" data-path = "../concepts/storage.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/storage.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.9.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
存储
2017-09-28 21:20:49 +08:00
< / a >
2018-03-12 18:00:25 +08:00
< ul class = "articles" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.9.1" data-path = "../concepts/secret.html" >
2017-09-28 21:20:49 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/secret.html" >
2017-09-28 21:20:49 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.9.1.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Secret
2017-09-28 21:20:49 +08:00
< / a >
2017-11-09 16:48:38 +08:00
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.9.2" data-path = "../concepts/configmap.html" >
2017-11-09 16:48:38 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/configmap.html" >
2017-11-09 16:48:38 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.9.2.< / b >
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
ConfigMap
< / a >
< ul class = "articles" >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.9.2.1" data-path = "../concepts/configmap-hot-update.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/configmap-hot-update.html" >
2018-03-12 18:00:25 +08:00
< b > 3.9.2.1.< / b >
2018-01-30 12:30:58 +08:00
ConfigMap的热更新
2017-11-09 16:48:38 +08:00
< / a >
2017-11-27 19:36:05 +08:00
< / li >
2018-01-30 12:30:58 +08:00
< / ul >
2017-11-27 19:36:05 +08:00
2018-01-30 12:30:58 +08:00
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.9.3" data-path = "../concepts/volume.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/volume.html" >
2017-11-27 19:36:05 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.9.3.< / b >
2017-11-27 19:36:05 +08:00
2018-01-30 12:30:58 +08:00
Volume
2017-11-27 19:36:05 +08:00
< / a >
2017-11-28 11:57:57 +08:00
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.9.4" data-path = "../concepts/persistent-volume.html" >
2017-11-28 11:57:57 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/persistent-volume.html" >
2017-11-28 11:57:57 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.9.4.< / b >
2017-11-28 11:57:57 +08:00
2018-01-30 12:30:58 +08:00
Persistent Volume( 持久化卷)
2017-11-28 11:57:57 +08:00
< / a >
2018-01-30 18:01:34 +08:00
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.9.5" data-path = "../concepts/storageclass.html" >
2018-01-30 18:01:34 +08:00
< a href = "../concepts/storageclass.html" >
2018-03-12 18:00:25 +08:00
< b > 3.9.5.< / b >
2018-01-30 18:01:34 +08:00
Storage Class
< / a >
2018-04-17 20:16:17 +08:00
< / li >
< li class = "chapter " data-level = "3.9.6" data-path = "../concepts/local-persistent-storage.html" >
< a href = "../concepts/local-persistent-storage.html" >
< b > 3.9.6.< / b >
本地持久化存储
< / a >
2018-03-12 18:00:25 +08:00
< / li >
2018-01-30 12:30:58 +08:00
2018-03-12 18:00:25 +08:00
< / ul >
< / li >
< li class = "chapter " data-level = "3.10" data-path = "../concepts/extension.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/extension.html" >
2017-12-14 19:41:46 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.10.< / b >
2017-12-14 19:41:46 +08:00
2018-03-12 17:48:23 +08:00
集群扩展
2018-01-30 12:30:58 +08:00
< / a >
2018-03-12 18:00:25 +08:00
< ul class = "articles" >
2018-01-30 12:30:58 +08:00
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.10.1" data-path = "../concepts/custom-resource.html" >
2018-01-30 12:30:58 +08:00
< a href = "../concepts/custom-resource.html" >
2018-03-12 18:00:25 +08:00
< b > 3.10.1.< / b >
2018-01-30 12:30:58 +08:00
使用自定义资源扩展API
2017-12-14 19:41:46 +08:00
< / a >
2018-01-10 17:30:31 +08:00
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.10.2" data-path = "../concepts/aggregated-api-server.html" >
2018-01-10 17:30:31 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/aggregated-api-server.html" >
2018-01-10 17:30:31 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.10.2.< / b >
2018-01-10 17:30:31 +08:00
2018-01-30 12:30:58 +08:00
Aggregated API Server
2018-01-10 17:30:31 +08:00
< / a >
2018-01-19 17:02:44 +08:00
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.10.3" data-path = "../concepts/apiservice.html" >
2018-01-19 17:02:44 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/apiservice.html" >
2018-01-19 17:02:44 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.10.3.< / b >
2018-01-19 17:02:44 +08:00
2018-01-30 12:30:58 +08:00
APIService
2018-01-19 17:02:44 +08:00
< / a >
2018-04-22 21:36:38 +08:00
< / li >
< li class = "chapter " data-level = "3.10.4" data-path = "../concepts/service-catalog.html" >
< a href = "../concepts/service-catalog.html" >
< b > 3.10.4.< / b >
Service Catalog
< / a >
2017-09-28 21:20:49 +08:00
< / li >
< / ul >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.11" data-path = "../concepts/scheduling.html" >
2018-03-12 17:48:23 +08:00
< a href = "../concepts/scheduling.html" >
2018-03-12 18:00:25 +08:00
< b > 3.11.< / b >
2018-03-12 17:48:23 +08:00
资源调度
< / a >
2017-09-28 21:20:49 +08:00
2018-01-30 12:30:58 +08:00
< / li >
2017-09-28 21:20:49 +08:00
2017-11-15 21:18:59 +08:00
< li class = "header" > 用户指南< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.1" data-path = "./" >
2017-09-28 21:20:49 +08:00
< a href = "./" >
2017-12-20 17:27:16 +08:00
< b > 4.1.< / b >
2017-11-15 21:18:59 +08:00
用户指南
2017-09-28 21:20:49 +08:00
< / a >
2017-11-15 21:18:59 +08:00
< / li >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.2" data-path = "resource-configuration.html" >
2017-09-28 21:20:49 +08:00
< a href = "resource-configuration.html" >
2017-12-20 17:27:16 +08:00
< b > 4.2.< / b >
2017-11-15 21:18:59 +08:00
资源对象配置
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.2.1" data-path = "configure-liveness-readiness-probes.html" >
2017-09-28 21:20:49 +08:00
< a href = "configure-liveness-readiness-probes.html" >
2017-12-20 17:27:16 +08:00
< b > 4.2.1.< / b >
2017-11-15 21:18:59 +08:00
配置Pod的liveness和readiness探针
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.2.2" data-path = "configure-pod-service-account.html" >
2017-09-28 21:20:49 +08:00
< a href = "configure-pod-service-account.html" >
2017-12-20 17:27:16 +08:00
< b > 4.2.2.< / b >
2017-11-15 21:18:59 +08:00
配置Pod的Service Account
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter active" data-level = "4.2.3" data-path = "secret-configuration.html" >
2017-09-28 21:20:49 +08:00
< a href = "secret-configuration.html" >
2017-12-20 17:27:16 +08:00
< b > 4.2.3.< / b >
2017-11-15 21:18:59 +08:00
Secret配置
2017-09-28 21:20:49 +08:00
< / a >
2017-10-10 14:51:45 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.2.4" data-path = "resource-quota-management.html" >
2017-10-10 14:51:45 +08:00
< a href = "resource-quota-management.html" >
2017-12-20 17:27:16 +08:00
< b > 4.2.4.< / b >
2017-11-15 21:18:59 +08:00
管理namespace中的资源配额
2017-10-10 14:51:45 +08:00
< / a >
2017-09-28 21:20:49 +08:00
< / li >
< / ul >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.3" data-path = "command-usage.html" >
2017-09-28 21:20:49 +08:00
< a href = "command-usage.html" >
2017-12-20 17:27:16 +08:00
< b > 4.3.< / b >
2017-11-15 21:18:59 +08:00
命令使用
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.3.1" data-path = "docker-cli-to-kubectl.html" >
2017-11-03 17:48:10 +08:00
< a href = "docker-cli-to-kubectl.html" >
2017-12-20 17:27:16 +08:00
< b > 4.3.1.< / b >
2017-11-15 21:18:59 +08:00
docker用户过度到kubectl命令行指南
2017-11-03 17:48:10 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.3.2" data-path = "using-kubectl.html" >
2017-09-28 21:20:49 +08:00
< a href = "using-kubectl.html" >
2017-12-20 17:27:16 +08:00
< b > 4.3.2.< / b >
2017-11-15 21:18:59 +08:00
kubectl命令概览
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.3.3" data-path = "kubectl-cheatsheet.html" >
2017-09-28 21:20:49 +08:00
2017-11-03 17:48:10 +08:00
< a href = "kubectl-cheatsheet.html" >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< b > 4.3.3.< / b >
2017-11-15 21:18:59 +08:00
kubectl命令技巧大全
2017-09-28 21:20:49 +08:00
< / a >
2017-11-23 13:06:23 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.3.4" data-path = "using-etcdctl-to-access-kubernetes-data.html" >
2017-11-23 13:06:23 +08:00
< a href = "using-etcdctl-to-access-kubernetes-data.html" >
2017-12-20 17:27:16 +08:00
< b > 4.3.4.< / b >
2017-11-23 13:06:23 +08:00
2017-12-25 18:15:30 +08:00
使用etcdctl访问kubernetes数据
2017-11-23 13:06:23 +08:00
< / a >
2017-09-28 21:20:49 +08:00
< / li >
< / ul >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.4" data-path = "cluster-security-management.html" >
2017-09-28 21:20:49 +08:00
< a href = "cluster-security-management.html" >
2017-12-20 17:27:16 +08:00
< b > 4.4.< / b >
2017-11-15 21:18:59 +08:00
集群安全性管理
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.4.1" data-path = "managing-tls-in-a-cluster.html" >
2017-09-28 21:20:49 +08:00
< a href = "managing-tls-in-a-cluster.html" >
2017-12-20 17:27:16 +08:00
< b > 4.4.1.< / b >
2017-11-15 21:18:59 +08:00
管理集群中的TLS
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.4.2" data-path = "kubelet-authentication-authorization.html" >
2017-09-28 21:20:49 +08:00
< a href = "kubelet-authentication-authorization.html" >
2017-12-20 17:27:16 +08:00
< b > 4.4.2.< / b >
2017-11-15 21:18:59 +08:00
kubelet的认证授权
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.4.3" data-path = "tls-bootstrapping.html" >
2017-09-28 21:20:49 +08:00
< a href = "tls-bootstrapping.html" >
2017-12-20 17:27:16 +08:00
< b > 4.4.3.< / b >
2017-11-15 21:18:59 +08:00
TLS bootstrap
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.4.4" data-path = "kubectl-user-authentication-authorization.html" >
2017-09-28 21:20:49 +08:00
< a href = "kubectl-user-authentication-authorization.html" >
2017-12-20 17:27:16 +08:00
< b > 4.4.4.< / b >
2017-11-15 21:18:59 +08:00
创建用户认证授权的kubeconfig文件
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-01-30 12:30:58 +08:00
< li class = "chapter " data-level = "4.4.5" data-path = "ip-masq-agent.html" >
2017-09-28 21:20:49 +08:00
< a href = "ip-masq-agent.html" >
2018-01-30 12:30:58 +08:00
< b > 4.4.5.< / b >
2017-11-15 21:18:59 +08:00
IP伪装代理
2017-09-28 21:20:49 +08:00
< / a >
2017-11-10 23:22:45 +08:00
< / li >
2018-01-30 12:30:58 +08:00
< li class = "chapter " data-level = "4.4.6" data-path = "auth-with-kubeconfig-or-token.html" >
2017-11-10 23:22:45 +08:00
< a href = "auth-with-kubeconfig-or-token.html" >
2018-01-30 12:30:58 +08:00
< b > 4.4.6.< / b >
2017-11-15 21:18:59 +08:00
使用kubeconfig或token进行用户身份认证
2017-11-10 23:22:45 +08:00
< / a >
2017-11-14 13:46:53 +08:00
< / li >
2018-01-30 12:30:58 +08:00
< li class = "chapter " data-level = "4.4.7" data-path = "authentication.html" >
2017-11-14 13:46:53 +08:00
< a href = "authentication.html" >
2018-01-30 12:30:58 +08:00
< b > 4.4.7.< / b >
2017-11-15 21:18:59 +08:00
2018-01-20 16:56:42 +08:00
Kubernetes中的用户与身份认证授权
2017-11-14 13:46:53 +08:00
< / a >
2018-05-11 21:57:37 +08:00
< / li >
< li class = "chapter " data-level = "4.4.8" data-path = "kubernetes-security-best-practice.html" >
< a href = "kubernetes-security-best-practice.html" >
< b > 4.4.8.< / b >
Kubernetes集群安全性配置最佳实践
< / a >
2017-09-28 21:20:49 +08:00
< / li >
< / ul >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.5" data-path = "access-kubernetes-cluster.html" >
2017-09-28 21:20:49 +08:00
< a href = "access-kubernetes-cluster.html" >
2017-12-20 17:27:16 +08:00
< b > 4.5.< / b >
2017-11-15 21:18:59 +08:00
2017-11-21 20:10:10 +08:00
访问Kubernetes集群
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.5.1" data-path = "access-cluster.html" >
2017-09-28 21:20:49 +08:00
< a href = "access-cluster.html" >
2017-12-20 17:27:16 +08:00
< b > 4.5.1.< / b >
2017-11-15 21:18:59 +08:00
访问集群
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.5.2" data-path = "authenticate-across-clusters-kubeconfig.html" >
2017-09-28 21:20:49 +08:00
< a href = "authenticate-across-clusters-kubeconfig.html" >
2017-12-20 17:27:16 +08:00
< b > 4.5.2.< / b >
2017-11-15 21:18:59 +08:00
2017-11-21 20:10:10 +08:00
使用kubeconfig文件配置跨集群认证
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.5.3" data-path = "connecting-to-applications-port-forward.html" >
2017-09-28 21:20:49 +08:00
< a href = "connecting-to-applications-port-forward.html" >
2017-12-20 17:27:16 +08:00
< b > 4.5.3.< / b >
2017-11-15 21:18:59 +08:00
通过端口转发访问集群中的应用程序
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.5.4" data-path = "service-access-application-cluster.html" >
2017-09-28 21:20:49 +08:00
< a href = "service-access-application-cluster.html" >
2017-12-20 17:27:16 +08:00
< b > 4.5.4.< / b >
2017-11-15 21:18:59 +08:00
2017-11-21 20:10:10 +08:00
使用service访问群集中的应用程序
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.5.5" data-path = "accessing-kubernetes-pods-from-outside-of-the-cluster.html" >
2017-11-21 20:10:10 +08:00
< a href = "accessing-kubernetes-pods-from-outside-of-the-cluster.html" >
2017-12-20 17:27:16 +08:00
< b > 4.5.5.< / b >
2017-11-21 20:10:10 +08:00
从外部访问Kubernetes中的Pod
2017-09-28 21:20:49 +08:00
< / a >
2017-11-22 18:43:03 +08:00
< / li >
2018-01-14 21:13:12 +08:00
< li class = "chapter " data-level = "4.5.6" data-path = "cabin-mobile-dashboard-for-kubernetes.html" >
2017-11-22 18:43:03 +08:00
2018-01-14 21:13:12 +08:00
< a href = "cabin-mobile-dashboard-for-kubernetes.html" >
2017-11-22 18:43:03 +08:00
2017-12-20 17:27:16 +08:00
< b > 4.5.6.< / b >
2017-11-22 18:43:03 +08:00
2018-01-14 21:13:12 +08:00
Cabin - Kubernetes手机客户端
2017-11-22 18:43:03 +08:00
< / a >
2017-11-29 15:07:48 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.5.7" data-path = "kubernetes-desktop-client.html" >
2017-11-29 15:07:48 +08:00
< a href = "kubernetes-desktop-client.html" >
2017-12-20 17:27:16 +08:00
< b > 4.5.7.< / b >
2017-11-29 15:07:48 +08:00
Kubernetic - Kubernetes桌面客户端
< / a >
2017-12-27 11:58:32 +08:00
< / li >
< li class = "chapter " data-level = "4.5.8" data-path = "kubernator-kubernetes-ui.html" >
< a href = "kubernator-kubernetes-ui.html" >
< b > 4.5.8.< / b >
Kubernator - 更底层的Kubernetes UI
< / a >
2017-09-28 21:20:49 +08:00
< / li >
< / ul >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.6" data-path = "application-development-deployment-flow.html" >
2017-09-28 21:20:49 +08:00
< a href = "application-development-deployment-flow.html" >
2017-12-20 17:27:16 +08:00
< b > 4.6.< / b >
2017-11-15 21:18:59 +08:00
2017-12-30 10:37:40 +08:00
在Kubernetes中开发部署应用
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.6.1" data-path = "deploy-applications-in-kubernetes.html" >
2017-09-28 21:20:49 +08:00
< a href = "deploy-applications-in-kubernetes.html" >
2017-12-20 17:27:16 +08:00
< b > 4.6.1.< / b >
2017-11-15 21:18:59 +08:00
适用于kubernetes的应用开发部署流程
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.6.2" data-path = "migrating-hadoop-yarn-to-kubernetes.html" >
2017-09-28 21:20:49 +08:00
< a href = "migrating-hadoop-yarn-to-kubernetes.html" >
2017-12-20 17:27:16 +08:00
< b > 4.6.2.< / b >
2017-11-15 21:18:59 +08:00
2017-12-30 10:37:40 +08:00
迁移传统应用到Kubernetes中——以Hadoop YARN为例
2017-09-28 21:20:49 +08:00
< / a >
2017-10-23 13:40:58 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "4.6.3" data-path = "using-statefulset.html" >
2017-10-23 13:40:58 +08:00
< a href = "using-statefulset.html" >
2017-12-20 17:27:16 +08:00
< b > 4.6.3.< / b >
2017-11-15 21:18:59 +08:00
使用StatefulSet部署用状态应用
2017-10-23 13:40:58 +08:00
< / a >
2017-09-28 21:20:49 +08:00
< / li >
< / ul >
< / li >
2017-11-15 21:18:59 +08:00
< li class = "header" > 最佳实践< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.1" data-path = "../practice/" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/" >
2017-12-20 17:27:16 +08:00
< b > 5.1.< / b >
2017-11-15 21:18:59 +08:00
最佳实践概览
2017-09-28 21:20:49 +08:00
< / a >
2017-11-15 21:18:59 +08:00
< / li >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2" data-path = "../practice/install-kubernetes-on-centos.html" >
2017-09-28 21:20:49 +08:00
2017-12-19 17:59:00 +08:00
< a href = "../practice/install-kubernetes-on-centos.html" >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< b > 5.2.< / b >
2017-11-15 21:18:59 +08:00
2017-12-30 10:37:40 +08:00
在CentOS上部署Kubernetes集群
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2.1" data-path = "../practice/create-tls-and-secret-key.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/create-tls-and-secret-key.html" >
2017-12-20 17:27:16 +08:00
< b > 5.2.1.< / b >
2017-11-15 21:18:59 +08:00
创建TLS证书和秘钥
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2.2" data-path = "../practice/create-kubeconfig.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/create-kubeconfig.html" >
2017-12-20 17:27:16 +08:00
< b > 5.2.2.< / b >
2017-11-15 21:18:59 +08:00
创建kubeconfig文件
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2.3" data-path = "../practice/etcd-cluster-installation.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/etcd-cluster-installation.html" >
2017-12-20 17:27:16 +08:00
< b > 5.2.3.< / b >
2017-11-15 21:18:59 +08:00
创建高可用etcd集群
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2.4" data-path = "../practice/kubectl-installation.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/kubectl-installation.html" >
2017-12-20 17:27:16 +08:00
< b > 5.2.4.< / b >
2017-11-15 21:18:59 +08:00
安装kubectl命令行工具
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2.5" data-path = "../practice/master-installation.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/master-installation.html" >
2017-12-20 17:27:16 +08:00
< b > 5.2.5.< / b >
2017-11-15 21:18:59 +08:00
部署master节点
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2.6" data-path = "../practice/flannel-installation.html" >
2017-09-28 21:20:49 +08:00
2017-12-19 17:59:00 +08:00
< a href = "../practice/flannel-installation.html" >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< b > 5.2.6.< / b >
2017-11-15 21:18:59 +08:00
2017-12-19 17:59:00 +08:00
安装flannel网络插件
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2.7" data-path = "../practice/node-installation.html" >
2017-12-19 17:59:00 +08:00
< a href = "../practice/node-installation.html" >
2017-12-20 17:27:16 +08:00
< b > 5.2.7.< / b >
2017-12-19 17:59:00 +08:00
2017-11-15 21:18:59 +08:00
部署node节点
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2.8" data-path = "../practice/kubedns-addon-installation.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/kubedns-addon-installation.html" >
2017-12-20 17:27:16 +08:00
< b > 5.2.8.< / b >
2017-11-15 21:18:59 +08:00
安装kubedns插件
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2.9" data-path = "../practice/dashboard-addon-installation.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/dashboard-addon-installation.html" >
2017-12-20 17:27:16 +08:00
< b > 5.2.9.< / b >
2017-11-15 21:18:59 +08:00
安装dashboard插件
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2.10" data-path = "../practice/heapster-addon-installation.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/heapster-addon-installation.html" >
2017-12-20 17:27:16 +08:00
< b > 5.2.10.< / b >
2017-11-15 21:18:59 +08:00
安装heapster插件
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "5.2.11" data-path = "../practice/efk-addon-installation.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/efk-addon-installation.html" >
2017-12-20 17:27:16 +08:00
< b > 5.2.11.< / b >
2017-11-15 21:18:59 +08:00
安装EFK插件
2017-09-28 21:20:49 +08:00
< / a >
< / li >
< / ul >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.3" data-path = "../practice/install-kubernetes-with-kubeadm.html" >
2017-09-28 21:20:49 +08:00
2018-04-15 19:42:10 +08:00
< a href = "../practice/install-kubernetes-with-kubeadm.html" >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< b > 5.3.< / b >
2017-11-15 21:18:59 +08:00
2018-04-15 19:42:10 +08:00
使用kubeadm快速构建测试集群
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.3.1" data-path = "../practice/install-kubernetes-on-ubuntu-server-16.04-with-kubeadm.html" >
< a href = "../practice/install-kubernetes-on-ubuntu-server-16.04-with-kubeadm.html" >
< b > 5.3.1.< / b >
使用kubeadm在Ubuntu Server 16.04上快速构建测试集群
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "5.4" data-path = "../practice/service-discovery-and-loadbalancing.html" >
< a href = "../practice/service-discovery-and-loadbalancing.html" >
< b > 5.4.< / b >
2017-11-15 21:18:59 +08:00
服务发现与负载均衡
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.4.1" data-path = "../practice/traefik-ingress-installation.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/traefik-ingress-installation.html" >
2018-04-15 19:42:10 +08:00
< b > 5.4.1.< / b >
2017-11-15 21:18:59 +08:00
安装Traefik ingress
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.4.2" data-path = "../practice/distributed-load-test.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/distributed-load-test.html" >
2018-04-15 19:42:10 +08:00
< b > 5.4.2.< / b >
2017-11-15 21:18:59 +08:00
分布式负载测试
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.4.3" data-path = "../practice/network-and-cluster-perfermance-test.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/network-and-cluster-perfermance-test.html" >
2018-04-15 19:42:10 +08:00
< b > 5.4.3.< / b >
2017-11-15 21:18:59 +08:00
网络和集群性能测试
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.4.4" data-path = "../practice/edge-node-configuration.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/edge-node-configuration.html" >
2018-04-15 19:42:10 +08:00
< b > 5.4.4.< / b >
2017-11-15 21:18:59 +08:00
边缘节点配置
2017-09-28 21:20:49 +08:00
< / a >
2017-10-27 19:09:01 +08:00
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.4.5" data-path = "../practice/nginx-ingress-installation.html" >
2017-10-27 19:09:01 +08:00
< a href = "../practice/nginx-ingress-installation.html" >
2018-04-15 19:42:10 +08:00
< b > 5.4.5.< / b >
2017-11-15 21:18:59 +08:00
安装Nginx ingress
2017-10-27 19:09:01 +08:00
< / a >
2018-01-03 16:14:36 +08:00
< / li >
2018-04-19 10:35:52 +08:00
< li class = "chapter " data-level = "5.4.6" data-path = "../practice/dns-installation.html" >
2018-01-03 16:14:36 +08:00
2018-04-19 10:35:52 +08:00
< a href = "../practice/dns-installation.html" >
2018-01-03 16:14:36 +08:00
2018-04-15 19:42:10 +08:00
< b > 5.4.6.< / b >
2018-01-03 16:14:36 +08:00
2018-04-19 10:35:52 +08:00
安装配置DNS
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.4.6.1" data-path = "../practice/configuring-dns.html" >
< a href = "../practice/configuring-dns.html" >
< b > 5.4.6.1.< / b >
安装配置Kube-dns
< / a >
< / li >
< li class = "chapter " data-level = "5.4.6.2" data-path = "../practice/coredns.html" >
< a href = "../practice/coredns.html" >
< b > 5.4.6.2.< / b >
安装配置CoreDNS
2018-01-03 16:14:36 +08:00
< / a >
2017-09-28 21:20:49 +08:00
< / li >
< / ul >
< / li >
2018-04-19 10:35:52 +08:00
< / ul >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.5" data-path = "../practice/operation.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/operation.html" >
2018-04-15 19:42:10 +08:00
< b > 5.5.< / b >
2017-11-15 21:18:59 +08:00
运维管理
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.5.1" data-path = "../practice/master-ha.html" >
2017-09-28 21:20:49 +08:00
2018-03-20 10:59:44 +08:00
< a href = "../practice/master-ha.html" >
2017-09-28 21:20:49 +08:00
2018-04-15 19:42:10 +08:00
< b > 5.5.1.< / b >
2017-11-15 21:18:59 +08:00
2018-03-20 10:59:44 +08:00
Master节点高可用
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.5.2" data-path = "../practice/service-rolling-update.html" >
2018-03-20 10:59:44 +08:00
< a href = "../practice/service-rolling-update.html" >
2018-04-15 19:42:10 +08:00
< b > 5.5.2.< / b >
2018-03-20 10:59:44 +08:00
2017-11-15 21:18:59 +08:00
服务滚动升级
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.5.3" data-path = "../practice/app-log-collection.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/app-log-collection.html" >
2018-04-15 19:42:10 +08:00
< b > 5.5.3.< / b >
2017-11-15 21:18:59 +08:00
应用日志收集
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.5.4" data-path = "../practice/configuration-best-practice.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/configuration-best-practice.html" >
2018-04-15 19:42:10 +08:00
< b > 5.5.4.< / b >
2017-11-15 21:18:59 +08:00
配置最佳实践
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.5.5" data-path = "../practice/monitor.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/monitor.html" >
2018-04-15 19:42:10 +08:00
< b > 5.5.5.< / b >
2017-11-15 21:18:59 +08:00
集群及应用监控
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.5.6" data-path = "../practice/data-persistence-problem.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/data-persistence-problem.html" >
2018-04-15 19:42:10 +08:00
< b > 5.5.6.< / b >
2017-11-15 21:18:59 +08:00
数据持久化问题
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.5.7" data-path = "../practice/manage-compute-resources-container.html" >
2017-09-28 21:20:49 +08:00
< a href = "../practice/manage-compute-resources-container.html" >
2018-04-15 19:42:10 +08:00
< b > 5.5.7.< / b >
2017-11-15 21:18:59 +08:00
管理容器的计算资源
2017-09-28 21:20:49 +08:00
< / a >
2018-02-24 11:49:48 +08:00
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.5.8" data-path = "../practice/federation.html" >
2018-02-24 11:49:48 +08:00
< a href = "../practice/federation.html" >
2018-04-15 19:42:10 +08:00
< b > 5.5.8.< / b >
2018-02-24 11:49:48 +08:00
集群联邦
< / a >
2017-09-28 21:20:49 +08:00
< / li >
2017-11-09 10:55:38 +08:00
< / ul >
2017-09-28 21:20:49 +08:00
2017-11-09 10:55:38 +08:00
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.6" data-path = "../practice/storage.html" >
2017-11-09 10:55:38 +08:00
< a href = "../practice/storage.html" >
2017-09-28 21:20:49 +08:00
2018-04-15 19:42:10 +08:00
< b > 5.6.< / b >
2017-11-15 21:18:59 +08:00
存储管理
2017-11-09 10:55:38 +08:00
< / a >
< ul class = "articles" >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.6.1" data-path = "../practice/glusterfs.html" >
2017-11-09 10:55:38 +08:00
< a href = "../practice/glusterfs.html" >
2018-04-15 19:42:10 +08:00
< b > 5.6.1.< / b >
2017-11-15 21:18:59 +08:00
GlusterFS
2017-11-09 10:55:38 +08:00
< / a >
< ul class = "articles" >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.6.1.1" data-path = "../practice/using-glusterfs-for-persistent-storage.html" >
2017-11-09 10:55:38 +08:00
< a href = "../practice/using-glusterfs-for-persistent-storage.html" >
2018-04-15 19:42:10 +08:00
< b > 5.6.1.1.< / b >
2017-11-15 21:18:59 +08:00
使用GlusterFS做持久化存储
2017-09-28 21:20:49 +08:00
< / a >
2017-10-16 17:36:01 +08:00
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.6.1.2" data-path = "../practice/using-heketi-gluster-for-persistent-storage.html" >
2017-10-16 17:36:01 +08:00
2018-04-13 20:57:27 +08:00
< a href = "../practice/using-heketi-gluster-for-persistent-storage.html" >
2017-10-16 17:36:01 +08:00
2018-04-15 19:42:10 +08:00
< b > 5.6.1.2.< / b >
2017-11-15 21:18:59 +08:00
2018-04-13 20:57:27 +08:00
使用Heketi作为kubernetes的持久存储GlusterFS的external provisioner
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.6.1.3" data-path = "../practice/storage-for-containers-using-glusterfs-with-openshift.html" >
2018-04-13 20:57:27 +08:00
< a href = "../practice/storage-for-containers-using-glusterfs-with-openshift.html" >
2018-04-15 19:42:10 +08:00
< b > 5.6.1.3.< / b >
2018-04-13 20:57:27 +08:00
2017-11-15 21:18:59 +08:00
在OpenShift中使用GlusterFS做持久化存储
2017-10-16 17:36:01 +08:00
< / a >
2017-09-28 21:20:49 +08:00
< / li >
< / ul >
< / li >
2018-05-23 19:52:24 +08:00
< li class = "chapter " data-level = "5.6.2" data-path = "../practice/glusterd-2.0.html" >
2017-09-28 21:20:49 +08:00
2018-05-23 19:52:24 +08:00
< a href = "../practice/glusterd-2.0.html" >
2017-09-28 21:20:49 +08:00
2018-04-15 19:42:10 +08:00
< b > 5.6.2.< / b >
2017-11-15 21:18:59 +08:00
2018-05-23 19:52:24 +08:00
GlusterD-2.0
< / a >
< / li >
< li class = "chapter " data-level = "5.6.3" data-path = "../practice/ceph.html" >
< a href = "../practice/ceph.html" >
< b > 5.6.3.< / b >
2018-04-15 19:42:10 +08:00
Ceph
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2018-05-23 19:52:24 +08:00
< li class = "chapter " data-level = "5.6.3.1" data-path = "../practice/ceph-helm-install-guide-zh.html" >
2017-09-28 21:20:49 +08:00
2018-04-18 23:46:26 +08:00
< a href = "../practice/ceph-helm-install-guide-zh.html" >
2017-09-28 21:20:49 +08:00
2018-05-23 19:52:24 +08:00
< b > 5.6.3.1.< / b >
2017-11-15 21:18:59 +08:00
2018-04-18 23:46:26 +08:00
用Helm托管安装Ceph集群并提供后端存储
< / a >
< / li >
2018-05-23 19:52:24 +08:00
< li class = "chapter " data-level = "5.6.3.2" data-path = "../practice/using-ceph-for-persistent-storage.html" >
2018-04-18 23:46:26 +08:00
< a href = "../practice/using-ceph-for-persistent-storage.html" >
2018-05-23 19:52:24 +08:00
< b > 5.6.3.2.< / b >
2018-04-18 23:46:26 +08:00
2017-11-15 21:18:59 +08:00
使用Ceph做持久化存储
2017-11-09 10:55:38 +08:00
< / a >
2018-01-05 16:34:39 +08:00
< / li >
< / ul >
< / li >
2018-05-23 19:52:24 +08:00
< li class = "chapter " data-level = "5.6.4" data-path = "../practice/openebs.html" >
2018-01-05 16:34:39 +08:00
< a href = "../practice/openebs.html" >
2018-05-23 19:52:24 +08:00
< b > 5.6.4.< / b >
2018-01-05 16:34:39 +08:00
OpenEBS
< / a >
< ul class = "articles" >
2018-05-23 19:52:24 +08:00
< li class = "chapter " data-level = "5.6.4.1" data-path = "../practice/using-openebs-for-persistent-storage.html" >
2018-01-05 16:34:39 +08:00
< a href = "../practice/using-openebs-for-persistent-storage.html" >
2018-05-23 19:52:24 +08:00
< b > 5.6.4.1.< / b >
2018-01-05 16:34:39 +08:00
使用OpenEBS做持久化存储
< / a >
2017-11-09 10:55:38 +08:00
< / li >
< / ul >
2018-02-24 22:56:37 +08:00
< / li >
2018-05-23 19:52:24 +08:00
< li class = "chapter " data-level = "5.6.5" data-path = "../practice/rook.html" >
2018-02-24 22:56:37 +08:00
< a href = "../practice/rook.html" >
2018-05-23 19:52:24 +08:00
< b > 5.6.5.< / b >
2018-02-24 22:56:37 +08:00
Rook
< / a >
2018-04-13 23:45:08 +08:00
< / li >
2018-05-23 19:52:24 +08:00
< li class = "chapter " data-level = "5.6.6" data-path = "../practice/nfs.html" >
2018-04-13 23:45:08 +08:00
< a href = "../practice/nfs.html" >
2018-05-23 19:52:24 +08:00
< b > 5.6.6.< / b >
2018-04-13 23:45:08 +08:00
NFS
< / a >
< ul class = "articles" >
2018-05-23 19:52:24 +08:00
< li class = "chapter " data-level = "5.6.6.1" data-path = "../practice/using-nfs-for-persistent-storage.html" >
2018-04-13 23:45:08 +08:00
< a href = "../practice/using-nfs-for-persistent-storage.html" >
2018-05-23 19:52:24 +08:00
< b > 5.6.6.1.< / b >
2018-04-13 23:45:08 +08:00
利用NFS动态提供Kubernetes后端存储卷
< / a >
< / li >
< / ul >
2017-11-09 10:55:38 +08:00
< / li >
< / ul >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.7" data-path = "../practice/monitoring.html" >
2017-11-09 10:55:38 +08:00
< a href = "../practice/monitoring.html" >
2018-04-15 19:42:10 +08:00
< b > 5.7.< / b >
2017-11-15 21:18:59 +08:00
集群与应用监控
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.7.1" data-path = "../practice/heapster.html" >
2017-09-28 21:20:49 +08:00
2017-11-09 10:55:38 +08:00
< a href = "../practice/heapster.html" >
2017-09-28 21:20:49 +08:00
2018-04-15 19:42:10 +08:00
< b > 5.7.1.< / b >
2017-11-15 21:18:59 +08:00
Heapster
2017-09-28 21:20:49 +08:00
< / a >
2017-11-09 10:55:38 +08:00
< ul class = "articles" >
2017-09-28 21:20:49 +08:00
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.7.1.1" data-path = "../practice/using-heapster-to-get-object-metrics.html" >
2017-09-28 21:20:49 +08:00
2017-11-09 10:55:38 +08:00
< a href = "../practice/using-heapster-to-get-object-metrics.html" >
2017-09-28 21:20:49 +08:00
2018-04-15 19:42:10 +08:00
< b > 5.7.1.1.< / b >
2017-11-15 21:18:59 +08:00
使用Heapster获取集群和对象的metric数据
2017-09-28 21:20:49 +08:00
< / a >
< / li >
< / ul >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.7.2" data-path = "../practice/prometheus.html" >
2017-09-28 21:20:49 +08:00
2017-11-09 10:55:38 +08:00
< a href = "../practice/prometheus.html" >
2017-09-28 21:20:49 +08:00
2018-04-15 19:42:10 +08:00
< b > 5.7.2.< / b >
2017-11-15 21:18:59 +08:00
Prometheus
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.7.2.1" data-path = "../practice/using-prometheus-to-monitor-kuberentes-cluster.html" >
2017-09-28 21:20:49 +08:00
2017-11-09 10:55:38 +08:00
< a href = "../practice/using-prometheus-to-monitor-kuberentes-cluster.html" >
2017-09-28 21:20:49 +08:00
2018-04-15 19:42:10 +08:00
< b > 5.7.2.1.< / b >
2017-11-15 21:18:59 +08:00
使用Prometheus监控kubernetes集群
2017-09-28 21:20:49 +08:00
< / a >
< / li >
< / ul >
< / li >
< / ul >
2017-10-19 15:31:08 +08:00
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.8" data-path = "../practice/services-management-tool.html" >
2017-10-19 15:31:08 +08:00
< a href = "../practice/services-management-tool.html" >
2018-04-15 19:42:10 +08:00
< b > 5.8.< / b >
2017-11-15 21:18:59 +08:00
服务编排管理
2017-10-19 15:31:08 +08:00
< / a >
2017-10-20 16:22:43 +08:00
< ul class = "articles" >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.8.1" data-path = "../practice/helm.html" >
2017-10-20 16:22:43 +08:00
< a href = "../practice/helm.html" >
2018-04-15 19:42:10 +08:00
< b > 5.8.1.< / b >
2017-11-15 21:18:59 +08:00
使用Helm管理kubernetes应用
2017-10-20 16:22:43 +08:00
< / a >
2017-10-27 11:59:37 +08:00
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.8.2" data-path = "../practice/create-private-charts-repo.html" >
2017-10-27 11:59:37 +08:00
< a href = "../practice/create-private-charts-repo.html" >
2018-04-15 19:42:10 +08:00
< b > 5.8.2.< / b >
2017-11-15 21:18:59 +08:00
构建私有Chart仓库
2017-10-27 11:59:37 +08:00
< / a >
< / li >
< / ul >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.9" data-path = "../practice/ci-cd.html" >
2017-10-27 11:59:37 +08:00
< a href = "../practice/ci-cd.html" >
2018-04-15 19:42:10 +08:00
< b > 5.9.< / b >
2017-11-15 21:18:59 +08:00
持续集成与发布
2017-10-27 11:59:37 +08:00
< / a >
< ul class = "articles" >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.9.1" data-path = "../practice/jenkins-ci-cd.html" >
2017-10-27 11:59:37 +08:00
< a href = "../practice/jenkins-ci-cd.html" >
2018-04-15 19:42:10 +08:00
< b > 5.9.1.< / b >
2017-11-15 21:18:59 +08:00
使用Jenkins进行持续集成与发布
2017-10-27 11:59:37 +08:00
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.9.2" data-path = "../practice/drone-ci-cd.html" >
2017-10-27 11:59:37 +08:00
< a href = "../practice/drone-ci-cd.html" >
2018-04-15 19:42:10 +08:00
< b > 5.9.2.< / b >
2017-11-15 21:18:59 +08:00
使用Drone进行持续集成与发布
2017-10-27 11:59:37 +08:00
< / a >
2017-11-02 16:33:01 +08:00
< / li >
< / ul >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.10" data-path = "../practice/update-and-upgrade.html" >
2017-11-02 16:33:01 +08:00
< a href = "../practice/update-and-upgrade.html" >
2018-04-15 19:42:10 +08:00
< b > 5.10.< / b >
2017-11-15 21:18:59 +08:00
更新与升级
2017-11-02 16:33:01 +08:00
< / a >
< ul class = "articles" >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.10.1" data-path = "../practice/manually-upgrade.html" >
2017-11-02 16:33:01 +08:00
< a href = "../practice/manually-upgrade.html" >
2018-04-15 19:42:10 +08:00
< b > 5.10.1.< / b >
2017-11-15 21:18:59 +08:00
2017-12-30 10:37:40 +08:00
手动升级Kubernetes集群
2017-11-02 16:33:01 +08:00
< / a >
< / li >
2018-04-15 19:42:10 +08:00
< li class = "chapter " data-level = "5.10.2" data-path = "../practice/dashboard-upgrade.html" >
2017-11-02 16:33:01 +08:00
< a href = "../practice/dashboard-upgrade.html" >
2018-04-15 19:42:10 +08:00
< b > 5.10.2.< / b >
2017-11-15 21:18:59 +08:00
升级dashboard
2017-11-02 16:33:01 +08:00
< / a >
2017-10-20 16:22:43 +08:00
< / li >
< / ul >
2017-09-28 21:20:49 +08:00
< / li >
2017-11-15 21:18:59 +08:00
< li class = "header" > 领域应用< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.1" data-path = "../usecases/" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/" >
2017-12-20 17:27:16 +08:00
< b > 6.1.< / b >
2017-11-15 21:18:59 +08:00
领域应用概览
2017-09-28 21:20:49 +08:00
< / a >
2017-11-15 21:18:59 +08:00
< / li >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.2" data-path = "../usecases/microservices.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/microservices.html" >
2017-12-20 17:27:16 +08:00
< b > 6.2.< / b >
2017-11-15 21:18:59 +08:00
微服务架构
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.2.1" data-path = "../usecases/service-discovery-in-microservices.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/service-discovery-in-microservices.html" >
2017-12-20 17:27:16 +08:00
< b > 6.2.1.< / b >
2017-11-15 21:18:59 +08:00
微服务中的服务发现
2017-09-28 21:20:49 +08:00
< / a >
2018-03-13 17:43:40 +08:00
< / li >
< li class = "chapter " data-level = "6.2.2" data-path = "../usecases/microservices-for-java-developers.html" >
< a href = "../usecases/microservices-for-java-developers.html" >
< b > 6.2.2.< / b >
使用Java构建微服务并发布到Kubernetes平台
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "6.2.2.1" data-path = "../usecases/spring-boot-quick-start-guide.html" >
< a href = "../usecases/spring-boot-quick-start-guide.html" >
< b > 6.2.2.1.< / b >
Spring Boot快速开始指南
< / a >
< / li >
< / ul >
2017-09-28 21:20:49 +08:00
< / li >
< / ul >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.3" data-path = "../usecases/service-mesh.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/service-mesh.html" >
2017-12-20 17:27:16 +08:00
< b > 6.3.< / b >
2017-11-15 21:18:59 +08:00
Service Mesh 服务网格
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.3.1" data-path = "../usecases/istio.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/istio.html" >
2017-12-20 17:27:16 +08:00
< b > 6.3.1.< / b >
2017-11-15 21:18:59 +08:00
Istio
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.3.1.1" data-path = "../usecases/istio-installation.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/istio-installation.html" >
2017-12-20 17:27:16 +08:00
< b > 6.3.1.1.< / b >
2017-11-15 21:18:59 +08:00
安装并试用Istio service mesh
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.3.1.2" data-path = "../usecases/configuring-request-routing.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/configuring-request-routing.html" >
2017-12-20 17:27:16 +08:00
< b > 6.3.1.2.< / b >
2017-11-15 21:18:59 +08:00
配置请求的路由规则
2017-09-28 21:20:49 +08:00
< / a >
2017-11-07 23:57:26 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.3.1.3" data-path = "../usecases/install-and-expand-istio-mesh.html" >
2017-11-07 23:57:26 +08:00
< a href = "../usecases/install-and-expand-istio-mesh.html" >
2017-12-20 17:27:16 +08:00
< b > 6.3.1.3.< / b >
2017-11-15 21:18:59 +08:00
安装和拓展Istio service mesh
2017-11-07 23:57:26 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.3.1.4" data-path = "../usecases/integrating-vms.html" >
2017-11-07 23:57:26 +08:00
< a href = "../usecases/integrating-vms.html" >
2017-12-20 17:27:16 +08:00
< b > 6.3.1.4.< / b >
2017-11-15 21:18:59 +08:00
集成虚拟机
2017-11-07 23:57:26 +08:00
< / a >
2018-03-27 19:59:51 +08:00
< / li >
< li class = "chapter " data-level = "6.3.1.5" data-path = "../usecases/sidecar-spec-in-istio.html" >
< a href = "../usecases/sidecar-spec-in-istio.html" >
< b > 6.3.1.5.< / b >
Istio中sidecar的注入规范及示例
< / a >
2018-04-16 21:16:23 +08:00
< / li >
< li class = "chapter " data-level = "6.3.1.6" data-path = "../usecases/istio-community-tips.html" >
< a href = "../usecases/istio-community-tips.html" >
< b > 6.3.1.6.< / b >
如何参与Istio社区及注意事项
< / a >
2018-04-18 23:26:03 +08:00
< / li >
< li class = "chapter " data-level = "6.3.1.7" data-path = "../usecases/istio-tutorial.html" >
< a href = "../usecases/istio-tutorial.html" >
< b > 6.3.1.7.< / b >
Istio 教程
< / a >
2017-09-28 21:20:49 +08:00
< / li >
< / ul >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.3.2" data-path = "../usecases/linkerd.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/linkerd.html" >
2017-12-20 17:27:16 +08:00
< b > 6.3.2.< / b >
2017-11-15 21:18:59 +08:00
Linkerd
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.3.2.1" data-path = "../usecases/linkerd-user-guide.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/linkerd-user-guide.html" >
2017-12-20 17:27:16 +08:00
< b > 6.3.2.1.< / b >
2017-11-15 21:18:59 +08:00
Linkerd 使用指南
2017-09-28 21:20:49 +08:00
< / a >
< / li >
< / ul >
2017-12-10 21:51:18 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.3.3" data-path = "../usecases/conduit.html" >
2017-12-10 21:51:18 +08:00
< a href = "../usecases/conduit.html" >
2017-12-20 17:27:16 +08:00
< b > 6.3.3.< / b >
2017-12-10 21:51:18 +08:00
Conduit
< / a >
2017-12-11 14:21:24 +08:00
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.3.3.1" data-path = "../usecases/conduit-overview.html" >
2017-12-11 14:21:24 +08:00
< a href = "../usecases/conduit-overview.html" >
2017-12-20 17:27:16 +08:00
< b > 6.3.3.1.< / b >
2017-12-11 14:21:24 +08:00
Condiut概览
< / a >
2017-12-12 23:30:36 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.3.3.2" data-path = "../usecases/conduit-installation.html" >
2017-12-12 23:30:36 +08:00
< a href = "../usecases/conduit-installation.html" >
2017-12-20 17:27:16 +08:00
< b > 6.3.3.2.< / b >
2017-12-12 23:30:36 +08:00
安装Conduit
< / a >
2018-04-20 16:41:57 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "6.3.4" data-path = "../usecases/envoy.html" >
< a href = "../usecases/envoy.html" >
< b > 6.3.4.< / b >
Envoy
< / a >
< ul class = "articles" >
2018-04-24 14:58:38 +08:00
< li class = "chapter " data-level = "6.3.4.1" data-path = "../usecases/envoy-terminology.html" >
2018-04-20 16:41:57 +08:00
2018-04-24 14:58:38 +08:00
< a href = "../usecases/envoy-terminology.html" >
2018-04-20 16:41:57 +08:00
< b > 6.3.4.1.< / b >
2018-04-27 15:12:43 +08:00
Envoy的架构与基本术语
2018-04-24 14:58:38 +08:00
< / a >
< / li >
< li class = "chapter " data-level = "6.3.4.2" data-path = "../usecases/envoy-front-proxy.html" >
< a href = "../usecases/envoy-front-proxy.html" >
< b > 6.3.4.2.< / b >
2018-04-20 16:41:57 +08:00
Envoy作为前端代理
< / a >
2018-04-28 20:29:48 +08:00
< / li >
< li class = "chapter " data-level = "6.3.4.3" data-path = "../usecases/envoy-mesh-in-kubernetes-tutorial.html" >
< a href = "../usecases/envoy-mesh-in-kubernetes-tutorial.html" >
< b > 6.3.4.3.< / b >
Envoy mesh教程
< / a >
2017-12-11 14:21:24 +08:00
< / li >
< / ul >
2017-09-28 21:20:49 +08:00
< / li >
< / ul >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.4" data-path = "../usecases/big-data.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/big-data.html" >
2017-12-20 17:27:16 +08:00
< b > 6.4.< / b >
2017-11-15 21:18:59 +08:00
大数据
2017-09-28 21:20:49 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.4.1" data-path = "../usecases/spark-standalone-on-kubernetes.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/spark-standalone-on-kubernetes.html" >
2017-12-20 17:27:16 +08:00
< b > 6.4.1.< / b >
2017-11-15 21:18:59 +08:00
Spark standalone on Kubernetes
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.4.2" data-path = "../usecases/running-spark-with-kubernetes-native-scheduler.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/running-spark-with-kubernetes-native-scheduler.html" >
2017-12-20 17:27:16 +08:00
< b > 6.4.2.< / b >
2017-11-15 21:18:59 +08:00
2017-12-30 10:37:40 +08:00
运行支持Kubernetes原生调度的Spark程序
2017-09-28 21:20:49 +08:00
< / a >
< / li >
< / ul >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.5" data-path = "../usecases/serverless.html" >
2017-09-28 21:20:49 +08:00
< a href = "../usecases/serverless.html" >
2017-12-20 17:27:16 +08:00
< b > 6.5.< / b >
2017-11-15 21:18:59 +08:00
Serverless架构
2017-09-28 21:20:49 +08:00
< / a >
2017-11-23 11:03:04 +08:00
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.5.1" data-path = "../usecases/understanding-serverless.html" >
2017-11-23 11:03:04 +08:00
< a href = "../usecases/understanding-serverless.html" >
2017-12-20 17:27:16 +08:00
< b > 6.5.1.< / b >
2017-11-23 11:03:04 +08:00
理解Serverless
< / a >
2017-12-19 22:39:23 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.5.2" data-path = "../usecases/faas.html" >
2017-12-19 22:39:23 +08:00
< a href = "../usecases/faas.html" >
2017-12-20 17:27:16 +08:00
< b > 6.5.2.< / b >
2017-12-19 22:39:23 +08:00
FaaS-函数即服务
< / a >
< ul class = "articles" >
2017-12-26 21:24:28 +08:00
< li class = "chapter " data-level = "6.5.2.1" data-path = "../usecases/openfaas-quick-start.html" >
2017-12-19 22:39:23 +08:00
2017-12-26 21:24:28 +08:00
< a href = "../usecases/openfaas-quick-start.html" >
2017-12-19 22:39:23 +08:00
2017-12-20 17:27:16 +08:00
< b > 6.5.2.1.< / b >
2017-12-19 22:39:23 +08:00
2017-12-26 21:24:28 +08:00
OpenFaaS快速入门指南
2017-12-19 22:39:23 +08:00
< / a >
< / li >
< / ul >
2017-11-23 11:03:04 +08:00
< / li >
< / ul >
2017-10-27 19:09:01 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "6.6" data-path = "../usecases/edge-computing.html" >
2017-10-27 19:09:01 +08:00
< a href = "../usecases/edge-computing.html" >
2017-12-20 17:27:16 +08:00
< b > 6.6.< / b >
2017-11-15 21:18:59 +08:00
边缘计算
2017-10-27 19:09:01 +08:00
< / a >
2018-04-16 21:16:23 +08:00
< / li >
< li class = "chapter " data-level = "6.7" data-path = "../usecases/ai.html" >
< a href = "../usecases/ai.html" >
< b > 6.7.< / b >
人工智能
< / a >
2017-09-28 21:20:49 +08:00
< / li >
2017-11-15 21:18:59 +08:00
< li class = "header" > 开发指南< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "7.1" data-path = "../develop/" >
2017-09-28 21:20:49 +08:00
< a href = "../develop/" >
2017-12-20 17:27:16 +08:00
< b > 7.1.< / b >
2017-11-15 21:18:59 +08:00
开发指南概览
2017-09-28 21:20:49 +08:00
< / a >
2017-11-15 21:18:59 +08:00
< / li >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "7.2" data-path = "../develop/sigs-and-working-group.html" >
2017-09-28 21:20:49 +08:00
2017-12-03 13:13:09 +08:00
< a href = "../develop/sigs-and-working-group.html" >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< b > 7.2.< / b >
2017-11-15 21:18:59 +08:00
2017-12-03 13:13:09 +08:00
SIG和工作组
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "7.3" data-path = "../develop/developing-environment.html" >
2017-12-03 13:13:09 +08:00
< a href = "../develop/developing-environment.html" >
2017-12-20 17:27:16 +08:00
< b > 7.3.< / b >
2017-12-03 13:13:09 +08:00
2017-11-15 21:18:59 +08:00
开发环境搭建
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-02-01 17:32:19 +08:00
< li class = "chapter " data-level = "7.4" data-path = "../develop/using-vagrant-and-virtualbox-for-development.html" >
2017-09-28 21:20:49 +08:00
2018-02-01 17:32:19 +08:00
< a href = "../develop/using-vagrant-and-virtualbox-for-development.html" >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< b > 7.4.< / b >
2017-11-15 21:18:59 +08:00
2018-02-01 17:32:19 +08:00
本地分布式开发环境搭建( 使用Vagrant和Virtualbox)
< / a >
< / li >
< li class = "chapter " data-level = "7.5" data-path = "../develop/testing.html" >
< a href = "../develop/testing.html" >
< b > 7.5.< / b >
2017-11-15 21:18:59 +08:00
单元测试和集成测试
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-02-01 17:32:19 +08:00
< li class = "chapter " data-level = "7.6" data-path = "../develop/client-go-sample.html" >
2017-09-28 21:20:49 +08:00
< a href = "../develop/client-go-sample.html" >
2018-02-01 17:32:19 +08:00
< b > 7.6.< / b >
2017-11-15 21:18:59 +08:00
client-go示例
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2018-02-01 17:32:19 +08:00
< li class = "chapter " data-level = "7.7" data-path = "../develop/operator.html" >
2017-09-28 21:20:49 +08:00
2018-01-09 19:14:30 +08:00
< a href = "../develop/operator.html" >
2017-09-28 21:20:49 +08:00
2018-02-01 17:32:19 +08:00
< b > 7.7.< / b >
2017-11-15 21:18:59 +08:00
2018-01-09 19:14:30 +08:00
Operator
< / a >
< / li >
2018-05-04 19:53:39 +08:00
< li class = "chapter " data-level = "7.8" data-path = "../develop/operator-sdk.html" >
2018-01-09 19:14:30 +08:00
2018-05-04 19:53:39 +08:00
< a href = "../develop/operator-sdk.html" >
2018-01-09 19:14:30 +08:00
2018-02-01 17:32:19 +08:00
< b > 7.8.< / b >
2018-01-09 19:14:30 +08:00
2018-05-04 19:53:39 +08:00
operator-sdk
< / a >
< / li >
< li class = "chapter " data-level = "7.9" data-path = "../develop/advance-developer.html" >
< a href = "../develop/advance-developer.html" >
< b > 7.9.< / b >
2018-02-11 10:00:15 +08:00
高级开发指南
< / a >
< / li >
2018-05-04 19:53:39 +08:00
< li class = "chapter " data-level = "7.10" data-path = "../develop/contribute.html" >
2018-02-11 10:00:15 +08:00
< a href = "../develop/contribute.html" >
2018-05-04 19:53:39 +08:00
< b > 7.10.< / b >
2018-02-11 10:00:15 +08:00
2017-11-15 21:18:59 +08:00
社区贡献
2017-09-28 21:20:49 +08:00
< / a >
2017-10-23 19:09:41 +08:00
< / li >
2018-05-04 19:53:39 +08:00
< li class = "chapter " data-level = "7.11" data-path = "../develop/minikube.html" >
2017-10-23 19:09:41 +08:00
< a href = "../develop/minikube.html" >
2018-05-04 19:53:39 +08:00
< b > 7.11.< / b >
2017-11-15 21:18:59 +08:00
Minikube
2017-10-23 19:09:41 +08:00
< / a >
2017-09-28 21:20:49 +08:00
< / li >
2017-11-15 21:18:59 +08:00
< li class = "header" > 附录< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "8.1" data-path = "../appendix/" >
2017-09-28 21:20:49 +08:00
< a href = "../appendix/" >
2017-12-20 17:27:16 +08:00
< b > 8.1.< / b >
2017-11-15 21:18:59 +08:00
附录说明
2017-09-28 21:20:49 +08:00
< / a >
2017-11-15 21:18:59 +08:00
< / li >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "8.2" data-path = "../appendix/debug-kubernetes-services.html" >
2017-09-28 21:20:49 +08:00
2017-11-15 21:18:59 +08:00
< a href = "../appendix/debug-kubernetes-services.html" >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< b > 8.2.< / b >
2017-11-15 21:18:59 +08:00
Kubernetes中的应用故障排查
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "8.3" data-path = "../appendix/material-share.html" >
2017-09-28 21:20:49 +08:00
2017-11-15 21:18:59 +08:00
< a href = "../appendix/material-share.html" >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< b > 8.3.< / b >
2017-11-15 21:18:59 +08:00
Kubernetes相关资讯和情报链接
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "8.4" data-path = "../appendix/docker-best-practice.html" >
2017-09-28 21:20:49 +08:00
2017-11-15 21:18:59 +08:00
< a href = "../appendix/docker-best-practice.html" >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< b > 8.4.< / b >
2017-11-15 21:18:59 +08:00
Docker最佳实践
2017-09-28 21:20:49 +08:00
< / a >
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "8.5" data-path = "../appendix/tricks.html" >
2017-09-28 21:20:49 +08:00
2017-11-15 21:18:59 +08:00
< a href = "../appendix/tricks.html" >
2017-09-28 21:20:49 +08:00
2017-12-20 17:27:16 +08:00
< b > 8.5.< / b >
2017-11-15 21:18:59 +08:00
使用技巧
2017-09-28 21:20:49 +08:00
< / a >
2017-10-18 14:16:55 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "8.6" data-path = "../appendix/issues.html" >
2017-10-18 14:16:55 +08:00
2017-11-15 21:18:59 +08:00
< a href = "../appendix/issues.html" >
2017-10-18 14:16:55 +08:00
2017-12-20 17:27:16 +08:00
< b > 8.6.< / b >
2017-11-15 21:18:59 +08:00
问题记录
2017-10-18 14:16:55 +08:00
< / a >
2017-09-28 21:20:49 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "8.7" data-path = "../appendix/kubernetes-changelog.html" >
2017-12-11 18:32:18 +08:00
< a href = "../appendix/kubernetes-changelog.html" >
2017-12-20 17:27:16 +08:00
< b > 8.7.< / b >
2017-12-11 18:32:18 +08:00
2017-12-30 10:37:40 +08:00
Kubernetes版本更新日志
2017-12-11 18:32:18 +08:00
< / a >
< ul class = "articles" >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "8.7.1" data-path = "../appendix/kubernetes-1.7-changelog.html" >
2017-12-11 18:32:18 +08:00
< a href = "../appendix/kubernetes-1.7-changelog.html" >
2017-12-20 17:27:16 +08:00
< b > 8.7.1.< / b >
2017-12-11 18:32:18 +08:00
Kubernetes1.7更新日志
< / a >
2017-12-12 13:52:55 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "8.7.2" data-path = "../appendix/kubernetes-1.8-changelog.html" >
2017-12-12 13:52:55 +08:00
< a href = "../appendix/kubernetes-1.8-changelog.html" >
2017-12-20 17:27:16 +08:00
< b > 8.7.2.< / b >
2017-12-12 13:52:55 +08:00
Kubernetes1.8更新日志
< / a >
2017-12-16 10:50:25 +08:00
< / li >
2017-12-20 17:27:16 +08:00
< li class = "chapter " data-level = "8.7.3" data-path = "../appendix/kubernetes-1.9-changelog.html" >
2017-12-16 10:50:25 +08:00
< a href = "../appendix/kubernetes-1.9-changelog.html" >
2017-12-20 17:27:16 +08:00
< b > 8.7.3.< / b >
2017-12-16 10:50:25 +08:00
Kubernetes1.9更新日志
< / a >
2018-03-27 10:29:19 +08:00
< / li >
< li class = "chapter " data-level = "8.7.4" data-path = "../appendix/kubernetes-1.10-changelog.html" >
< a href = "../appendix/kubernetes-1.10-changelog.html" >
< b > 8.7.4.< / b >
Kubernetes1.10更新日志
< / a >
2017-12-11 18:32:18 +08:00
< / li >
< / ul >
< / li >
2017-12-27 12:29:33 +08:00
< li class = "chapter " data-level = "8.8" data-path = "../appendix/summary-and-outlook.html" >
< a href = "../appendix/summary-and-outlook.html" >
< b > 8.8.< / b >
Kubernetes及云原生年度总结及展望
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "8.8.1" data-path = "../appendix/kubernetes-and-cloud-native-summary-in-2017-and-outlook-for-2018.html" >
< a href = "../appendix/kubernetes-and-cloud-native-summary-in-2017-and-outlook-for-2018.html" >
< b > 8.8.1.< / b >
Kubernetes与云原生2017年年终总结及2018年展望
< / a >
< / li >
< / ul >
< / li >
2018-05-09 23:48:41 +08:00
< li class = "chapter " data-level = "8.9" data-path = "../appendix/about-kcsp.html" >
< a href = "../appendix/about-kcsp.html" >
< b > 8.9.< / b >
Kubernetes认证服务提供商( KCSP) 说明
< / a >
< / li >
< li class = "chapter " data-level = "8.10" data-path = "../appendix/about-cka-candidate.html" >
< a href = "../appendix/about-cka-candidate.html" >
< b > 8.10.< / b >
认证Kubernetes管理员( CKA) 说明
< / a >
< / li >
2017-09-28 21:20:49 +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 >
2017-11-15 21:18:59 +08:00
< a href = ".." > Secret配置< / a >
2017-09-28 21:20:49 +08:00
< / 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 = "secret-配置" > Secret 配 置 < / h1 >
< p > < code > Secret< / code > 对 象 类 型 用 来 保 存 敏 感 信 息 , 例 如 密 码 、 OAuth 令 牌 和 ssh key。 将 这 些 信 息 放 在 < code > secret< / code > 中 比 放 在 < code > pod< / code > 的 定 义 中 或 者 docker 镜 像 中 来 说 更 加 安 全 和 灵 活 。 参 阅 < a href = "https://git.k8s.io/community/contributors/design-proposals/secrets.md" target = "_blank" > Secret 设 计 文 档 < / a > 获 取 更 多 详 细 信 息 。 < / p >
< h2 id = "secret-概览" > Secret 概 览 < / h2 >
< p > Secret 是 一 种 包 含 少 量 敏 感 信 息 例 如 密 码 、 token 或 key 的 对 象 。 这 样 的 信 息 可 能 会 被 放 在 Pod spec 中 或 者 镜 像 中 ; 将 其 放 在 一 个 secret 对 象 中 可 以 更 好 地 控 制 它 的 用 途 , 并 降 低 意 外 暴 露 的 风 险 。 < / p >
< p > 用 户 可 以 创 建 secret, 同 时 系 统 也 创 建 了 一 些 secret。 < / p >
< p > 要 使 用 secret, pod 需 要 引 用 secret。 Pod 可 以 用 两 种 方 式 使 用 secret: 作 为 < a href = "https://kubernetes.io/docs/concepts/storage/volumes" target = "_blank" > volume< / a > 中 的 文 件 被 挂 载 到 pod 中 的 一 个 或 者 多 个 容 器 里 , 或 者 当 kubelet 为 pod 拉 取 镜 像 时 使 用 。 < / p >
< h3 id = "内置-secret" > 内 置 secret< / h3 >
< h4 id = "service-account-使用-api-凭证自动创建和附加-secret" > Service Account 使 用 API 凭 证 自 动 创 建 和 附 加 secret< / h4 >
< p > Kubernetes 自 动 创 建 包 含 访 问 API 凭 据 的 secret, 并 自 动 修 改 您 的 pod 以 使 用 此 类 型 的 secret。 < / p >
< p > 如 果 需 要 , 可 以 禁 用 或 覆 盖 自 动 创 建 和 使 用 API凭 据 。 但 是 , 如 果 您 需 要 的 只 是 安 全 地 访 问 apiserver, 我 们 推 荐 这 样 的 工 作 流 程 。 < / p >
< p > 参 阅 < a href = "https://kubernetes.io/docs/user-guide/service-accounts" target = "_blank" > Service Account< / a > 文 档 获 取 关 于 Service Account 如 何 工 作 的 更 多 信 息 。 < / p >
< h3 id = "创建您自己的-secret" > 创 建 您 自 己 的 Secret< / h3 >
< h4 id = "使用-kubectl-创建-secret" > 使 用 kubectl 创 建 Secret< / h4 >
< p > 假 设 有 些 pod 需 要 访 问 数 据 库 。 这 些 pod 需 要 使 用 的 用 户 名 和 密 码 在 您 本 地 机 器 的 < code > ./username.txt< / code > 和 < code > ./password.txt< / code > 文 件 里 。 < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > < span class = "token comment" spellcheck = "true" > # Create files needed for rest of example.< / span >
$ < span class = "token keyword" > echo< / span > -n < span class = "token string" > " admin" < / span > < span class = "token operator" > > < / span > ./username.txt
$ < span class = "token keyword" > echo< / span > -n < span class = "token string" > " 1f2d1e2e67df" < / span > < span class = "token operator" > > < / span > ./password.txt
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > < code > kubectl create secret< / code > 命 令 将 这 些 文 件 打 包 到 一 个 Secret 中 并 在 API server 中 创 建 了 一 个 对 象 。 < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > $ kubectl create secret generic db-user-pass --from-file< span class = "token operator" > =< / span > ./username.txt --from-file< span class = "token operator" > =< / span > ./password.txt
secret < span class = "token string" > " db-user-pass" < / span > created
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > 您 可 以 这 样 检 查 刚 创 建 的 secret: < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > $ kubectl get secrets
2017-09-28 21:20:49 +08:00
NAME TYPE DATA AGE
db-user-pass Opaque 2 51s
$ kubectl describe secrets/db-user-pass
Name: db-user-pass
Namespace: default
2018-02-20 18:00:08 +08:00
Labels: < span class = "token operator" > < < / span > none< span class = "token operator" > > < / span >
Annotations: < span class = "token operator" > < < / span > none< span class = "token operator" > > < / span >
2017-09-28 21:20:49 +08:00
Type: Opaque
Data
2018-02-20 18:00:08 +08:00
< span class = "token operator" > ==< / span > < span class = "token operator" > ==< / span >
2017-09-28 21:20:49 +08:00
password.txt: 12 bytes
username.txt: 5 bytes
< / code > < / pre >
< p > 请 注 意 , 默 认 情 况 下 , < code > get< / code > 和 < code > describe< / code > 命 令 都 不 会 显 示 文 件 的 内 容 。 这 是 为 了 防 止 将 secret 中 的 内 容 被 意 外 暴 露 给 从 终 端 日 志 记 录 中 刻 意 寻 找 它 们 的 人 。 < / p >
< p > 请 参 阅 < a href = "https://kubernetes.io/docs/concepts/configuration/secret.md#decoding-a-secret" target = "_blank" > 解 码 secret< / a > 了 解 如 何 查 看 它 们 的 内 容 。 < / p >
< h4 id = "手动创建-secret" > 手 动 创 建 Secret< / h4 >
< p > 您 也 可 以 先 以 json 或 yaml 格 式 在 文 件 中 创 建 一 个 secret 对 象 , 然 后 创 建 该 对 象 。 < / p >
< p > 每 一 项 必 须 是 base64 编 码 : < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > $ < span class = "token keyword" > echo< / span > -n < span class = "token string" > " admin" < / span > < span class = "token operator" > |< / span > base64
YWRtaW4< span class = "token operator" > =< / span >
$ < span class = "token keyword" > echo< / span > -n < span class = "token string" > " 1f2d1e2e67df" < / span > < span class = "token operator" > |< / span > base64
2017-09-28 21:20:49 +08:00
MWYyZDFlMmU2N2Rm
< / code > < / pre >
< p > 现 在 可 以 像 这 样 写 一 个 secret 对 象 : < / p >
2018-02-20 18:00:08 +08:00
< 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 > Secret
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > mysecret
< span class = "token key atrule" > type< / span > < span class = "token punctuation" > :< / span > Opaque
< span class = "token key atrule" > data< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > username< / span > < span class = "token punctuation" > :< / span > YWRtaW4=
< span class = "token key atrule" > password< / span > < span class = "token punctuation" > :< / span > MWYyZDFlMmU2N2Rm
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > 数 据 字 段 是 一 个 映 射 。 它 的 键 必 须 匹 配 < a href = "https://git.k8s.io/community/contributors/design-proposals/identifiers.md" target = "_blank" > DNS_SUBDOMAIN< / a > , 前 导 点 也 是 可 以 的 。 这 些 值 可 以 是 任 意 数 据 , 使 用 base64 进 行 编 码 。 < / p >
< p > 使 用 < a href = "https://kubernetes.io/docs/user-guide/kubectl/v1.7/#create" target = "_blank" > < code > kubectl create< / code > < / a > 创 建 secret: < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > $ kubectl create -f ./secret.yaml
secret < span class = "token string" > " mysecret" < / span > created
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > < strong > 编 码 注 意 : < / strong > secret 数 据 的 序 列 化 JSON 和 YAML 值 使 用 base64 编 码 成 字 符 串 。 换 行 符 在 这 些 字 符 串 中 无 效 , 必 须 省 略 。 当 在 Darwin/OS X上 使 用 < code > base64< / code > 实 用 程 序 时 , 用 户 应 避 免 使 用 < code > -b< / code > 选 项 来 拆 分 长 行 。 另 外 , 对 于 Linux用 户 如 果 < code > -w< / code > 选 项 不 可 用 的 话 , 应 该 添 加 选 项 < code > -w 0< / code > 到 < code > base64< / code > 命 令 或 管 道 < code > base64 | tr -d ' \n' < / code > 。 < / p >
< h4 id = "解码-secret" > 解 码 Secret< / h4 >
< p > 可 以 使 用 < code > kubectl get secret< / code > 命 令 获 取 secret。 例 如 , 获 取 在 上 一 节 中 创 建 的 secret: < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > $ kubectl get secret mysecret -o yaml
2017-09-28 21:20:49 +08:00
apiVersion: v1
data:
2018-02-20 18:00:08 +08:00
username: YWRtaW4< span class = "token operator" > =< / span >
2017-09-28 21:20:49 +08:00
password: MWYyZDFlMmU2N2Rm
kind: Secret
metadata:
creationTimestamp: 2016-01-22T18:41:56Z
name: mysecret
namespace: default
2018-02-20 18:00:08 +08:00
resourceVersion: < span class = "token string" > " 164619" < / span >
2017-09-28 21:20:49 +08:00
selfLink: /api/v1/namespaces/default/secrets/mysecret
uid: cfee02d6-c137-11e5-8d73-42010af00002
2018-02-20 18:00:08 +08:00
type: Opaque
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > 解 码 密 码 字 段 : < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > $ < span class = "token keyword" > echo< / span > < span class = "token string" > " MWYyZDFlMmU2N2Rm" < / span > < span class = "token operator" > |< / span > base64 --decode
2017-09-28 21:20:49 +08:00
1f2d1e2e67df
< / code > < / pre >
< h3 id = "使用-secret" > 使 用 Secret< / h3 >
< p > Secret 可 以 作 为 数 据 卷 被 挂 载 , 或 作 为 环 境 变 量 暴 露 出 来 以 供 pod 中 的 容 器 使 用 。 它 们 也 可 以 被 系 统 的 其 他 部 分 使 用 , 而 不 直 接 暴 露 在 pod 内 。 例 如 , 它 们 可 以 保 存 凭 据 , 系 统 的 其 他 部 分 应 该 用 它 来 代 表 您 与 外 部 系 统 进 行 交 互 。 < / p >
< h4 id = "在-pod-中使用-secret-文件" > 在 Pod 中 使 用 Secret 文 件 < / h4 >
< p > 在 Pod 中 的 volume 里 使 用 Secret: < / p >
< ol >
< li > 创 建 一 个 secret 或 者 使 用 已 有 的 secret。 多 个 pod 可 以 引 用 同 一 个 secret。 < / li >
< li > 修 改 您 的 pod 的 定 义 在 < code > spec.volumes[]< / code > 下 增 加 一 个 volume。 可 以 给 这 个 volume 随 意 命 名 , 它 的 < code > spec.volumes[].secret.secretName< / code > 必 须 等 于 secret 对 象 的 名 字 。 < / li >
< li > 将 < code > spec.containers[].volumeMounts[]< / code > 加 到 需 要 用 到 该 secret 的 容 器 中 。 指 定 < code > spec.containers[].volumeMounts[].readOnly = true< / code > 和 < code > spec.containers[].volumeMounts[].mountPath< / code > 为 您 想 要 该 secret 出 现 的 尚 未 使 用 的 目 录 。 < / li >
< li > 修 改 您 的 镜 像 并 且 / 或 者 命 令 行 让 程 序 从 该 目 录 下 寻 找 文 件 。 Secret 的 < code > data< / code > 映 射 中 的 每 一 个 键 都 成 为 了 < code > mountPath< / code > 下 的 一 个 文 件 名 。 < / li >
< / ol >
< p > 这 是 一 个 在 pod 中 使 用 volume 挂 在 secret 的 例 子 : < / p >
2018-02-20 18:00:08 +08:00
< 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 > mypod
< 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 > mypod
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > redis
< 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 > foo
< span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " /etc/foo" < / 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 > foo
< span class = "token key atrule" > secret< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > secretName< / span > < span class = "token punctuation" > :< / span > mysecret
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > 您 想 要 用 的 每 个 secret 都 需 要 在 < code > spec.volumes< / code > 中 指 明 。 < / p >
< p > 如 果 pod 中 有 多 个 容 器 , 每 个 容 器 都 需 要 自 己 的 < code > volumeMounts< / code > 配 置 块 , 但 是 每 个 secret 只 需 要 一 个 < code > spec.volumes< / code > 。 < / p >
< p > 您 可 以 打 包 多 个 文 件 到 一 个 secret 中 , 或 者 使 用 的 多 个 secret, 怎 样 方 便 就 怎 样 来 。 < / p >
< p > < strong > 向 特 性 路 径 映 射 secret 密 钥 < / strong > < / p >
< p > 我 们 还 可 以 控 制 Secret key 映 射 在 volume 中 的 路 径 。 您 可 以 使 用 < code > spec.volumes[].secret.items< / code > 字 段 修 改 每 个 key 的 目 标 路 径 : < / p >
2018-02-20 18:00:08 +08:00
< 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 > mypod
< 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 > mypod
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > redis
< 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 > foo
< span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " /etc/foo" < / 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 > foo
< span class = "token key atrule" > secret< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > secretName< / 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
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > 将 会 发 生 什 么 呢 : < / p >
< ul >
< li > < code > username< / code > secret 存 储 在 < code > /etc/foo/my-group/my-username< / code > 文 件 中 而 不 是 < code > /etc/foo/username< / code > 中 。 < / li >
< li > < code > password< / code > secret 没 有 被 影 射 < / li >
< / ul >
< p > 如 果 使 用 了 < code > spec.volumes[].secret.items< / code > , 只 有 在 < code > items< / code > 中 指 定 的 key 被 影 射 。 要 使 用 secret 中 所 有 的 key, 所 有 这 些 都 必 须 列 在 < code > items< / code > 字 段 中 。 所 有 列 出 的 密 钥 必 须 存 在 于 相 应 的 secret 中 。 否 则 , 不 会 创 建 卷 。 < / p >
< p > < strong > Secret 文 件 权 限 < / strong > < / p >
< p > 您 还 可 以 指 定 secret 将 拥 有 的 权 限 模 式 位 文 件 。 如 果 不 指 定 , 默 认 使 用 < code > 0644< / code > 。 您 可 以 为 整 个 保 密 卷 指 定 默 认 模 式 , 如 果 需 要 , 可 以 覆 盖 每 个 密 钥 。 < / p >
2018-02-20 18:00:08 +08:00
< 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 > mypod
< 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 > mypod
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > redis
< 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 > foo
< span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " /etc/foo" < / 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 > foo
< span class = "token key atrule" > secret< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > secretName< / span > < span class = "token punctuation" > :< / span > mysecret
< span class = "token key atrule" > defaultMode< / span > < span class = "token punctuation" > :< / span > < span class = "token number" > 256< / span >
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > 然 后 , secret 将 被 挂 载 到 < code > /etc/foo< / code > 目 录 , 所 有 通 过 该 secret volume 挂 载 创 建 的 文 件 的 权 限 都 是 < code > 0400< / code > 。 < / p >
< p > 请 注 意 , JSON 规 范 不 支 持 八 进 制 符 号 , 因 此 使 用 256 值 作 为 0400 权 限 。 如 果 您 使 用 yaml 而 不 是 json 作 为 pod, 则 可 以 使 用 八 进 制 符 号 以 更 自 然 的 方 式 指 定 权 限 。 < / p >
< p > 您 还 可 以 是 用 映 射 , 如 上 一 个 示 例 , 并 为 不 同 的 文 件 指 定 不 同 的 权 限 , 如 下 所 示 : < / p >
2018-02-20 18:00:08 +08:00
< 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 > mypod
< 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 > mypod
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > redis
< 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 > foo
< span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " /etc/foo" < / 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 > foo
< span class = "token key atrule" > secret< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > secretName< / 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 key atrule" > mode< / span > < span class = "token punctuation" > :< / span > < span class = "token number" > 511< / span >
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > 在 这 种 情 况 下 , 导 致 < code > /etc/foo/my-group/my-username< / code > 的 文 件 的 权 限 值 为 < code > 0777< / code > 。 由 于 JSON 限 制 , 必 须 以 十 进 制 格 式 指 定 模 式 。 < / p >
< p > 请 注 意 , 如 果 稍 后 阅 读 此 权 限 值 可 能 会 以 十 进 制 格 式 显 示 。 < / p >
< p > < strong > 从 Volume 中 消 费 secret 值 < / strong > < / p >
< p > 在 挂 载 的 secret volume 的 容 器 内 , secret key 将 作 为 文 件 , 并 且 secret 的 值 使 用 base-64 解 码 并 存 储 在 这 些 文 件 中 。 这 是 在 上 面 的 示 例 容 器 内 执 行 的 命 令 的 结 果 : < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > $ < span class = "token function" > ls< / span > /etc/foo/
2017-09-28 21:20:49 +08:00
username
password
2018-02-20 18:00:08 +08:00
$ < span class = "token function" > cat< / span > /etc/foo/username
2017-09-28 21:20:49 +08:00
admin
2018-02-20 18:00:08 +08:00
$ < span class = "token function" > cat< / span > /etc/foo/password
2017-09-28 21:20:49 +08:00
1f2d1e2e67df
< / code > < / pre >
< p > 容 器 中 的 程 序 负 责 从 文 件 中 读 取 secret。 < / p >
< p > < strong > 挂 载 的 secret 被 自 动 更 新 < / strong > < / p >
< p > 当 已 经 在 volume 中 消 被 消 费 的 secret 被 更 新 时 , 被 映 射 的 key 也 将 被 更 新 。 < / p >
< p > Kubelet 在 周 期 性 同 步 时 检 查 被 挂 载 的 secret 是 不 是 最 新 的 。 但 是 , 它 正 在 使 用 其 基 于 本 地 ttl 的 缓 存 来 获 取 当 前 的 secret 值 。 结 果 是 , 当 secret 被 更 新 的 时 刻 到 将 新 的 secret 映 射 到 pod 的 时 刻 的 总 延 迟 可 以 与 kubelet 中 的 secret 缓 存 的 kubelet sync period + ttl 一 样 长 。 < / p >
< h4 id = "secret-作为环境变量" > Secret 作 为 环 境 变 量 < / h4 >
< p > 将 secret 作 为 pod 中 的 环 境 变 量 使 用 : < / p >
< ol >
< li > 创 建 一 个 secret 或 者 使 用 一 个 已 存 在 的 secret。 多 个 pod 可 以 引 用 同 一 个 secret。 < / li >
< li > 在 每 个 容 器 中 修 改 您 想 要 使 用 secret key 的 Pod 定 义 , 为 要 使 用 的 每 个 secret key 添 加 一 个 环 境 变 量 。 消 费 secret key 的 环 境 变 量 应 填 充 secret 的 名 称 , 并 键 入 < code > env[x].valueFrom.secretKeyRef< / code > 。 < / li >
< li > 修 改 镜 像 并 / 或 者 命 令 行 , 以 便 程 序 在 指 定 的 环 境 变 量 中 查 找 值 。 < / li >
< / ol >
2018-02-20 18:00:08 +08:00
< 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 > secret< span class = "token punctuation" > -< / span > env< 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" > name< / span > < span class = "token punctuation" > :< / span > mycontainer
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > redis
< 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 > SECRET_USERNAME
< span class = "token key atrule" > valueFrom< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > secretKeyRef< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > mysecret
< span class = "token key atrule" > key< / span > < span class = "token punctuation" > :< / span > username
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > SECRET_PASSWORD
< span class = "token key atrule" > valueFrom< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > secretKeyRef< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > mysecret
< span class = "token key atrule" > key< / span > < span class = "token punctuation" > :< / span > password
< span class = "token key atrule" > restartPolicy< / span > < span class = "token punctuation" > :< / span > Never
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > < strong > 消 费 环 境 变 量 里 的 Secret 值 < / strong > < / p >
< p > 在 一 个 消 耗 环 境 变 量 secret 的 容 器 中 , secret key 作 为 包 含 secret 数 据 的 base-64 解 码 值 的 常 规 环 境 变 量 。 这 是 从 上 面 的 示 例 在 容 器 内 执 行 的 命 令 的 结 果 : < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > $ < span class = "token keyword" > echo< / span > < span class = "token variable" > $SECRET_USERNAME< / span >
2017-09-28 21:20:49 +08:00
admin
2018-02-20 18:00:08 +08:00
$ < span class = "token keyword" > echo< / span > < span class = "token variable" > $SECRET_PASSWORD< / span >
2017-09-28 21:20:49 +08:00
1f2d1e2e67df
< / code > < / pre >
< h4 id = "使用-imagepullsecret" > 使 用 imagePullSecret< / h4 >
< p > imagePullSecret 是 将 包 含 Docker( 或 其 他 ) 镜 像 注 册 表 密 码 的 secret 传 递 给 Kubelet 的 一 种 方 式 , 因 此 可 以 代 表 您 的 pod 拉 取 私 有 镜 像 。 < / p >
< p > < strong > 手 动 指 定 imagePullSecret< / strong > < / p >
< p > imagePullSecret 的 使 用 在 < a href = "https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod" target = "_blank" > 镜 像 文 档 < / a > 中 说 明 。 < / p >
< h3 id = "安排-imagepullsecrets-自动附加" > 安 排 imagePullSecrets 自 动 附 加 < / h3 >
< p > 您 可 以 手 动 创 建 imagePullSecret, 并 从 serviceAccount 引 用 它 。 使 用 该 serviceAccount 创 建 的 任 何 pod 和 默 认 使 用 该 serviceAccount 的 pod 将 会 将 其 的 imagePullSecret 字 段 设 置 为 服 务 帐 户 的 imagePullSecret 字 段 。 有 关 该 过 程 的 详 细 说 明 , 请 参 阅 < a href = "https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#adding-imagepullsecrets-to-a-service-account" target = "_blank" > 将 ImagePullSecrets 添 加 到 服 务 帐 户 < / a > 。 < / p >
< h4 id = "自动挂载手动创建的-secret" > 自 动 挂 载 手 动 创 建 的 Secret< / h4 >
< p > 手 动 创 建 的 secret( 例 如 包 含 用 于 访 问 github 帐 户 的 令 牌 ) 可 以 根 据 其 服 务 帐 户 自 动 附 加 到 pod。 请 参 阅 < a href = "https://kubernetes.io/docs/tasks/run-application/podpreset" target = "_blank" > 使 用 PodPreset 向 Pod 中 注 入 信 息 < / a > 以 获 取 该 进 程 的 详 细 说 明 。 < / p >
< h2 id = "详细" > 详 细 < / h2 >
< h3 id = "限制" > 限 制 < / h3 >
< p > 验 证 secret volume 来 源 确 保 指 定 的 对 象 引 用 实 际 上 指 向 一 个 类 型 为 Secret 的 对 象 。 因 此 , 需 要 在 依 赖 于 它 的 任 何 pod 之 前 创 建 一 个 secret。 < / p >
< p > Secret API 对 象 驻 留 在 命 名 空 间 中 。 它 们 只 能 由 同 一 命 名 空 间 中 的 pod 引 用 。 < / p >
< p > 每 个 secret 的 大 小 限 制 为 1MB。 这 是 为 了 防 止 创 建 非 常 大 的 secret 会 耗 尽 apiserver 和 kubelet 的 内 存 。 然 而 , 创 建 许 多 较 小 的 secret 也 可 能 耗 尽 内 存 。 更 全 面 得 限 制 secret 对 内 存 使 用 的 更 全 面 的 限 制 是 计 划 中 的 功 能 。 < / p >
< p > Kubelet 仅 支 持 从 API server 获 取 的 Pod 使 用 secret。 这 包 括 使 用 kubectl 创 建 的 任 何 pod, 或 间 接 通 过 replication controller 创 建 的 pod。 它 不 包 括 通 过 kubelet < code > --manifest-url< / code > 标 志 , 其 < code > --config< / code > 标 志 或 其 REST API 创 建 的 pod( 这 些 不 是 创 建 pod 的 常 用 方 法 ) 。 < / p >
< p > 必 须 先 创 建 secret, 除 非 将 它 们 标 记 为 可 选 项 , 否 则 必 须 在 将 其 作 为 环 境 变 量 在 pod 中 使 用 之 前 创 建 secret。 对 不 存 在 的 secret 的 引 用 将 阻 止 其 启 动 。 < / p >
< p > 通 过 < code > secretKeyRef< / code > 对 不 存 在 于 命 名 的 key 中 的 key 进 行 引 用 将 阻 止 该 启 动 。 < / p >
< p > 用 于 通 过 < code > envFrom< / code > 填 充 环 境 变 量 的 secret, 这 些 环 境 变 量 具 有 被 认 为 是 无 效 环 境 变 量 名 称 的 key 将 跳 过 这 些 键 。 该 pod 将 被 允 许 启 动 。 将 会 有 一 个 事 件 , 其 原 因 是 < code > InvalidVariableNames< / code > , 该 消 息 将 包 含 被 跳 过 的 无 效 键 的 列 表 。 该 示 例 显 示 一 个 pod, 它 指 的 是 包 含 2个 无 效 键 , 1badkey 和 2alsobad 的 默 认 /mysecret ConfigMap。 < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > $ kubectl get events
2017-09-28 21:20:49 +08:00
LASTSEEN FIRSTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON
2018-02-20 18:00:08 +08:00
0s 0s 1 dapi-test-pod Pod Warning InvalidEnvironmentVariableNames kubelet, 127.0.0.1 Keys < span class = "token punctuation" > [< / span > 1badkey, 2alsobad< span class = "token punctuation" > ]< / span > from the EnvFrom secret default/mysecret were skipped since they are considered invalid environment variable names.
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< h3 id = "secret-与-pod-生命周期的联系" > Secret 与 Pod 生 命 周 期 的 联 系 < / h3 >
< p > 通 过 API 创 建 的 Pod 时 , 不 会 检 查 应 用 的 secret 是 否 存 在 。 一 旦 Pod 被 调 度 , kubelet 就 会 尝 试 获 取 该 secret 的 值 。 如 果 获 取 不 到 该 secret, 或 者 暂 时 无 法 与 API server 建 立 连 接 , kubelet 将 会 定 期 重 试 。 Kubelet 将 会 报 告 关 于 pod 的 事 件 , 并 解 释 它 无 法 启 动 的 原 因 。 一 旦 获 取 的 secret, kubelet将 创 建 并 装 载 一 个 包 含 它 的 卷 。 在 安 装 所 有 pod的 卷 之 前 , 都 不 会 启 动 pod 的 容 器 。 < / p >
< h2 id = "使用案例" > 使 用 案 例 < / h2 >
< h3 id = "使用案例:包含-ssh-密钥的-pod" > 使 用 案 例 : 包 含 ssh 密 钥 的 pod< / h3 >
< p > 创 建 一 个 包 含 ssh key 的 secret: < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > $ kubectl create secret generic ssh-key-secret --from-file< span class = "token operator" > =< / span > ssh-privatekey< span class = "token operator" > =< / span > /path/to/.ssh/id_rsa --from-file< span class = "token operator" > =< / span > ssh-publickey< span class = "token operator" > =< / span > /path/to/.ssh/id_rsa.pub
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > < strong > 安 全 性 注 意 事 项 < / strong > : 发 送 自 己 的 ssh 密 钥 之 前 要 仔 细 思 考 : 集 群 的 其 他 用 户 可 能 有 权 访 问 该 密 钥 。 使 用 您 想 要 共 享 Kubernetes 群 集 的 所 有 用 户 可 以 访 问 的 服 务 帐 户 , 如 果 它 们 遭 到 入 侵 , 可 以 撤 销 。 < / p >
< p > 现 在 我 们 可 以 创 建 一 个 使 用 ssh 密 钥 引 用 secret 的 pod, 并 在 一 个 卷 中 使 用 它 : < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > secret< span class = "token punctuation" > -< / span > test< span class = "token punctuation" > -< / span > pod
< span class = "token key atrule" > labels< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > secret< span class = "token punctuation" > -< / span > test
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / 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 > secret< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > secret< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > secretName< / span > < span class = "token punctuation" > :< / span > ssh< span class = "token punctuation" > -< / span > key< span class = "token punctuation" > -< / span > secret
< 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 > ssh< span class = "token punctuation" > -< / span > test< span class = "token punctuation" > -< / span > container
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > mySshImage
< 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 > secret< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > readOnly< / span > < span class = "token punctuation" > :< / span > < span class = "token boolean important" > true< / span >
< span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " /etc/secret-volume" < / span >
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > 当 容 器 中 的 命 令 运 行 时 , 密 钥 的 片 段 将 可 在 以 下 目 录 : < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code > /etc/secret-volume/ssh-publickey
2017-09-28 21:20:49 +08:00
/etc/secret-volume/ssh-privatekey
< / code > < / pre > < p > 然 后 容 器 可 以 自 由 使 用 密 钥 数 据 建 立 一 个 ssh 连 接 。 < / p >
< h3 id = "使用案例:包含-prodtest-凭据的-pod" > 使 用 案 例 : 包 含 prod/test 凭 据 的 pod< / h3 >
< p > 下 面 的 例 子 说 明 一 个 pod 消 费 一 个 包 含 prod 凭 据 的 secret, 另 一 个 pod 使 用 测 试 环 境 凭 据 消 费 secret。 < / p >
< p > 创 建 secret: < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > $ kubectl create secret generic prod-db-secret --from-literal< span class = "token operator" > =< / span > username< span class = "token operator" > =< / span > produser --from-literal< span class = "token operator" > =< / span > password< span class = "token operator" > =< / span > Y4nys7f11
secret < span class = "token string" > " prod-db-secret" < / span > created
$ kubectl create secret generic test-db-secret --from-literal< span class = "token operator" > =< / span > username< span class = "token operator" > =< / span > testuser --from-literal< span class = "token operator" > =< / span > password< span class = "token operator" > =< / span > iluvtests
secret < span class = "token string" > " test-db-secret" < / span > created
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > 创 建 pod : < / p >
2018-02-20 18:00:08 +08:00
< 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 > List
< span class = "token key atrule" > items< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > prod< span class = "token punctuation" > -< / span > db< span class = "token punctuation" > -< / span > client< span class = "token punctuation" > -< / span > pod
< span class = "token key atrule" > labels< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > prod< span class = "token punctuation" > -< / span > db< span class = "token punctuation" > -< / span > client
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / 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 > secret< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > secret< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > secretName< / span > < span class = "token punctuation" > :< / span > prod< span class = "token punctuation" > -< / span > db< span class = "token punctuation" > -< / span > secret
< 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 > db< span class = "token punctuation" > -< / span > client< span class = "token punctuation" > -< / span > container
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > myClientImage
< 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 > secret< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > readOnly< / span > < span class = "token punctuation" > :< / span > < span class = "token boolean important" > true< / span >
< span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " /etc/secret-volume" < / span >
< span class = "token punctuation" > -< / span > < span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< 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 > db< span class = "token punctuation" > -< / span > client< span class = "token punctuation" > -< / span > pod
< span class = "token key atrule" > labels< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > db< span class = "token punctuation" > -< / span > client
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / 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 > secret< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > secret< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > secretName< / span > < span class = "token punctuation" > :< / span > test< span class = "token punctuation" > -< / span > db< span class = "token punctuation" > -< / span > secret
< 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 > db< span class = "token punctuation" > -< / span > client< span class = "token punctuation" > -< / span > container
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > myClientImage
< 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 > secret< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > readOnly< / span > < span class = "token punctuation" > :< / span > < span class = "token boolean important" > true< / span >
< span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " /etc/secret-volume" < / span >
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > 这 两 个 容 器 将 在 其 文 件 系 统 上 显 示 以 下 文 件 , 其 中 包 含 每 个 容 器 环 境 的 值 : < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code > /etc/secret-volume/username
2017-09-28 21:20:49 +08:00
/etc/secret-volume/password
< / code > < / pre > < p > 请 注 意 , 两 个 pod 的 spec 配 置 中 仅 有 一 个 字 段 有 所 不 同 ; 这 有 助 于 使 用 普 通 的 pod 配 置 模 板 创 建 具 有 不 同 功 能 的 pod。 您 可 以 使 用 两 个 service account 进 一 步 简 化 基 本 pod spec: 一 个 名 为 < code > prod-user< / code > 拥 有 < code > prod-db-secret< / code > , 另 一 个 称 为 < code > test-user< / code > 拥 有 < code > test-db-secret< / code > 。 然 后 , pod spec 可 以 缩 短 为 , 例 如 : < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > prod< span class = "token punctuation" > -< / span > db< span class = "token punctuation" > -< / span > client< span class = "token punctuation" > -< / span > pod
< span class = "token key atrule" > labels< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > prod< span class = "token punctuation" > -< / span > db< span class = "token punctuation" > -< / span > client
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > serviceAccount< / span > < span class = "token punctuation" > :< / span > prod< span class = "token punctuation" > -< / span > db< span class = "token punctuation" > -< / span > client
< 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 > db< span class = "token punctuation" > -< / span > client< span class = "token punctuation" > -< / span > container
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > myClientImage
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< h3 id = "使用案例:secret-卷中以点号开头的文件" > 使 用 案 例 : secret 卷 中 以 点 号 开 头 的 文 件 < / h3 >
< p > 为 了 将 数 据 “ 隐 藏 ” 起 来 ( 即 文 件 名 以 点 号 开 头 的 文 件 ) , 简 单 地 说 让 该 键 以 一 个 点 开 始 。 例 如 , 当 如 下 secret 被 挂 载 到 卷 中 : < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-yaml" > < span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Secret
< span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > dotfile< span class = "token punctuation" > -< / span > secret
< span class = "token key atrule" > data< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > .secret-file< / span > < span class = "token punctuation" > :< / span > dmFsdWUtMg0KDQo=
< span class = "token punctuation" > ---< / span >
< span class = "token key atrule" > kind< / span > < span class = "token punctuation" > :< / span > Pod
< span class = "token key atrule" > apiVersion< / span > < span class = "token punctuation" > :< / span > v1
< span class = "token key atrule" > metadata< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > name< / span > < span class = "token punctuation" > :< / span > secret< span class = "token punctuation" > -< / span > dotfiles< span class = "token punctuation" > -< / span > pod
< span class = "token key atrule" > spec< / span > < span class = "token punctuation" > :< / 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 > secret< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > secret< / span > < span class = "token punctuation" > :< / span >
< span class = "token key atrule" > secretName< / span > < span class = "token punctuation" > :< / span > dotfile< span class = "token punctuation" > -< / span > secret
< 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 > dotfile< span class = "token punctuation" > -< / span > test< span class = "token punctuation" > -< / span > container
< span class = "token key atrule" > image< / span > < span class = "token punctuation" > :< / span > gcr.io/google_containers/busybox
< span class = "token key atrule" > command< / span > < span class = "token punctuation" > :< / span >
< span class = "token punctuation" > -< / span > ls
< span class = "token punctuation" > -< / span > < span class = "token string" > " -l" < / span >
< span class = "token punctuation" > -< / span > < span class = "token string" > " /etc/secret-volume" < / span >
< 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 > secret< span class = "token punctuation" > -< / span > volume
< span class = "token key atrule" > readOnly< / span > < span class = "token punctuation" > :< / span > < span class = "token boolean important" > true< / span >
< span class = "token key atrule" > mountPath< / span > < span class = "token punctuation" > :< / span > < span class = "token string" > " /etc/secret-volume" < / span >
2017-09-28 21:20:49 +08:00
< / code > < / pre >
< p > < code > Secret-volume< / code > 将 包 含 一 个 单 独 的 文 件 , 叫 做 < code > .secret-file< / code > , < code > dotfile-test-container< / code > 的 < code > /etc/secret-volume/.secret-file< / code > 路 径 下 将 有 该 文 件 。 < / p >
< p > < strong > 注 意 < / strong > < / p >
< p > 以 点 号 开 头 的 文 件 在 < code > ls -l< / code > 的 输 出 中 被 隐 藏 起 来 了 ; 列 出 目 录 内 容 时 , 必 须 使 用 < code > ls -la< / code > 才 能 查 看 它 们 。 < / p >
< h3 id = "使用案例:secret-仅对-pod-中的一个容器可见" > 使 用 案 例 : Secret 仅 对 pod 中 的 一 个 容 器 可 见 < / h3 >
< p > 考 虑 以 下 一 个 需 要 处 理 HTTP 请 求 的 程 序 , 执 行 一 些 复 杂 的 业 务 逻 辑 , 然 后 使 用 HMAC 签 署 一 些 消 息 。 因 为 它 具 有 复 杂 的 应 用 程 序 逻 辑 , 所 以 在 服 务 器 中 可 能 会 出 现 一 个 未 被 注 意 的 远 程 文 件 读 取 漏 洞 , 这 可 能 会 将 私 钥 暴 露 给 攻 击 者 。 < / p >
< p > 这 可 以 在 两 个 容 器 中 分 为 两 个 进 程 : 前 端 容 器 , 用 于 处 理 用 户 交 互 和 业 务 逻 辑 , 但 无 法 看 到 私 钥 ; 以 及 可 以 看 到 私 钥 的 签 名 者 容 器 , 并 且 响 应 来 自 前 端 的 简 单 签 名 请 求 ( 例 如 通 过 本 地 主 机 网 络 ) 。 < / p >
< p > 使 用 这 种 分 割 方 法 , 攻 击 者 现 在 必 须 欺 骗 应 用 程 序 服 务 器 才 能 进 行 任 意 的 操 作 , 这 可 能 比 使 其 读 取 文 件 更 难 。 < / p >
< h2 id = "最佳实践" > 最 佳 实 践 < / h2 >
< h3 id = "客户端使用-secret-api" > 客 户 端 使 用 secret API< / h3 >
< p > 当 部 署 与 secret API 交 互 的 应 用 程 序 时 , 应 使 用 诸 如 < a href = "https://kubernetes.io/docs/admin/authorization/rbac/" target = "_blank" > RBAC< / a > 之 类 的 < a href = "https://kubernetes.io/docs/admin/authorization/" target = "_blank" > 授 权 策 略 < / a > 来 限 制 访 问 。 < / p >
< p > Secret 的 重 要 性 通 常 不 尽 相 同 , 其 中 许 多 可 能 只 对 Kubernetes 集 群 内 ( 例 如 service account 令 牌 ) 和 对 外 部 系 统 造 成 影 响 。 即 使 一 个 应 用 程 序 可 以 理 解 其 期 望 的 与 之 交 互 的 secret 的 权 力 , 但 是 同 一 命 名 空 间 中 的 其 他 应 用 程 序 也 可 以 使 这 些 假 设 无 效 。 < / p >
< p > 由 于 这 些 原 因 , 在 命 名 空 间 中 < code > watch< / code > 和 < code > list< / code > secret 的 请 求 是 非 常 强 大 的 功 能 , 应 该 避 免 这 样 的 行 为 , 因 为 列 出 secret 可 以 让 客 户 端 检 查 所 有 secret 是 否 在 该 命 名 空 间 中 。 在 群 集 中 < code > watch< / code > 和 < code > list< / code > 所 有 secret 的 能 力 应 该 只 保 留 给 最 有 特 权 的 系 统 级 组 件 。 < / p >
< p > 需 要 访 问 secrets API 的 应 用 程 序 应 该 根 据 他 们 需 要 的 secret 执 行 < code > get< / code > 请 求 。 这 允 许 管 理 员 限 制 对 所 有 secret 的 访 问 , 同 时 设 置 < a href = "https://kubernetes.io/docs/admin/authorization/rbac/#referring-to-resources" target = "_blank" > 白 名 单 访 问 < / a > 应 用 程 序 需 要 的 各 个 实 例 。 < / p >
< p > 为 了 提 高 循 环 获 取 的 性 能 , 客 户 端 可 以 设 计 引 用 secret 的 资 源 , 然 后 < code > watch< / code > 资 源 , 在 引 用 更 改 时 重 新 请 求 secret。 此 外 , 还 提 出 了 一 种 < a href = "https://github.com/kubernetes/community/blob/master/contributors/design-proposals/bulk_watch.md" target = "_blank" > ” 批 量 监 控 “ API< / a > 来 让 客 户 端 < code > watch< / code > 每 个 资 源 , 该 功 能 可 能 会 在 将 来 的 Kubernetes 版 本 中 提 供 。 < / p >
< h2 id = "安全属性" > 安 全 属 性 < / h2 >
< h3 id = "保护" > 保 护 < / h3 >
< p > 因 为 < code > secret< / code > 对 象 可 以 独 立 于 使 用 它 们 的 < code > pod< / code > 而 创 建 , 所 以 在 创 建 、 查 看 和 编 辑 pod 的 流 程 中 secret 被 暴 露 的 风 险 较 小 。 系 统 还 可 以 对 < code > secret< / code > 对 象 采 取 额 外 的 预 防 措 施 , 例 如 避 免 将 其 写 入 到 磁 盘 中 可 能 的 位 置 。 < / p >
< p > 只 有 当 节 点 上 的 pod 需 要 用 到 该 secret 时 , 该 secret 才 会 被 发 送 到 该 节 点 上 。 它 不 会 被 写 入 磁 盘 , 而 是 存 储 在 tmpfs 中 。 一 旦 依 赖 于 它 的 pod 被 删 除 , 它 就 被 删 除 。 < / p >
< p > 在 大 多 数 Kubernetes 项 目 维 护 的 发 行 版 中 , 用 户 与 API server 之 间 的 通 信 以 及 从 API server 到 kubelet 的 通 信 都 受 到 SSL/TLS 的 保 护 。 通 过 这 些 通 道 传 输 时 , secret 受 到 保 护 。 < / p >
< p > 节 点 上 的 secret 数 据 存 储 在 tmpfs 卷 中 , 因 此 不 会 传 到 节 点 上 的 其 他 磁 盘 。 < / p >
< p > 同 一 节 点 上 的 很 多 个 pod 可 能 拥 有 多 个 secret。 但 是 , 只 有 pod 请 求 的 secret 在 其 容 器 中 才 是 可 见 的 。 因 此 , 一 个 pod 不 能 访 问 另 一 个 Pod 的 secret。 < / p >
< p > Pod 中 有 多 个 容 器 。 但 是 , pod 中 的 每 个 容 器 必 须 请 求 其 挂 载 卷 中 的 secret 卷 才 能 在 容 器 内 可 见 。 这 可 以 用 于 < a href = "https://kubernetes.io/docs/concepts/configuration/secret.md#use-case-secret-visible-to-one-container-in-a-pod" target = "_blank" > 在 Pod 级 别 构 建 安 全 分 区 < / a > 。 < / p >
< h3 id = "风险" > 风 险 < / h3 >
< ul >
< li > API server 的 secret 数 据 以 纯 文 本 的 方 式 存 储 在 etcd 中 ; 因 此 : < ul >
< li > 管 理 员 应 该 限 制 admin 用 户 访 问 etcd; < / li >
< li > API server 中 的 secret 数 据 位 于 etcd 使 用 的 磁 盘 上 ; 管 理 员 可 能 希 望 在 不 再 使 用 时 擦 除 /粉 碎 etcd 使 用 的 磁 盘 < / li >
< / ul >
< / li >
< li > 如 果 您 将 secret 数 据 编 码 为 base64 的 清 单 ( JSON 或 YAML) 文 件 , 共 享 该 文 件 或 将 其 检 入 代 码 库 , 这 样 的 话 该 密 码 将 会 被 泄 露 。 Base64 编 码 不 是 一 种 加 密 方 式 , 一 样 也 是 纯 文 本 。 < / li >
< li > 应 用 程 序 在 从 卷 中 读 取 secret 后 仍 然 需 要 保 护 secret 的 值 , 例 如 不 会 意 外 记 录 或 发 送 给 不 信 任 方 。 < / li >
< li > 可 以 创 建 和 使 用 secret 的 pod 的 用 户 也 可 以 看 到 该 secret 的 值 。 即 使 API server 策 略 不 允 许 用 户 读 取 secret 对 象 , 用 户 也 可 以 运 行 暴 露 secret 的 pod。 < / li >
< li > 如 果 运 行 了 多 个 副 本 , 那 么 这 些 secret 将 在 它 们 之 间 共 享 。 默 认 情 况 下 , etcd 不 能 保 证 与 SSL/TLS 的 对 等 通 信 , 尽 管 可 以 进 行 配 置 。 < / li >
< li > 目 前 , 任 何 节 点 的 root 用 户 都 可 以 通 过 模 拟 kubelet 来 读 取 API server 中 的 任 何 secret。 只 有 向 实 际 需 要 它 们 的 节 点 发 送 secret 才 能 限 制 单 个 节 点 的 根 漏 洞 的 影 响 , 该 功 能 还 在 计 划 中 。 < / li >
< / ul >
2017-10-09 15:28:05 +08:00
< p > 原 文 地 址 : < a href = "https://github.com/rootsongjc/kubernetes.github.io/blob/master/docs/concepts/configuration/secret.md" target = "_blank" > https://github.com/rootsongjc/kubernetes.github.io/blob/master/docs/concepts/configuration/secret.md< / a > < / p >
2018-02-06 14:16:27 +08:00
< footer class = "page-footer" > < span class = "copyright" > Copyright © jimmysong.io 2017-2018 all right reserved, powered by Gitbook< / span > < span class = "footer-modification" > Updated at
2017-10-09 15:28:05 +08:00
2017-09-28 21:19:22
< / span > < / footer >
2017-09-28 21:20:49 +08:00
< / 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 >
2017-11-15 21:18:59 +08:00
< a href = "configure-pod-service-account.html" class = "navigation navigation-prev " aria-label = "Previous page: 配置Pod的Service Account" >
2017-09-28 21:20:49 +08:00
< i class = "fa fa-angle-left" > < / i >
< / a >
2017-11-15 21:18:59 +08:00
< a href = "resource-quota-management.html" class = "navigation navigation-next " aria-label = "Next page: 管理namespace中的资源配额" >
2017-09-28 21:20:49 +08:00
< i class = "fa fa-angle-right" > < / i >
< / a >
< / div >
< script >
var gitbook = gitbook || [];
gitbook.push(function() {
2018-05-25 14:23:39 +08:00
gitbook.page.hasChanged({"page":{"title":"Secret配置","level":"4.2.3","depth":2,"next":{"title":"管理namespace中的资源配额","level":"4.2.4","depth":2,"path":"guide/resource-quota-management.md","ref":"guide/resource-quota-management.md","articles":[]},"previous":{"title":"配置Pod的Service Account","level":"4.2.2","depth":2,"path":"guide/configure-pod-service-account.md","ref":"guide/configure-pod-service-account.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"],"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 © jimmysong.io 2017-2018","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":{},"codesnippet":{},"fontsettings":{"theme":"white","family":"sans","size":2},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"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"},"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"}},"search-plus":{},"image-captions":{"caption":"图片 - _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":"index.html#fig1.1.1","level":"1.1","list_caption":"Figure: Stargazers over time","alt":"Stargazers over time","nro":1,"url":"https://starcharts.herokuapp.com/rootsongjc/kubernetes-handbook.svg","index":1,"caption_template":"图片 - _CAPTION_","label":"Stargazers over time","attributes":{},"skip":false,"key":"1.1.1"},{"backlink":"cloud-native/cncf.html#fig1.2.1","level":"1.2","list_caption":"Figure: CNCF landscape","alt":"CNCF landscape","nro":2,"url":"https://github.com/cncf/landscape/raw/master/landscape/CloudNativeLandscape_latest.png","index":1,"caption_template":"图片 - _CAPTION_","label":"CNCF landscape","attributes":{},"skip":false,"key":"1.2.1"},{"backlink":"cloud-native/cncf.html#fig1.2.2","level":"1.2","list_caption":"Figure: CNCF项目成熟度级别","alt":"CNCF项目成熟度级别","nro":3,"url":"../images/cncf-graduation-criteria.jpg","index":2,"caption_template":"图片 - _CAPTION_","label":"CNCF项目成熟度级别","attributes":{},"skip":false,"key":"1.2.2"},{"backlink":"cloud-native/play-with-kubernetes.html#fig2.1.1","level":"2.1","list_caption":"Figure: Play with Kubernetes网页截图","alt":"Play with Kubernetes网页截图","nro":4,"url":"../images/play-with-kubernetes.jpg","index":1,"caption_template":"图片 - _CAPTION_","label":"Play with Kubernetes网页截图","attributes":{},"skip":false,"key":"2.1.1"},{"backlink":"cloud-native/kubernetes-and-cloud-native-app-overview.html#fig2.2.1","level":"2.2","list_caption":"Figure: 云计算演进历程","alt":"云计算演进历程","nro":5,"url":"../images/clo
2017-09-28 21:20:49 +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 >
2017-10-09 15:28:05 +08:00
< script src = "../gitbook/gitbook-plugin-github-buttons/plugin.js" > < / script >
2017-10-11 18:13:13 +08:00
< script src = "../gitbook/gitbook-plugin-3-ba/plugin.js" > < / script >
2017-09-28 21:20:49 +08:00
< script src = "../gitbook/gitbook-plugin-sharing/buttons.js" > < / script >
< script src = "../gitbook/gitbook-plugin-fontsettings/fontsettings.js" > < / script >
< / body >
< / html >