2017-12-20 19:27:32 +08:00
<!DOCTYPE HTML>
< html lang = "zh-hans" >
< head >
< meta charset = "UTF-8" >
< meta content = "text/html; charset=utf-8" http-equiv = "Content-Type" >
< title > 云原生应用之路——从Kubernetes到Cloud Native · Kubernetes Handbook - jimmysong.io< / title >
< 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" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-back-to-top-button/plugin.css" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-search-plus/search.css" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css" >
2018-02-20 18:00:08 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-prism/prism-ghcolors.css" >
2017-12-20 19:27:32 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-fontsettings/website.css" >
< meta name = "HandheldFriendly" content = "true" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1, user-scalable=no" >
< meta name = "apple-mobile-web-app-capable" content = "yes" >
< meta name = "apple-mobile-web-app-status-bar-style" content = "black" >
< link rel = "apple-touch-icon-precomposed" sizes = "152x152" href = "../gitbook/images/apple-touch-icon-precomposed-152.png" >
< link rel = "shortcut icon" href = "../gitbook/images/favicon.ico" type = "image/x-icon" >
< link rel = "next" href = "../concepts/" / >
< link rel = "prev" href = "kubernetes-and-cloud-native-app-overview.html" / >
< link rel = "shortcut icon" href = '../favicon.ico' type = "image/x-icon" >
< link rel = "bookmark" href = '../favicon.ico' type = "image/x-icon" >
< style >
@media only screen and (max-width: 640px) {
.book-header .hidden-mobile {
display: none;
}
}
< / style >
< script >
window["gitbook-plugin-github-buttons"] = {"repo":"rootsongjc/kubernetes-handbook","types":["star"],"size":"small"};
< / script >
< / head >
< body >
< div class = "book" >
< div class = "book-summary" >
< div id = "book-search-input" role = "search" >
< input type = "text" placeholder = "输入并搜索" / >
< / div >
< nav role = "navigation" >
< ul class = "summary" >
< li >
< a href = "https://jimmysong.io" target = "_blank" class = "custom-link" > Jimmy Song< / a >
< / li >
< li class = "divider" > < / li >
< li class = "header" > 前言< / li >
< li class = "chapter " data-level = "1.1" data-path = "../" >
< a href = "../" >
< b > 1.1.< / b >
序言
< / a >
2018-03-04 18:01:35 +08:00
< / li >
< li class = "chapter " data-level = "1.2" data-path = "cncf.html" >
< a href = "cncf.html" >
< b > 1.2.< / b >
CNCF - 云原生计算基金会简介
< / a >
2017-12-20 19:27:32 +08:00
< / li >
< li class = "header" > 云原生< / li >
2018-01-21 20:30:36 +08:00
< li class = "chapter " data-level = "2.1" data-path = "play-with-kubernetes.html" >
2017-12-20 19:27:32 +08:00
2018-01-21 20:30:36 +08:00
< a href = "play-with-kubernetes.html" >
2017-12-20 19:27:32 +08:00
< b > 2.1.< / b >
2018-01-21 20:30:36 +08:00
Play with Kubernetes
< / a >
< / li >
< li class = "chapter " data-level = "2.2" data-path = "kubernetes-and-cloud-native-app-overview.html" >
< a href = "kubernetes-and-cloud-native-app-overview.html" >
< b > 2.2.< / b >
2017-12-20 19:27:32 +08:00
Kubernetes与云原生应用概览
< / a >
< / li >
2018-01-21 20:30:36 +08:00
< li class = "chapter active" data-level = "2.3" data-path = "from-kubernetes-to-cloud-native.html" >
2017-12-20 19:27:32 +08:00
< a href = "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 >
< / li >
< li class = "header" > 概念与原理< / li >
< li class = "chapter " data-level = "3.1" data-path = "../concepts/" >
< a href = "../concepts/" >
< b > 3.1.< / b >
Kubernetes架构
< / 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-12-20 19:27:32 +08:00
2018-02-09 18:24:23 +08:00
< a href = "../concepts/calico.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 17:48:23 +08:00
< b > 3.2.2.< / b >
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
< / a >
2018-03-12 17:48:23 +08:00
< / li >
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-02-06 16:51:29 +08:00
< a href = "../concepts/pod-state-and-lifecycle.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 17:48:23 +08:00
< b > 3.4.< / b >
2017-12-20 19:27:32 +08:00
2018-02-06 16:51:29 +08:00
Pod状态与生命周期管理
2017-12-20 19:27:32 +08:00
< / a >
2018-03-12 17:48:23 +08:00
< ul class = "articles" >
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
< a href = "../concepts/pod-overview.html" >
2018-03-12 17:48:23 +08:00
< b > 3.4.1.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
Pod概览
2017-12-20 19:27:32 +08:00
< / a >
2018-01-30 12:30:58 +08:00
< / li >
2017-12-20 19:27:32 +08:00
2018-03-12 17:48:23 +08:00
< li class = "chapter " data-level = "3.4.2" data-path = "../concepts/pod.html" >
2017-12-20 19:27:32 +08:00
< a href = "../concepts/pod.html" >
2018-03-12 17:48:23 +08:00
< b > 3.4.2.< / b >
2017-12-20 19:27:32 +08:00
Pod解析
< / 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-12-20 19:27:32 +08:00
< a href = "../concepts/init-containers.html" >
2018-03-12 17:48:23 +08:00
< b > 3.4.3.< / b >
2017-12-20 19:27:32 +08:00
Init容器
< / 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-12-20 19:27:32 +08:00
2018-03-17 22:22:27 +08:00
< a href = "../concepts/pause-container.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 17:48:23 +08:00
< b > 3.4.4.< / b >
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
Pod安全策略
< / 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-12-20 19:27:32 +08:00
< a href = "../concepts/pod-lifecycle.html" >
2018-03-17 22:22:27 +08:00
< b > 3.4.6.< / b >
2017-12-20 19:27:32 +08:00
Pod的生命周期
< / a >
< / li >
2018-03-17 22:22:27 +08:00
< li class = "chapter " data-level = "3.4.7" data-path = "../concepts/pod-hook.html" >
2017-12-20 19:27:32 +08:00
< a href = "../concepts/pod-hook.html" >
2018-03-17 22:22:27 +08:00
< b > 3.4.7.< / b >
2017-12-20 19:27:32 +08:00
2017-12-27 12:29:33 +08:00
Pod Hook
2017-12-20 19:27:32 +08:00
< / a >
< / 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-20 19:27:32 +08:00
< a href = "../concepts/pod-preset.html" >
2018-03-17 22:22:27 +08:00
< b > 3.4.8.< / b >
2017-12-20 19:27:32 +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-12-20 19:27:32 +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-12-20 19:27:32 +08:00
< a href = "../concepts/node.html" >
2018-03-12 18:00:25 +08:00
< b > 3.5.1.< / b >
2017-12-20 19:27:32 +08:00
Node
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.5.2" data-path = "../concepts/namespace.html" >
2017-12-20 19:27:32 +08:00
< a href = "../concepts/namespace.html" >
2018-03-12 18:00:25 +08:00
< b > 3.5.2.< / b >
2017-12-20 19:27:32 +08:00
Namespace
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.5.3" data-path = "../concepts/label.html" >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/label.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.5.3.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
Label
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/annotation.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.5.4.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
Annotation
2017-12-20 19:27:32 +08:00
< / a >
2018-01-25 15:01:14 +08:00
< / li >
2018-01-08 17:22:21 +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:22:21 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/taint-and-toleration.html" >
2018-01-08 17:22:21 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.5.5.< / b >
2018-01-08 17:22:21 +08:00
2018-01-30 12:30:58 +08:00
Taint和Toleration( 污点和容忍)
2018-01-08 17:22:21 +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-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/garbage-collection.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.5.6.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
垃圾收集
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
控制器
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/deployment.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.1.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
Deployment
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/statefulset.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.2.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
StatefulSet
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/daemonset.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.3.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
DaemonSet
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
< a href = "../concepts/replicaset.html" >
2018-03-12 18:00:25 +08:00
< b > 3.6.4.< / b >
2017-12-20 19:27:32 +08:00
ReplicationController和ReplicaSet
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.6.5" data-path = "../concepts/job.html" >
2017-12-20 19:27:32 +08:00
< a href = "../concepts/job.html" >
2018-03-12 18:00:25 +08:00
< b > 3.6.5.< / b >
2017-12-20 19:27:32 +08:00
Job
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.6.6" data-path = "../concepts/cronjob.html" >
2017-12-20 19:27:32 +08:00
< a href = "../concepts/cronjob.html" >
2018-03-12 18:00:25 +08:00
< b > 3.6.6.< / b >
2017-12-20 19:27:32 +08:00
CronJob
< / 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-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/horizontal-pod-autoscaling.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.7.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
Horizontal Pod Autoscaling
2017-12-20 19:27:32 +08:00
< / a >
< 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-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/custom-metrics-hpa.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.6.7.1.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
自定义指标HPA
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/service-discovery.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.7.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
服务发现
2017-12-20 19:27:32 +08:00
< / a >
2018-03-12 18:00:25 +08:00
< ul class = "articles" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.7.1" data-path = "../concepts/service.html" >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/service.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.7.1.< / b >
2017-12-20 19:27:32 +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-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.8.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
身份与权限控制
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/serviceaccount.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.8.1.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
ServiceAccount
2017-12-20 19:27:32 +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-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/network-policy.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.8.3.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
NetworkPolicy
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.9.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
存储
2017-12-20 19:27:32 +08:00
< / a >
2018-03-12 18:00:25 +08:00
< ul class = "articles" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.9.1" data-path = "../concepts/secret.html" >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/secret.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.9.1.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
Secret
2017-12-20 19:27:32 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.9.2" data-path = "../concepts/configmap.html" >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/configmap.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.9.2.< / b >
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
< / a >
< / li >
2018-01-30 12:30:58 +08:00
< / ul >
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.9.3.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
Volume
2017-12-20 19:27:32 +08:00
< / a >
< / li >
2018-03-12 18:00:25 +08:00
< li class = "chapter " data-level = "3.9.4" data-path = "../concepts/persistent-volume.html" >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< a href = "../concepts/persistent-volume.html" >
2017-12-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.9.4.< / b >
2017-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
Persistent Volume( 持久化卷)
2017-12-20 19:27:32 +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-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-20 19:27:32 +08:00
2018-03-12 18:00:25 +08:00
< b > 3.10.< / b >
2017-12-20 19:27:32 +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-20 19:27:32 +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 >
2017-12-20 19:27:32 +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-12-20 19:27:32 +08:00
2018-01-30 12:30:58 +08:00
< / li >
2017-12-20 19:27:32 +08:00
< li class = "header" > 用户指南< / li >
< li class = "chapter " data-level = "4.1" data-path = "../guide/" >
< a href = "../guide/" >
< b > 4.1.< / b >
用户指南
< / a >
< / li >
< li class = "chapter " data-level = "4.2" data-path = "../guide/resource-configuration.html" >
< a href = "../guide/resource-configuration.html" >
< b > 4.2.< / b >
资源对象配置
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "4.2.1" data-path = "../guide/configure-liveness-readiness-probes.html" >
< a href = "../guide/configure-liveness-readiness-probes.html" >
< b > 4.2.1.< / b >
配置Pod的liveness和readiness探针
< / a >
< / li >
< li class = "chapter " data-level = "4.2.2" data-path = "../guide/configure-pod-service-account.html" >
< a href = "../guide/configure-pod-service-account.html" >
< b > 4.2.2.< / b >
配置Pod的Service Account
< / a >
< / li >
< li class = "chapter " data-level = "4.2.3" data-path = "../guide/secret-configuration.html" >
< a href = "../guide/secret-configuration.html" >
< b > 4.2.3.< / b >
Secret配置
< / a >
< / li >
< li class = "chapter " data-level = "4.2.4" data-path = "../guide/resource-quota-management.html" >
< a href = "../guide/resource-quota-management.html" >
< b > 4.2.4.< / b >
管理namespace中的资源配额
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "4.3" data-path = "../guide/command-usage.html" >
< a href = "../guide/command-usage.html" >
< b > 4.3.< / b >
命令使用
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "4.3.1" data-path = "../guide/docker-cli-to-kubectl.html" >
< a href = "../guide/docker-cli-to-kubectl.html" >
< b > 4.3.1.< / b >
docker用户过度到kubectl命令行指南
< / a >
< / li >
< li class = "chapter " data-level = "4.3.2" data-path = "../guide/using-kubectl.html" >
< a href = "../guide/using-kubectl.html" >
< b > 4.3.2.< / b >
kubectl命令概览
< / a >
< / li >
< li class = "chapter " data-level = "4.3.3" data-path = "../guide/kubectl-cheatsheet.html" >
< a href = "../guide/kubectl-cheatsheet.html" >
< b > 4.3.3.< / b >
kubectl命令技巧大全
< / a >
< / li >
< li class = "chapter " data-level = "4.3.4" data-path = "../guide/using-etcdctl-to-access-kubernetes-data.html" >
< a href = "../guide/using-etcdctl-to-access-kubernetes-data.html" >
< b > 4.3.4.< / b >
2017-12-25 18:15:30 +08:00
使用etcdctl访问kubernetes数据
2017-12-20 19:27:32 +08:00
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "4.4" data-path = "../guide/cluster-security-management.html" >
< a href = "../guide/cluster-security-management.html" >
< b > 4.4.< / b >
集群安全性管理
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "4.4.1" data-path = "../guide/managing-tls-in-a-cluster.html" >
< a href = "../guide/managing-tls-in-a-cluster.html" >
< b > 4.4.1.< / b >
管理集群中的TLS
< / a >
< / li >
< li class = "chapter " data-level = "4.4.2" data-path = "../guide/kubelet-authentication-authorization.html" >
< a href = "../guide/kubelet-authentication-authorization.html" >
< b > 4.4.2.< / b >
kubelet的认证授权
< / a >
< / li >
< li class = "chapter " data-level = "4.4.3" data-path = "../guide/tls-bootstrapping.html" >
< a href = "../guide/tls-bootstrapping.html" >
< b > 4.4.3.< / b >
TLS bootstrap
< / a >
< / li >
< li class = "chapter " data-level = "4.4.4" data-path = "../guide/kubectl-user-authentication-authorization.html" >
< a href = "../guide/kubectl-user-authentication-authorization.html" >
< b > 4.4.4.< / b >
创建用户认证授权的kubeconfig文件
< / a >
< / li >
2018-01-30 12:30:58 +08:00
< li class = "chapter " data-level = "4.4.5" data-path = "../guide/ip-masq-agent.html" >
2017-12-20 19:27:32 +08:00
< a href = "../guide/ip-masq-agent.html" >
2018-01-30 12:30:58 +08:00
< b > 4.4.5.< / b >
2017-12-20 19:27:32 +08:00
IP伪装代理
< / a >
< / li >
2018-01-30 12:30:58 +08:00
< li class = "chapter " data-level = "4.4.6" data-path = "../guide/auth-with-kubeconfig-or-token.html" >
2017-12-20 19:27:32 +08:00
< a href = "../guide/auth-with-kubeconfig-or-token.html" >
2018-01-30 12:30:58 +08:00
< b > 4.4.6.< / b >
2017-12-20 19:27:32 +08:00
使用kubeconfig或token进行用户身份认证
< / a >
< / li >
2018-01-30 12:30:58 +08:00
< li class = "chapter " data-level = "4.4.7" data-path = "../guide/authentication.html" >
2017-12-20 19:27:32 +08:00
< a href = "../guide/authentication.html" >
2018-01-30 12:30:58 +08:00
< b > 4.4.7.< / b >
2017-12-20 19:27:32 +08:00
2018-01-20 16:56:42 +08:00
Kubernetes中的用户与身份认证授权
2017-12-20 19:27:32 +08:00
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "4.5" data-path = "../guide/access-kubernetes-cluster.html" >
< a href = "../guide/access-kubernetes-cluster.html" >
< b > 4.5.< / b >
访问Kubernetes集群
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "4.5.1" data-path = "../guide/access-cluster.html" >
< a href = "../guide/access-cluster.html" >
< b > 4.5.1.< / b >
访问集群
< / a >
< / li >
< li class = "chapter " data-level = "4.5.2" data-path = "../guide/authenticate-across-clusters-kubeconfig.html" >
< a href = "../guide/authenticate-across-clusters-kubeconfig.html" >
< b > 4.5.2.< / b >
使用kubeconfig文件配置跨集群认证
< / a >
< / li >
< li class = "chapter " data-level = "4.5.3" data-path = "../guide/connecting-to-applications-port-forward.html" >
< a href = "../guide/connecting-to-applications-port-forward.html" >
< b > 4.5.3.< / b >
通过端口转发访问集群中的应用程序
< / a >
< / li >
< li class = "chapter " data-level = "4.5.4" data-path = "../guide/service-access-application-cluster.html" >
< a href = "../guide/service-access-application-cluster.html" >
< b > 4.5.4.< / b >
使用service访问群集中的应用程序
< / a >
< / li >
< li class = "chapter " data-level = "4.5.5" data-path = "../guide/accessing-kubernetes-pods-from-outside-of-the-cluster.html" >
< a href = "../guide/accessing-kubernetes-pods-from-outside-of-the-cluster.html" >
< b > 4.5.5.< / b >
从外部访问Kubernetes中的Pod
< / a >
< / li >
2018-01-14 21:13:12 +08:00
< li class = "chapter " data-level = "4.5.6" data-path = "../guide/cabin-mobile-dashboard-for-kubernetes.html" >
2017-12-20 19:27:32 +08:00
2018-01-14 21:13:12 +08:00
< a href = "../guide/cabin-mobile-dashboard-for-kubernetes.html" >
2017-12-20 19:27:32 +08:00
< b > 4.5.6.< / b >
2018-01-14 21:13:12 +08:00
Cabin - Kubernetes手机客户端
2017-12-20 19:27:32 +08:00
< / a >
< / li >
< li class = "chapter " data-level = "4.5.7" data-path = "../guide/kubernetes-desktop-client.html" >
< a href = "../guide/kubernetes-desktop-client.html" >
< b > 4.5.7.< / b >
Kubernetic - Kubernetes桌面客户端
< / a >
2017-12-27 11:58:32 +08:00
< / li >
< li class = "chapter " data-level = "4.5.8" data-path = "../guide/kubernator-kubernetes-ui.html" >
< a href = "../guide/kubernator-kubernetes-ui.html" >
< b > 4.5.8.< / b >
Kubernator - 更底层的Kubernetes UI
< / a >
2017-12-20 19:27:32 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "4.6" data-path = "../guide/application-development-deployment-flow.html" >
< a href = "../guide/application-development-deployment-flow.html" >
< b > 4.6.< / b >
2017-12-30 10:37:40 +08:00
在Kubernetes中开发部署应用
2017-12-20 19:27:32 +08:00
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "4.6.1" data-path = "../guide/deploy-applications-in-kubernetes.html" >
< a href = "../guide/deploy-applications-in-kubernetes.html" >
< b > 4.6.1.< / b >
适用于kubernetes的应用开发部署流程
< / a >
< / li >
< li class = "chapter " data-level = "4.6.2" data-path = "../guide/migrating-hadoop-yarn-to-kubernetes.html" >
< a href = "../guide/migrating-hadoop-yarn-to-kubernetes.html" >
< b > 4.6.2.< / b >
2017-12-30 10:37:40 +08:00
迁移传统应用到Kubernetes中——以Hadoop YARN为例
2017-12-20 19:27:32 +08:00
< / a >
< / li >
< li class = "chapter " data-level = "4.6.3" data-path = "../guide/using-statefulset.html" >
< a href = "../guide/using-statefulset.html" >
< b > 4.6.3.< / b >
使用StatefulSet部署用状态应用
< / a >
< / li >
< / ul >
< / li >
< li class = "header" > 最佳实践< / li >
< li class = "chapter " data-level = "5.1" data-path = "../practice/" >
< a href = "../practice/" >
< b > 5.1.< / b >
最佳实践概览
< / a >
< / li >
< li class = "chapter " data-level = "5.2" data-path = "../practice/install-kubernetes-on-centos.html" >
< a href = "../practice/install-kubernetes-on-centos.html" >
< b > 5.2.< / b >
2017-12-30 10:37:40 +08:00
在CentOS上部署Kubernetes集群
2017-12-20 19:27:32 +08:00
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.2.1" data-path = "../practice/create-tls-and-secret-key.html" >
< a href = "../practice/create-tls-and-secret-key.html" >
< b > 5.2.1.< / b >
创建TLS证书和秘钥
< / a >
< / li >
< li class = "chapter " data-level = "5.2.2" data-path = "../practice/create-kubeconfig.html" >
< a href = "../practice/create-kubeconfig.html" >
< b > 5.2.2.< / b >
创建kubeconfig文件
< / a >
< / li >
< li class = "chapter " data-level = "5.2.3" data-path = "../practice/etcd-cluster-installation.html" >
< a href = "../practice/etcd-cluster-installation.html" >
< b > 5.2.3.< / b >
创建高可用etcd集群
< / a >
< / li >
< li class = "chapter " data-level = "5.2.4" data-path = "../practice/kubectl-installation.html" >
< a href = "../practice/kubectl-installation.html" >
< b > 5.2.4.< / b >
安装kubectl命令行工具
< / a >
< / li >
< li class = "chapter " data-level = "5.2.5" data-path = "../practice/master-installation.html" >
< a href = "../practice/master-installation.html" >
< b > 5.2.5.< / b >
部署master节点
< / a >
< / li >
< li class = "chapter " data-level = "5.2.6" data-path = "../practice/flannel-installation.html" >
< a href = "../practice/flannel-installation.html" >
< b > 5.2.6.< / b >
安装flannel网络插件
< / a >
< / li >
< li class = "chapter " data-level = "5.2.7" data-path = "../practice/node-installation.html" >
< a href = "../practice/node-installation.html" >
< b > 5.2.7.< / b >
部署node节点
< / a >
< / li >
< li class = "chapter " data-level = "5.2.8" data-path = "../practice/kubedns-addon-installation.html" >
< a href = "../practice/kubedns-addon-installation.html" >
< b > 5.2.8.< / b >
安装kubedns插件
< / a >
< / li >
< li class = "chapter " data-level = "5.2.9" data-path = "../practice/dashboard-addon-installation.html" >
< a href = "../practice/dashboard-addon-installation.html" >
< b > 5.2.9.< / b >
安装dashboard插件
< / a >
< / li >
< li class = "chapter " data-level = "5.2.10" data-path = "../practice/heapster-addon-installation.html" >
< a href = "../practice/heapster-addon-installation.html" >
< b > 5.2.10.< / b >
安装heapster插件
< / a >
< / li >
< li class = "chapter " data-level = "5.2.11" data-path = "../practice/efk-addon-installation.html" >
< a href = "../practice/efk-addon-installation.html" >
< b > 5.2.11.< / b >
安装EFK插件
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "5.3" data-path = "../practice/service-discovery-and-loadbalancing.html" >
< a href = "../practice/service-discovery-and-loadbalancing.html" >
< b > 5.3.< / b >
服务发现与负载均衡
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.3.1" data-path = "../practice/traefik-ingress-installation.html" >
< a href = "../practice/traefik-ingress-installation.html" >
< b > 5.3.1.< / b >
安装Traefik ingress
< / a >
< / li >
< li class = "chapter " data-level = "5.3.2" data-path = "../practice/distributed-load-test.html" >
< a href = "../practice/distributed-load-test.html" >
< b > 5.3.2.< / b >
分布式负载测试
< / a >
< / li >
< li class = "chapter " data-level = "5.3.3" data-path = "../practice/network-and-cluster-perfermance-test.html" >
< a href = "../practice/network-and-cluster-perfermance-test.html" >
< b > 5.3.3.< / b >
网络和集群性能测试
< / a >
< / li >
< li class = "chapter " data-level = "5.3.4" data-path = "../practice/edge-node-configuration.html" >
< a href = "../practice/edge-node-configuration.html" >
< b > 5.3.4.< / b >
边缘节点配置
< / a >
< / li >
< li class = "chapter " data-level = "5.3.5" data-path = "../practice/nginx-ingress-installation.html" >
< a href = "../practice/nginx-ingress-installation.html" >
< b > 5.3.5.< / b >
安装Nginx ingress
< / a >
2018-01-03 16:14:36 +08:00
< / li >
< li class = "chapter " data-level = "5.3.6" data-path = "../practice/configuring-dns.html" >
< a href = "../practice/configuring-dns.html" >
< b > 5.3.6.< / b >
2018-01-03 16:26:15 +08:00
配置内置DNS( kube-dns)
2018-01-03 16:14:36 +08:00
< / a >
2017-12-20 19:27:32 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "5.4" data-path = "../practice/operation.html" >
< a href = "../practice/operation.html" >
< b > 5.4.< / b >
运维管理
< / a >
< ul class = "articles" >
2018-03-20 10:59:44 +08:00
< li class = "chapter " data-level = "5.4.1" data-path = "../practice/master-ha.html" >
2017-12-20 19:27:32 +08:00
2018-03-20 10:59:44 +08:00
< a href = "../practice/master-ha.html" >
2017-12-20 19:27:32 +08:00
< b > 5.4.1.< / b >
2018-03-20 10:59:44 +08:00
Master节点高可用
< / a >
< / li >
< li class = "chapter " data-level = "5.4.2" data-path = "../practice/service-rolling-update.html" >
< a href = "../practice/service-rolling-update.html" >
< b > 5.4.2.< / b >
2017-12-20 19:27:32 +08:00
服务滚动升级
< / a >
< / li >
2018-03-20 10:59:44 +08:00
< li class = "chapter " data-level = "5.4.3" data-path = "../practice/app-log-collection.html" >
2017-12-20 19:27:32 +08:00
< a href = "../practice/app-log-collection.html" >
2018-03-20 10:59:44 +08:00
< b > 5.4.3.< / b >
2017-12-20 19:27:32 +08:00
应用日志收集
< / a >
< / li >
2018-03-20 10:59:44 +08:00
< li class = "chapter " data-level = "5.4.4" data-path = "../practice/configuration-best-practice.html" >
2017-12-20 19:27:32 +08:00
< a href = "../practice/configuration-best-practice.html" >
2018-03-20 10:59:44 +08:00
< b > 5.4.4.< / b >
2017-12-20 19:27:32 +08:00
配置最佳实践
< / a >
< / li >
2018-03-20 10:59:44 +08:00
< li class = "chapter " data-level = "5.4.5" data-path = "../practice/monitor.html" >
2017-12-20 19:27:32 +08:00
< a href = "../practice/monitor.html" >
2018-03-20 10:59:44 +08:00
< b > 5.4.5.< / b >
2017-12-20 19:27:32 +08:00
集群及应用监控
< / a >
< / li >
2018-03-20 10:59:44 +08:00
< li class = "chapter " data-level = "5.4.6" data-path = "../practice/data-persistence-problem.html" >
2017-12-20 19:27:32 +08:00
< a href = "../practice/data-persistence-problem.html" >
2018-03-20 10:59:44 +08:00
< b > 5.4.6.< / b >
2017-12-20 19:27:32 +08:00
数据持久化问题
< / a >
< / li >
2018-03-20 10:59:44 +08:00
< li class = "chapter " data-level = "5.4.7" data-path = "../practice/manage-compute-resources-container.html" >
2017-12-20 19:27:32 +08:00
< a href = "../practice/manage-compute-resources-container.html" >
2018-03-20 10:59:44 +08:00
< b > 5.4.7.< / b >
2017-12-20 19:27:32 +08:00
管理容器的计算资源
< / a >
2018-02-24 11:49:48 +08:00
< / li >
2018-03-20 10:59:44 +08:00
< li class = "chapter " data-level = "5.4.8" data-path = "../practice/federation.html" >
2018-02-24 11:49:48 +08:00
< a href = "../practice/federation.html" >
2018-03-20 10:59:44 +08:00
< b > 5.4.8.< / b >
2018-02-24 11:49:48 +08:00
集群联邦
< / a >
2017-12-20 19:27:32 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "5.5" data-path = "../practice/storage.html" >
< a href = "../practice/storage.html" >
< b > 5.5.< / b >
存储管理
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.5.1" data-path = "../practice/glusterfs.html" >
< a href = "../practice/glusterfs.html" >
< b > 5.5.1.< / b >
GlusterFS
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.5.1.1" data-path = "../practice/using-glusterfs-for-persistent-storage.html" >
< a href = "../practice/using-glusterfs-for-persistent-storage.html" >
< b > 5.5.1.1.< / b >
使用GlusterFS做持久化存储
< / a >
< / li >
< li class = "chapter " data-level = "5.5.1.2" data-path = "../practice/storage-for-containers-using-glusterfs-with-openshift.html" >
< a href = "../practice/storage-for-containers-using-glusterfs-with-openshift.html" >
< b > 5.5.1.2.< / b >
在OpenShift中使用GlusterFS做持久化存储
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "5.5.2" data-path = "../practice/cephfs.html" >
< a href = "../practice/cephfs.html" >
< b > 5.5.2.< / b >
CephFS
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.5.2.1" data-path = "../practice/using-ceph-for-persistent-storage.html" >
< a href = "../practice/using-ceph-for-persistent-storage.html" >
< b > 5.5.2.1.< / b >
使用Ceph做持久化存储
< / a >
2018-01-05 16:34:39 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "5.5.3" data-path = "../practice/openebs.html" >
< a href = "../practice/openebs.html" >
< b > 5.5.3.< / b >
OpenEBS
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.5.3.1" data-path = "../practice/using-openebs-for-persistent-storage.html" >
< a href = "../practice/using-openebs-for-persistent-storage.html" >
< b > 5.5.3.1.< / b >
使用OpenEBS做持久化存储
< / a >
2017-12-20 19:27:32 +08:00
< / li >
< / ul >
2018-02-24 22:56:37 +08:00
< / li >
< li class = "chapter " data-level = "5.5.4" data-path = "../practice/rook.html" >
< a href = "../practice/rook.html" >
< b > 5.5.4.< / b >
Rook
< / a >
2017-12-20 19:27:32 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "5.6" data-path = "../practice/monitoring.html" >
< a href = "../practice/monitoring.html" >
< b > 5.6.< / b >
集群与应用监控
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.6.1" data-path = "../practice/heapster.html" >
< a href = "../practice/heapster.html" >
< b > 5.6.1.< / b >
Heapster
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.6.1.1" data-path = "../practice/using-heapster-to-get-object-metrics.html" >
< a href = "../practice/using-heapster-to-get-object-metrics.html" >
< b > 5.6.1.1.< / b >
使用Heapster获取集群和对象的metric数据
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "5.6.2" data-path = "../practice/prometheus.html" >
< a href = "../practice/prometheus.html" >
< b > 5.6.2.< / b >
Prometheus
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.6.2.1" data-path = "../practice/using-prometheus-to-monitor-kuberentes-cluster.html" >
< a href = "../practice/using-prometheus-to-monitor-kuberentes-cluster.html" >
< b > 5.6.2.1.< / b >
使用Prometheus监控kubernetes集群
< / a >
< / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "5.7" data-path = "../practice/services-management-tool.html" >
< a href = "../practice/services-management-tool.html" >
< b > 5.7.< / b >
服务编排管理
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.7.1" data-path = "../practice/helm.html" >
< a href = "../practice/helm.html" >
< b > 5.7.1.< / b >
使用Helm管理kubernetes应用
< / a >
< / li >
< li class = "chapter " data-level = "5.7.2" data-path = "../practice/create-private-charts-repo.html" >
< a href = "../practice/create-private-charts-repo.html" >
< b > 5.7.2.< / b >
构建私有Chart仓库
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "5.8" data-path = "../practice/ci-cd.html" >
< a href = "../practice/ci-cd.html" >
< b > 5.8.< / b >
持续集成与发布
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.8.1" data-path = "../practice/jenkins-ci-cd.html" >
< a href = "../practice/jenkins-ci-cd.html" >
< b > 5.8.1.< / b >
使用Jenkins进行持续集成与发布
< / a >
< / li >
< li class = "chapter " data-level = "5.8.2" data-path = "../practice/drone-ci-cd.html" >
< a href = "../practice/drone-ci-cd.html" >
< b > 5.8.2.< / b >
使用Drone进行持续集成与发布
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "5.9" data-path = "../practice/update-and-upgrade.html" >
< a href = "../practice/update-and-upgrade.html" >
< b > 5.9.< / b >
更新与升级
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "5.9.1" data-path = "../practice/manually-upgrade.html" >
< a href = "../practice/manually-upgrade.html" >
< b > 5.9.1.< / b >
2017-12-30 10:37:40 +08:00
手动升级Kubernetes集群
2017-12-20 19:27:32 +08:00
< / a >
< / li >
< li class = "chapter " data-level = "5.9.2" data-path = "../practice/dashboard-upgrade.html" >
< a href = "../practice/dashboard-upgrade.html" >
< b > 5.9.2.< / b >
升级dashboard
< / a >
< / li >
< / ul >
< / li >
< li class = "header" > 领域应用< / li >
< li class = "chapter " data-level = "6.1" data-path = "../usecases/" >
< a href = "../usecases/" >
< b > 6.1.< / b >
领域应用概览
< / a >
< / li >
< li class = "chapter " data-level = "6.2" data-path = "../usecases/microservices.html" >
< a href = "../usecases/microservices.html" >
< b > 6.2.< / b >
微服务架构
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "6.2.1" data-path = "../usecases/service-discovery-in-microservices.html" >
< a href = "../usecases/service-discovery-in-microservices.html" >
< b > 6.2.1.< / b >
微服务中的服务发现
< / 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-12-20 19:27:32 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "6.3" data-path = "../usecases/service-mesh.html" >
< a href = "../usecases/service-mesh.html" >
< b > 6.3.< / b >
Service Mesh 服务网格
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "6.3.1" data-path = "../usecases/istio.html" >
< a href = "../usecases/istio.html" >
< b > 6.3.1.< / b >
Istio
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "6.3.1.1" data-path = "../usecases/istio-installation.html" >
< a href = "../usecases/istio-installation.html" >
< b > 6.3.1.1.< / b >
安装并试用Istio service mesh
< / a >
< / li >
< li class = "chapter " data-level = "6.3.1.2" data-path = "../usecases/configuring-request-routing.html" >
< a href = "../usecases/configuring-request-routing.html" >
< b > 6.3.1.2.< / b >
配置请求的路由规则
< / a >
< / li >
< li class = "chapter " data-level = "6.3.1.3" data-path = "../usecases/install-and-expand-istio-mesh.html" >
< a href = "../usecases/install-and-expand-istio-mesh.html" >
< b > 6.3.1.3.< / b >
安装和拓展Istio service mesh
< / a >
< / li >
< li class = "chapter " data-level = "6.3.1.4" data-path = "../usecases/integrating-vms.html" >
< a href = "../usecases/integrating-vms.html" >
< b > 6.3.1.4.< / b >
集成虚拟机
< / 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 >
2017-12-20 19:27:32 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "6.3.2" data-path = "../usecases/linkerd.html" >
< a href = "../usecases/linkerd.html" >
< b > 6.3.2.< / b >
Linkerd
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "6.3.2.1" data-path = "../usecases/linkerd-user-guide.html" >
< a href = "../usecases/linkerd-user-guide.html" >
< b > 6.3.2.1.< / b >
Linkerd 使用指南
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "6.3.3" data-path = "../usecases/conduit.html" >
< a href = "../usecases/conduit.html" >
< b > 6.3.3.< / b >
Conduit
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "6.3.3.1" data-path = "../usecases/conduit-overview.html" >
< a href = "../usecases/conduit-overview.html" >
< b > 6.3.3.1.< / b >
Condiut概览
< / a >
< / li >
< li class = "chapter " data-level = "6.3.3.2" data-path = "../usecases/conduit-installation.html" >
< a href = "../usecases/conduit-installation.html" >
< b > 6.3.3.2.< / b >
安装Conduit
< / a >
< / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "6.4" data-path = "../usecases/big-data.html" >
< a href = "../usecases/big-data.html" >
< b > 6.4.< / b >
大数据
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "6.4.1" data-path = "../usecases/spark-standalone-on-kubernetes.html" >
< a href = "../usecases/spark-standalone-on-kubernetes.html" >
< b > 6.4.1.< / b >
Spark standalone on Kubernetes
< / a >
< / li >
< li class = "chapter " data-level = "6.4.2" data-path = "../usecases/running-spark-with-kubernetes-native-scheduler.html" >
< a href = "../usecases/running-spark-with-kubernetes-native-scheduler.html" >
< b > 6.4.2.< / b >
2017-12-30 10:37:40 +08:00
运行支持Kubernetes原生调度的Spark程序
2017-12-20 19:27:32 +08:00
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "6.5" data-path = "../usecases/serverless.html" >
< a href = "../usecases/serverless.html" >
< b > 6.5.< / b >
Serverless架构
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "6.5.1" data-path = "../usecases/understanding-serverless.html" >
< a href = "../usecases/understanding-serverless.html" >
< b > 6.5.1.< / b >
理解Serverless
< / a >
< / li >
< li class = "chapter " data-level = "6.5.2" data-path = "../usecases/faas.html" >
< a href = "../usecases/faas.html" >
< b > 6.5.2.< / b >
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-20 19:27:32 +08:00
2017-12-26 21:24:28 +08:00
< a href = "../usecases/openfaas-quick-start.html" >
2017-12-20 19:27:32 +08:00
< b > 6.5.2.1.< / b >
2017-12-26 21:24:28 +08:00
OpenFaaS快速入门指南
2017-12-20 19:27:32 +08:00
< / a >
< / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "6.6" data-path = "../usecases/edge-computing.html" >
< a href = "../usecases/edge-computing.html" >
< b > 6.6.< / b >
边缘计算
< / a >
< / li >
< li class = "header" > 开发指南< / li >
< li class = "chapter " data-level = "7.1" data-path = "../develop/" >
< a href = "../develop/" >
< b > 7.1.< / b >
开发指南概览
< / a >
< / li >
< li class = "chapter " data-level = "7.2" data-path = "../develop/sigs-and-working-group.html" >
< a href = "../develop/sigs-and-working-group.html" >
< b > 7.2.< / b >
SIG和工作组
< / a >
< / li >
< li class = "chapter " data-level = "7.3" data-path = "../develop/developing-environment.html" >
< a href = "../develop/developing-environment.html" >
< b > 7.3.< / b >
开发环境搭建
< / 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-12-20 19:27:32 +08:00
2018-02-01 17:32:19 +08:00
< a href = "../develop/using-vagrant-and-virtualbox-for-development.html" >
2017-12-20 19:27:32 +08:00
< b > 7.4.< / b >
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-12-20 19:27:32 +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-12-20 19:27:32 +08:00
< a href = "../develop/client-go-sample.html" >
2018-02-01 17:32:19 +08:00
< b > 7.6.< / b >
2017-12-20 19:27:32 +08:00
client-go示例
< / a >
< / li >
2018-02-01 17:32:19 +08:00
< li class = "chapter " data-level = "7.7" data-path = "../develop/operator.html" >
2017-12-20 19:27:32 +08:00
2018-01-09 19:14:30 +08:00
< a href = "../develop/operator.html" >
2017-12-20 19:27:32 +08:00
2018-02-01 17:32:19 +08:00
< b > 7.7.< / b >
2017-12-20 19:27:32 +08:00
2018-01-09 19:14:30 +08:00
Operator
< / a >
< / li >
2018-02-11 10:00:15 +08:00
< li class = "chapter " data-level = "7.8" data-path = "../develop/advance-developer.html" >
2018-01-09 19:14:30 +08:00
2018-02-11 10:00:15 +08:00
< a href = "../develop/advance-developer.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-02-11 10:00:15 +08:00
高级开发指南
< / a >
< / li >
< li class = "chapter " data-level = "7.9" data-path = "../develop/contribute.html" >
< a href = "../develop/contribute.html" >
< b > 7.9.< / b >
2017-12-20 19:27:32 +08:00
社区贡献
< / a >
< / li >
2018-02-11 10:00:15 +08:00
< li class = "chapter " data-level = "7.10" data-path = "../develop/minikube.html" >
2017-12-20 19:27:32 +08:00
< a href = "../develop/minikube.html" >
2018-02-11 10:00:15 +08:00
< b > 7.10.< / b >
2017-12-20 19:27:32 +08:00
Minikube
< / a >
< / li >
< li class = "header" > 附录< / li >
< li class = "chapter " data-level = "8.1" data-path = "../appendix/" >
< a href = "../appendix/" >
< b > 8.1.< / b >
附录说明
< / a >
< / li >
< li class = "chapter " data-level = "8.2" data-path = "../appendix/debug-kubernetes-services.html" >
< a href = "../appendix/debug-kubernetes-services.html" >
< b > 8.2.< / b >
Kubernetes中的应用故障排查
< / a >
< / li >
< li class = "chapter " data-level = "8.3" data-path = "../appendix/material-share.html" >
< a href = "../appendix/material-share.html" >
< b > 8.3.< / b >
Kubernetes相关资讯和情报链接
< / a >
< / li >
< li class = "chapter " data-level = "8.4" data-path = "../appendix/docker-best-practice.html" >
< a href = "../appendix/docker-best-practice.html" >
< b > 8.4.< / b >
Docker最佳实践
< / a >
< / li >
< li class = "chapter " data-level = "8.5" data-path = "../appendix/tricks.html" >
< a href = "../appendix/tricks.html" >
< b > 8.5.< / b >
使用技巧
< / a >
< / li >
< li class = "chapter " data-level = "8.6" data-path = "../appendix/issues.html" >
< a href = "../appendix/issues.html" >
< b > 8.6.< / b >
问题记录
< / a >
< / li >
< li class = "chapter " data-level = "8.7" data-path = "../appendix/kubernetes-changelog.html" >
< a href = "../appendix/kubernetes-changelog.html" >
< b > 8.7.< / b >
2017-12-30 10:37:40 +08:00
Kubernetes版本更新日志
2017-12-20 19:27:32 +08:00
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "8.7.1" data-path = "../appendix/kubernetes-1.7-changelog.html" >
< a href = "../appendix/kubernetes-1.7-changelog.html" >
< b > 8.7.1.< / b >
Kubernetes1.7更新日志
< / a >
< / li >
< li class = "chapter " data-level = "8.7.2" data-path = "../appendix/kubernetes-1.8-changelog.html" >
< a href = "../appendix/kubernetes-1.8-changelog.html" >
< b > 8.7.2.< / b >
Kubernetes1.8更新日志
< / a >
< / li >
< li class = "chapter " data-level = "8.7.3" data-path = "../appendix/kubernetes-1.9-changelog.html" >
< a href = "../appendix/kubernetes-1.9-changelog.html" >
< b > 8.7.3.< / b >
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-20 19:27:32 +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 >
2017-12-20 19:27:32 +08:00
< li class = "divider" > < / li >
< li >
< a href = "https://www.gitbook.com" target = "blank" class = "gitbook-link" >
本书使用 GitBook 发布
< / a >
< / li >
< / ul >
< / nav >
< / div >
< div class = "book-body" >
< div class = "body-inner" >
< div class = "book-header" role = "navigation" >
<!-- Title -->
< h1 >
< i class = "fa fa-circle-o-notch fa-spin" > < / i >
< a href = ".." > 云原生应用之路——从Kubernetes到Cloud Native< / a >
< / h1 >
< / div >
< div class = "page-wrapper" tabindex = "-1" role = "main" >
< div class = "page-inner" >
< div class = "search-plus" id = "book-search-results" >
< div class = "search-noresults" >
< section class = "normal markdown-section" >
< h1 id = "云原生应用之路——从kubernetes到cloud-native" > 云 原 生 应 用 之 路 — — 从 Kubernetes到 Cloud Native< / h1 >
2018-02-23 08:22:07 +08:00
< p > < strong > 从 Kubernetes到 Cloud Native— — 云 原 生 应 用 之 路 < / strong > , 这 是 我 最 近 在 < a href = "http://bj2017.archsummit.com/presentation/306" target = "_blank" > ArchSummit2017北 京 站 < / a > 和 < a href = "https://www.kubernetes.org.cn/3211.html" target = "_blank" > 数 人 云 & TalkingData合 办 的 Service Mesh is coming meetup< / a > 中 分 享 的 话 题 。 < / p >
2017-12-20 19:27:32 +08:00
< p > 本 文 简 要 介 绍 了 容 器 技 术 发 展 的 路 径 , 为 何 Kubernetes的 出 现 是 容 器 技 术 发 展 到 这 一 步 的 必 然 选 择 , 而 为 何 Kuberentes又 将 成 为 云 原 生 应 用 的 基 石 。 < / p >
< p > 我 的 分 享 按 照 这 样 的 主 线 展 开 : 容 器 -> Kubernetes-> 微 服 务 -> Cloud Native( 云 原 生 ) -> Service Mesh( 服 务 网 格 ) -> 使 用 场 景 -> Open Source( 开 源 ) 。 < / p >
< h2 id = "容器" > 容 器 < / h2 >
< blockquote >
< p > 容 器 — — Cloud Native的 基 石 < / p >
< / blockquote >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.1" > < img src = "https://res.cloudinary.com/jimmysong/image/upload/images/cloud-native-container-lab.jpg" alt = "Cloud Native容器实验室" > < figcaption > 图 片 - Cloud Native容 器 实 验 室 < / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 容 器 最 初 是 通 过 开 发 者 工 具 而 流 行 , 可 以 使 用 它 来 做 隔 离 的 开 发 测 试 环 境 和 持 续 集 成 环 境 , 这 些 都 是 因 为 容 器 轻 量 级 , 易 于 配 置 和 使 用 带 来 的 优 势 , docker和 docker-compose这 样 的 工 具 极 大 的 方 便 的 了 应 用 开 发 环 境 的 搭 建 , 开 发 者 就 像 是 化 学 家 一 样 在 其 中 小 心 翼 翼 的 进 行 各 种 调 试 和 开 发 。 < / p >
< p > 随 着 容 器 的 在 开 发 者 中 的 普 及 , 已 经 大 家 对 CI流 程 的 熟 悉 , 容 器 周 边 的 各 种 工 具 蓬 勃 发 展 , 俨 然 形 成 了 一 个 小 生 态 , 在 2016年 达 到 顶 峰 , 下 面 这 张 是 我 画 的 容 器 生 态 图 : < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.2" > < img src = "../images/container-ecosystem.png" alt = "容器生态图 Container ecosystem" > < figcaption > 图 片 - 容 器 生 态 图 Container ecosystem< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 该 生 态 涵 盖 了 容 器 应 用 中 从 镜 像 仓 库 、 服 务 编 排 、 安 全 管 理 、 持 续 集 成 与 发 布 、 存 储 和 网 络 管 理 等 各 个 方 面 , 随 着 在 单 主 机 中 运 行 容 器 的 成 熟 , 集 群 管 理 和 容 器 编 排 成 为 容 器 技 术 亟 待 解 决 的 问 题 。 譬 如 化 学 家 在 实 验 室 中 研 究 出 来 的 新 产 品 , 如 何 推 向 市 场 , 进 行 大 规 模 生 产 , 成 了 新 的 议 题 。 < / p >
< h2 id = "为什么使用kubernetes" > 为 什 么 使 用 Kubernetes< / h2 >
< blockquote >
< p > Kubernetes— — 让 容 器 应 用 进 入 大 规 模 工 业 生 产 。 < / p >
< / blockquote >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.3" > < img src = "https://res.cloudinary.com/jimmysong/image/upload/images/cloud-native-oil-well.jpg" alt = "Cloud Native油井" > < figcaption > 图 片 - Cloud Native油 井 < / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > < strong > Kubernetes是 容 器 编 排 系 统 的 事 实 标 准 < / strong > < / p >
2017-12-20 22:31:39 +08:00
< p > 在 单 机 上 运 行 容 器 , 无 法 发 挥 它 的 最 大 效 能 , 只 有 形 成 集 群 , 才 能 最 大 程 度 发 挥 容 器 的 良 好 隔 离 、 资 源 分 配 与 编 排 管 理 的 优 势 , 而 对 于 容 器 的 编 排 管 理 , Swarm、 Mesos和 Kubernetes的 大 战 已 经 基 本 宣 告 结 束 , kubernetes成 为 了 无 可 争 议 的 赢 家 。 < / p >
2017-12-20 19:27:32 +08:00
< p > 下 面 这 张 图 是 Kubernetes的 架 构 图 ( 图 片 来 自 网 络 ) , 其 中 显 示 了 组 件 之 间 交 互 的 接 口 CNI、 CRI、 OCI等 , 这 些 将 Kubernetes与 某 款 具 体 产 品 解 耦 , 给 用 户 最 大 的 定 制 程 度 , 使 得 Kubernetes有 机 会 成 为 跨 云 的 真 正 的 云 原 生 应 用 的 操 作 系 统 。 < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.4" > < img src = "../images/kubernetes-high-level-component-archtecture.jpg" alt = "Kuberentes架构" > < figcaption > 图 片 - Kuberentes架 构 < / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 随 着 Kubernetes的 日 趋 成 熟 , “ Kubernetes is becoming boring” , 基 于 该 “ 操 作 系 统 ” 之 上 构 建 的 适 用 于 不 同 场 景 的 应 用 将 成 为 新 的 发 展 方 向 , 就 像 我 们 将 石 油 开 采 出 来 后 , 提 炼 出 汽 油 、 柴 油 、 沥 青 等 等 , 所 有 的 材 料 都 将 找 到 自 己 的 用 途 , Kubernetes也 是 , 毕 竟 我 们 谁 也 不 是 为 了 部 署 和 管 理 容 器 而 用 Kubernetes, 承 载 其 上 的 应 用 才 是 价 值 之 所 在 。 < / p >
< p > < strong > 云 原 生 的 核 心 目 标 < / strong > < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.5" > < img src = "../images/cloud-native-core-target.jpg" alt = "Cloud Native Core target" > < figcaption > 图 片 - Cloud Native Core target< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 云 已 经 可 以 为 我 们 提 供 稳 定 可 以 唾 手 可 得 的 基 础 设 施 , 但 是 业 务 上 云 成 了 一 个 难 题 , Kubernetes的 出 现 与 其 说 是 从 最 初 的 容 器 编 排 解 决 方 案 , 倒 不 如 说 是 为 了 解 决 应 用 上 云 ( 即 云 原 生 应 用 ) 这 个 难 题 。 < / p >
< p > 包 括 微 服 务 和 FaaS/Serverless架 构 , 都 可 以 作 为 云 原 生 应 用 的 架 构 。 < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.6" > < img src = "../images/redpoint-faas-landscape.jpg" alt = "FaaS Landscape" > < figcaption > 图 片 - FaaS Landscape< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 但 就 2017年 为 止 , kubernetes的 主 要 使 用 场 景 也 主 要 作 为 应 用 开 发 测 试 环 境 、 CI/CD和 运 行 Web应 用 这 几 个 领 域 , 如 下 图 < a href = "http://thenewstack.io" target = "_blank" > TheNewStack< / a > 的 Kubernetes生 态 状 况 调 查 报 告 所 示 。 < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.7" > < img src = "https://res.cloudinary.com/jimmysong/image/upload/images/workloads-running-on-kubernetes-2017-thenewstack.jpg" alt = "Workloads running on Kubernetes" > < figcaption > 图 片 - Workloads running on Kubernetes< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 另 外 基 于 Kubernetes的 构 建 PaaS平 台 和 Serverless也 处 于 爆 发 的 准 备 的 阶 段 , 如 下 图 中 Gartner的 报 告 中 所 示 : < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.8" > < img src = "https://res.cloudinary.com/jimmysong/image/upload/images/gartner-hype-cycle-for-emerging-technologies-2017.jpg" alt = "Gartner技术爆发趋势图2017" > < figcaption > 图 片 - Gartner技 术 爆 发 趋 势 图 2017< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 当 前 各 大 公 有 云 如 Google GKE、 微 软 Azure ACS、 亚 马 逊 EKS( 2018年 上 线 ) 、 VmWare、 Pivotal、 腾 讯 云 、 阿 里 云 等 都 提 供 了 Kuberentes服 务 。 < / p >
< h2 id = "微服务" > 微 服 务 < / h2 >
< blockquote >
< p > 微 服 务 — — Cloud Native的 应 用 架 构 。 < / p >
< / blockquote >
< p > 下 图 是 < a href = "https://developers.redhat.com/blog/author/bibryam/" target = "_blank" > Bilgin Ibryam< / a > 给 出 的 微 服 务 中 应 该 关 心 的 主 题 , 图 片 来 自 < a href = "https://developers.redhat.com/blog/2016/12/09/spring-cloud-for-microservices-compared-to-kubernetes/" target = "_blank" > RedHat Developers< / a > 。 < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.9" > < img src = "../images/microservices-concerns.jpg" alt = "Microservices concerns" > < figcaption > 图 片 - Microservices concerns< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 微 服 务 带 给 我 们 很 多 开 发 和 部 署 上 的 灵 活 性 和 技 术 多 样 性 , 但 是 也 增 加 了 服 务 调 用 的 开 销 、 分 布 式 系 统 管 理 、 调 试 与 服 务 治 理 方 面 的 难 题 。 < / p >
< p > 当 前 最 成 熟 最 完 整 的 微 服 务 框 架 可 以 说 非 < a href = "https://spring.io/" target = "_blank" > Spring< / a > 莫 属 , 而 Spring又 仅 限 于 Java语 言 开 发 , 其 架 构 本 身 又 跟 Kubernetes存 在 很 多 重 合 的 部 分 , 如 何 探 索 将 Kubernetes作 为 微 服 务 架 构 平 台 就 成 为 一 个 热 点 话 题 。 < / p >
< p > 就 拿 微 服 务 中 最 基 础 的 < strong > 服 务 注 册 发 现 < / strong > 功 能 来 说 , 其 方 式 分 为 < strong > 客 户 端 服 务 发 现 < / strong > 和 < strong > 服 务 端 服 务 发 现 < / strong > 两 种 , Java应 用 中 常 用 的 方 式 是 使 用 Eureka和 Ribbon做 服 务 注 册 发 现 和 负 载 均 衡 , 这 属 于 客 户 端 服 务 发 现 , 而 在 Kubernetes中 则 可 以 使 用 DNS、 Service和 Ingress来 实 现 , 不 需 要 修 改 应 用 代 码 , 直 接 从 网 络 层 面 来 实 现 。 < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.10" > < img src = "../images/service-discovery-in-microservices.png" alt = "两种服务发现方式" > < figcaption > 图 片 - 两 种 服 务 发 现 方 式 < / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< h2 id = "cloud-native" > Cloud Native< / h2 >
< blockquote >
< p > DevOps— — 通 向 云 原 生 的 云 梯 < / p >
< / blockquote >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.11" > < img src = "https://res.cloudinary.com/jimmysong/image/upload/images/cloud-natvie-pipeline.jpg" alt = "Cloud Native Pipeline" > < figcaption > 图 片 - Cloud Native Pipeline< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > CNCF( 云 原 生 计 算 基 金 会 ) 给 出 了 云 原 生 应 用 的 三 大 特 征 : < / p >
< ul >
< li > < strong > 容 器 化 包 装 < / strong > : 软 件 应 用 的 进 程 应 该 包 装 在 容 器 中 独 立 运 行 。 < / li >
< li > < strong > 动 态 管 理 < / strong > : 通 过 集 中 式 的 编 排 调 度 系 统 来 动 态 的 管 理 和 调 度 。 < / li >
< li > < strong > 微 服 务 化 < / strong > : 明 确 服 务 间 的 依 赖 , 互 相 解 耦 。 < / li >
< / ul >
< p > 下 图 是 我 整 理 的 关 于 云 原 生 所 需 要 的 能 力 和 特 征 。 < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.12" > < img src = "https://jimmysong.io/kubernetes-handbook/images/cloud-native-architecutre-mindnode.jpg" alt = "Cloud Native Features" > < figcaption > 图 片 - Cloud Native Features< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > < a href = "https://cncf.io" target = "_blank" > CNCF< / a > 所 托 管 的 应 用 ( 目 前 已 达 12个 ) , 即 朝 着 这 个 目 标 发 展 , 其 公 布 的 < a href = "https://github.com/cncf/landscape" target = "_blank" > Cloud Native Landscape< / a > , 给 出 了 云 原 生 生 态 的 参 考 体 系 。 < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.13" > < img src = "https://raw.githubusercontent.com/cncf/landscape/master/landscape/CloudNativeLandscape_v1.0.jpg" alt = "Cloud Native Landscape v1.0" > < figcaption > 图 片 - Cloud Native Landscape v1.0< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > < strong > 使 用 Kubernetes构 建 云 原 生 应 用 < / strong > < / p >
< p > 我 们 都 是 知 道 Heroku推 出 了 适 用 于 PaaS的 < a href = "https://12factor.net/" target = "_blank" > 12 factor app< / a > 的 规 范 , 包 括 如 下 要 素 : < / p >
< ol >
< li > 基 准 代 码 < / li >
< li > 依 赖 管 理 < / li >
< li > 配 置 < / li >
< li > 后 端 服 务 < / li >
< li > 构 建 , 发 布 , 运 行 < / li >
< li > 无 状 态 进 程 < / li >
< li > 端 口 绑 定 < / li >
< li > 并 发 < / li >
< li > 易 处 理 < / li >
< li > 开 发 环 境 与 线 上 环 境 等 价 < / li >
< li > 日 志 作 为 事 件 流 < / li >
< li > 管 理 进 程 < / li >
< / ol >
< p > 另 外 还 有 补 充 的 三 点 : < / p >
< ul >
< li > API声 明 管 理 < / li >
< li > 认 证 和 授 权 < / li >
< li > 监 控 与 告 警 < / li >
< / ul >
< p > 如 果 落 实 的 具 体 的 工 具 , 请 看 下 图 , 使 用 Kubernetes构 建 云 原 生 架 构 : < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.14" > < img src = "../images/building-cloud-native-architecture-with-kubernetes.png" alt = "Building a Cloud Native Architecture with Kubernetes followed 12 factor app" > < figcaption > 图 片 - Building a Cloud Native Architecture with Kubernetes followed 12 factor app< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 结 合 这 12因 素 对 开 发 或 者 改 造 后 的 应 用 适 合 部 署 到 Kubernetes之 上 , 基 本 流 程 如 下 图 所 示 : < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.15" > < img src = "../images/creating-kubernetes-native-app.jpg" alt = "Creating Kubernetes native app" > < figcaption > 图 片 - Creating Kubernetes native app< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > < strong > 迁 移 到 云 架 构 < / strong > < / p >
< p > 迁 移 到 云 端 架 构 , 相 对 单 体 架 构 来 说 会 带 来 很 多 挑 战 。 比 如 自 动 的 持 续 集 成 与 发 布 、 服 务 监 控 的 变 革 、 服 务 暴 露 、 权 限 的 管 控 等 。 这 些 具 体 细 节 请 参 考 < strong > Kubernetes-handbook< / strong > 中 的 说 明 : < a href = "https://jimmysong.io/kubernetes-handbook" target = "_blank" > https://jimmysong.io/kubernetes-handbook< / a > , 在 此 就 不 细 节 展 开 , 另 外 推 荐 一 本 我 翻 译 的 由 Pivotal出 品 的 电 子 书 — — < a href = "https://content.pivotal.io/ebooks/migrating-to-cloud-native-application-architectures" target = "_blank" > Migrating to Cloud Native Application Architectures< / a > , 地 址 : < a href = "https://jimmysong.io/migrating-to-cloud-native-application-architectures/" target = "_blank" > https://jimmysong.io/migrating-to-cloud-native-application-architectures/< / a > 。 < / p >
< h2 id = "service-mesh" > Service Mesh< / h2 >
< blockquote >
< p > Services for show, meshes for a pro.< / p >
< / blockquote >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.16" > < img src = "https://res.cloudinary.com/jimmysong/image/upload/images/service-meshes-pro.jpg" alt = "Service Mesh中国社区slogan" > < figcaption > 图 片 - Service Mesh中 国 社 区 slogan< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > Kubernetes中 的 应 用 将 作 为 微 服 务 运 行 , 但 是 Kuberentes本 身 并 没 有 给 出 微 服 务 治 理 的 解 决 方 案 , 比 如 服 务 的 限 流 、 熔 断 、 良 好 的 灰 度 发 布 支 持 等 。 < / p >
< p > < strong > Service mesh可 以 用 来 做 什 么 < / strong > < / p >
< ul >
< li > Traffic Management: API网 关 < / li >
< li > Observability: 服 务 调 用 和 性 能 分 析 < / li >
< li > Policy Enforcment: 控 制 服 务 访 问 策 略 < / li >
< li > Service Identity and Security: 安 全 保 护 < / li >
< / ul >
< p > < strong > Service mesh的 特 点 < / strong > < / p >
< ul >
< li > 专 用 的 基 础 设 施 层 < / li >
< li > 轻 量 级 高 性 能 网 络 代 理 < / li >
< li > 提 供 安 全 的 、 快 速 的 、 可 靠 地 服 务 间 通 讯 < / li >
< li > 扩 展 kubernetes的 应 用 负 载 均 衡 机 制 , 实 现 灰 度 发 布 < / li >
< li > 完 全 解 耦 于 应 用 , 应 用 可 以 无 感 知 , 加 速 应 用 的 微 服 务 和 云 原 生 转 型 < / li >
< / ul >
< p > 使 用 Service Mesh将 可 以 有 效 的 治 理 Kuberentes中 运 行 的 服 务 , 当 前 开 源 的 Service Mesh有 : < / p >
< ul >
< li > Linkderd: < a href = "https://linkerd.io" target = "_blank" > https://linkerd.io< / a > , 由 最 早 提 出 Service Mesh的 公 司 < a href = "https://buoyant.io" target = "_blank" > Buoyant< / a > 开 源 , 创 始 人 来 自 Twitter< / li >
< li > Envoy: < a href = "https://www.envoyproxy.io/" target = "_blank" > https://www.envoyproxy.io/< / a > , Lyft开 源 的 , 可 以 在 Istio中 使 用 Sidecar模 式 运 行 < / li >
< li > Istio: < a href = "https://istio.io" target = "_blank" > https://istio.io< / a > , 由 Google、 IBM、 Lyft联 合 开 发 并 开 源 < / li >
< li > Conduit: < a href = "https://conduit.io" target = "_blank" > https://conduit.io< / a > , 同 样 由 Buoyant开 源 的 轻 量 级 的 基 于 Kubernetes的 Service Mesh< / li >
< / ul >
< p > 此 外 还 有 很 多 其 它 的 Service Mesh鱼 贯 而 出 , 请 参 考 < a href = "https://jimmysong.io/awesome-cloud-native" target = "_blank" > awesome-cloud-native< / a > 。 < / p >
< p > < strong > Istio VS Linkerd< / strong > < / p >
< p > Linkerd和 Istio是 最 早 开 源 的 Service Mesh, 它 们 都 支 持 Kubernetes, 下 面 是 它 们 之 间 的 一 些 特 性 对 比 。 < / p >
< table >
< thead >
< tr >
< th > < strong > Feature< / strong > < / th >
< th > < strong > Istio< / strong > < / th >
< th > < strong > Linkerd< / strong > < / th >
< / tr >
< / thead >
< tbody >
< tr >
< td > 部 署 架 构 < / td >
< td > Envoy/Sidecar< / td >
< td > DaemonSets< / td >
< / tr >
< tr >
< td > 易 用 性 < / td >
< td > 复 杂 < / td >
< td > 简 单 < / td >
< / tr >
< tr >
< td > 支 持 平 台 < / td >
< td > kuberentes< / td >
< td > kubernetes/mesos/Istio/local< / td >
< / tr >
< tr >
< td > 当 前 版 本 < / td >
< td > 0.3.0< / td >
< td > 1.3.3< / td >
< / tr >
< tr >
< td > 是 否 已 有 生 产 部 署 < / td >
< td > 否 < / td >
< td > 是 < / td >
< / tr >
< / tbody >
< / table >
< p > 关 于 两 者 的 架 构 可 以 参 考 各 自 的 官 方 文 档 , 我 只 从 其 在 kubernetes上 的 部 署 结 构 来 说 明 其 区 别 。 < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.17" > < img src = "../images/istio-vs-linkerd.jpg" alt = "istio vs linkerd" > < figcaption > 图 片 - istio vs linkerd< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > Istio的 组 件 复 杂 , 可 以 分 别 部 署 的 kubernetes集 群 中 , 但 是 作 为 核 心 路 由 组 件 < strong > Envoy< / strong > 是 以 < strong > Sidecar< / strong > 形 式 与 应 用 运 行 在 同 一 个 Pod中 的 , 所 有 进 入 该 Pod中 的 流 量 都 需 要 先 经 过 Envoy。 < / p >
< p > Linker的 部 署 十 分 简 单 , 本 身 就 是 一 个 镜 像 , 使 用 Kubernetes的 < a href = "https://jimmysong.io/kubernetes-handbook/concepts/daemonset.html" target = "_blank" > DaemonSet< / a > 方 式 在 每 个 node节 点 上 运 行 。 < / p >
< p > 更 多 信 息 请 参 考 < a href = "https://jimmysong.io/kubernetes-handbook" target = "_blank" > kubernetes-handbook< / a > 。 < / p >
< h2 id = "使用场景" > 使 用 场 景 < / h2 >
< blockquote >
< p > Cloud Native的 大 规 模 工 业 生 产 < / p >
< / blockquote >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.18" > < img src = "https://res.cloudinary.com/jimmysong/image/upload/images/cloud-native-factory.jpg" alt = "Cloud Native factory" > < figcaption > 图 片 - Cloud Native factory< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > < strong > GitOps< / strong > < / p >
< p > 给 开 发 者 带 来 最 大 配 置 和 上 线 的 灵 活 性 , 践 行 DevOps流 程 , 改 善 研 发 效 率 , 下 图 这 样 的 情 况 将 更 少 发 生 。 < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.19" > < img src = "https://res.cloudinary.com/jimmysong/image/upload/images/deployment-pipeline-comic.jpg" alt = "Deployment pipeline" > < figcaption > 图 片 - Deployment pipeline< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 我 们 知 道 Kubernetes中 的 所 有 应 用 的 部 署 都 是 基 于 YAML文 件 的 , 这 实 际 上 就 是 一 种 < strong > Infrastructure as code< / strong > , 完 全 可 以 通 过 Git来 管 控 基 础 设 施 和 部 署 环 境 的 变 更 。 < / p >
< p > < strong > Big Data< / strong > < / p >
< p > Spark现 在 已 经 非 官 方 支 持 了 基 于 Kuberentes的 原 生 调 度 , 其 具 有 以 下 特 点 : < / p >
< ul >
< li > Kubernetes原 生 调 度 : 与 yarn、 mesos同 级 < / li >
< li > 资 源 隔 离 , 粒 度 更 细 : 以 namespace来 划 分 用 户 < / li >
< li > 监 控 的 变 革 : 单 次 任 务 资 源 计 量 < / li >
< li > 日 志 的 变 革 : pod的 日 志 收 集 < / li >
< / ul >
< table >
< thead >
< tr >
< th > < strong > Feature< / strong > < / th >
< th > < strong > Yarn< / strong > < / th >
< th > < strong > Kubernetes< / strong > < / th >
< / tr >
< / thead >
< tbody >
< tr >
< td > queue< / td >
< td > queue< / td >
< td > namespace< / td >
< / tr >
< tr >
< td > instance< / td >
< td > ExcutorContainer< / td >
< td > Executor Pod< / td >
< / tr >
< tr >
< td > network< / td >
< td > host< / td >
< td > plugin< / td >
< / tr >
< tr >
< td > heterogeneous< / td >
< td > no< / td >
< td > yes< / td >
< / tr >
< tr >
< td > security< / td >
< td > RBAC< / td >
< td > ACL< / td >
< / tr >
< / tbody >
< / table >
< p > 下 图 是 在 Kubernetes上 运 行 三 种 调 度 方 式 的 spark的 单 个 节 点 的 应 用 部 分 对 比 : < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.20" > < img src = "../images/spark-on-kubernetes-with-different-schedulers.jpg" alt = "Spark on Kubernetes with different schedulers" > < figcaption > 图 片 - Spark on Kubernetes with different schedulers< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 从 上 图 中 可 以 看 到 在 Kubernetes上 使 用 YARN调 度 、 standalone调 度 和 kubernetes原 生 调 度 的 方 式 , 每 个 node节 点 上 的 Pod内 的 spark Executor分 布 , 毫 无 疑 问 , 使 用 kubernetes原 生 调 度 的 spark任 务 才 是 最 节 省 资 源 的 。 < / p >
< p > 提 交 任 务 的 语 句 看 起 来 会 像 是 这 样 的 : < / p >
2018-02-20 18:00:08 +08:00
< pre class = "language-" > < code class = "lang-bash" > ./spark-submit \
2017-12-20 19:27:32 +08:00
--deploy-mode cluster \
--class com.talkingdata.alluxio.hadooptest \
--master k8s://https://172.20.0.113:6443 \
--kubernetes-namespace spark-cluster \
2018-02-20 18:00:08 +08:00
--conf spark.kubernetes.driverEnv.SPARK_USER< span class = "token operator" > =< / span > hadoop \
--conf spark.kubernetes.driverEnv.HADOOP_USER_NAME< span class = "token operator" > =< / span > hadoop \
--conf spark.executorEnv.HADOOP_USER_NAME< span class = "token operator" > =< / span > hadoop \
--conf spark.executorEnv.SPARK_USER< span class = "token operator" > =< / span > hadoop \
--conf spark.kubernetes.authenticate.driver.serviceAccountName< span class = "token operator" > =< / span > spark \
--conf spark.driver.memory< span class = "token operator" > =< / span > 100G \
--conf spark.executor.memory< span class = "token operator" > =< / span > 10G \
--conf spark.driver.cores< span class = "token operator" > =< / span > 30 \
--conf spark.executor.cores< span class = "token operator" > =< / span > 2 \
--conf spark.driver.maxResultSize< span class = "token operator" > =< / span > 10240m \
--conf spark.kubernetes.driver.limit.cores< span class = "token operator" > =< / span > 32 \
--conf spark.kubernetes.executor.limit.cores< span class = "token operator" > =< / span > 3 \
--conf spark.kubernetes.executor.memoryOverhead< span class = "token operator" > =< / span > 2g \
--conf spark.executor.instances< span class = "token operator" > =< / span > 5 \
--conf spark.app.name< span class = "token operator" > =< / span > spark-pi \
--conf spark.kubernetes.driver.docker.image< span class = "token operator" > =< / span > spark-driver:v2.1.0-kubernetes-0.3.1-1 \
--conf spark.kubernetes.executor.docker.image< span class = "token operator" > =< / span > spark-executor:v2.1.0-kubernetes-0.3.1-1 \
--conf spark.kubernetes.initcontainer.docker.image< span class = "token operator" > =< / span > spark-init:v2.1.0-kubernetes-0.3.1-1 \
--conf spark.kubernetes.resourceStagingServer.uri< span class = "token operator" > =< / span > http://172.20.0.114:31000 \
2017-12-20 19:27:32 +08:00
~/Downloads/tendcloud_2.10-1.0.jar
< / code > < / pre >
< p > 关 于 支 持 Kubernetes原 生 调 度 的 Spark请 参 考 : < a href = "https://jimmysong.io/spark-on-k8s/" target = "_blank" > https://jimmysong.io/spark-on-k8s/< / a > < / p >
< h2 id = "open-source" > Open Source< / h2 >
< blockquote >
< p > Contributing is Not only about code, it is about helping a community.< / p >
< / blockquote >
< p > 下 图 是 我 们 刚 调 研 准 备 使 用 Kubernetes时 候 的 调 研 方 案 选 择 。 < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.21" > < img src = "https://res.cloudinary.com/jimmysong/image/upload/images/kubernetes-solutions-choices.jpg" alt = "Kubernetes solutions" > < figcaption > 图 片 - Kubernetes solutions< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 对 于 一 个 初 次 接 触 Kubernetes的 人 来 说 , 看 到 这 样 一 个 庞 大 的 架 构 选 型 时 会 望 而 生 畏 , 但 是 Kubernetes的 开 源 社 区 帮 助 了 我 们 很 多 。 < / p >
2018-01-21 20:30:36 +08:00
< figure id = "fig2.3.22" > < img src = "../images/kubernetes-sigs.jpg" alt = "Kubernetes SIG" > < figcaption > 图 片 - Kubernetes SIG< / figcaption > < / figure >
2017-12-20 19:27:32 +08:00
< p > 我 组 建 了 < strong > K8S& Cloud Native实 战 < / strong > 微 信 群 , 参 与 了 k8smeetup、 KEUC2017、 < a href = "https://github.com/kubernetes/kubernetes-docs-cn" target = "_blank" > kubernetes-docs-cn< / a > Kubernetes官 方 中 文 文 档 项 目 。 < / p >
< p > < strong > 有 用 的 资 料 和 链 接 < / strong > < / p >
< ul >
< li > 我 的 博 客 : < a href = "https://jimmysong.io" target = "_blank" > https://jimmysong.io< / a > < / li >
< li > 微 信 群 : k8s& cloud native实 战 群 ( 见 : < a href = "https://jimmysong.io/about" target = "_blank" > https://jimmysong.io/about< / a > ) < / li >
< li > Meetup: k8smeetup< / li >
< li > Cloud Native Go - 基 于 Go和 React云 原 生 Web应 用 开 发 : < a href = "https://jimmysong.io/cloud-native-go" target = "_blank" > https://jimmysong.io/cloud-native-go< / a > < / li >
< li > Gitbook: < a href = "https://jimmysong.io/kubernetes-handbook" target = "_blank" > https://jimmysong.io/kubernetes-handbook< / a > < / li >
< li > Cloud native开 源 生 态 : < a href = "https://jimmysong.io/awesome-cloud-native/" target = "_blank" > https://jimmysong.io/awesome-cloud-native/< / a > < / li >
< li > 资 料 分 享 整 理 : < a href = "https://github.com/rootsongjc/cloud-native-slides-share" target = "_blank" > https://github.com/rootsongjc/cloud-native-slides-share< / a > < / li >
< li > 迁 移 到 云 原 生 架 构 : < a href = "https://jimmysong.io/migrating-to-cloud-native-application-architectures/" target = "_blank" > https://jimmysong.io/migrating-to-cloud-native-application-architectures/< / a > < / li >
2018-02-23 08:22:07 +08:00
< li > KubeCon + CloudNativeCon 2018年 11月 14-15日 上 海 < / li >
2017-12-20 19:27:32 +08:00
< / ul >
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
2018-02-23 08:22:07 +08:00
2018-02-22 17:33:45
2017-12-20 19:27:32 +08:00
< / span > < / footer >
< / section >
< / div >
< div class = "search-results" >
< div class = "has-results" >
< h1 class = "search-results-title" > < span class = 'search-results-count' > < / span > results matching "< span class = 'search-query' > < / span > "< / h1 >
< ul class = "search-results-list" > < / ul >
< / div >
< div class = "no-results" >
< h1 class = "search-results-title" > No results matching "< span class = 'search-query' > < / span > "< / h1 >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< a href = "kubernetes-and-cloud-native-app-overview.html" class = "navigation navigation-prev " aria-label = "Previous page: Kubernetes与云原生应用概览" >
< i class = "fa fa-angle-left" > < / i >
< / a >
< a href = "../concepts/" class = "navigation navigation-next " aria-label = "Next page: Kubernetes架构" >
< i class = "fa fa-angle-right" > < / i >
< / a >
< / div >
< script >
var gitbook = gitbook || [];
gitbook.push(function() {
2018-03-29 10:09:55 +08:00
gitbook.page.hasChanged({"page":{"title":"云原生应用之路——从Kubernetes到Cloud Native","level":"2.3","depth":1,"next":{"title":"Kubernetes架构","level":"3.1","depth":1,"path":"concepts/index.md","ref":"concepts/index.md","articles":[{"title":"设计理念","level":"3.1.1","depth":2,"path":"concepts/concepts.md","ref":"concepts/concepts.md","articles":[]},{"title":"Etcd解析","level":"3.1.2","depth":2,"path":"concepts/etcd.md","ref":"concepts/etcd.md","articles":[]},{"title":"开放接口","level":"3.1.3","depth":2,"path":"concepts/open-interfaces.md","ref":"concepts/open-interfaces.md","articles":[{"title":"CRI - Container Runtime Interface( 容器运行时接口) ","level":"3.1.3.1","depth":3,"path":"concepts/cri.md","ref":"concepts/cri.md","articles":[]},{"title":"CNI - Container Network Interface( 容器网络接口) ","level":"3.1.3.2","depth":3,"path":"concepts/cni.md","ref":"concepts/cni.md","articles":[]},{"title":"CSI - Container Storage Interface( 容器存储接口) ","level":"3.1.3.3","depth":3,"path":"concepts/csi.md","ref":"concepts/csi.md","articles":[]}]}]},"previous":{"title":"Kubernetes与云原生应用概览","level":"2.2","depth":1,"path":"cloud-native/kubernetes-and-cloud-native-app-overview.md","ref":"cloud-native/kubernetes-and-cloud-native-app-overview.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"},{"bac
2017-12-20 19:27:32 +08:00
});
< / script >
< / div >
< script src = "../gitbook/gitbook.js" > < / script >
< script src = "../gitbook/theme.js" > < / script >
< script src = "../gitbook/gitbook-plugin-github/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-splitter/splitter.js" > < / script >
< script src = "../gitbook/gitbook-plugin-page-toc-button/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-editlink/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-back-to-top-button/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js" > < / script >
< script src = "../gitbook/gitbook-plugin-search-plus/search.js" > < / script >
< script src = "../gitbook/gitbook-plugin-github-buttons/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-3-ba/plugin.js" > < / script >
< script src = "../gitbook/gitbook-plugin-sharing/buttons.js" > < / script >
< script src = "../gitbook/gitbook-plugin-fontsettings/fontsettings.js" > < / script >
< / body >
< / html >