2017-08-21 17:44:43 +08:00
<!DOCTYPE HTML>
< html lang = "zh-cn" >
< head >
< meta charset = "UTF-8" >
< meta content = "text/html; charset=utf-8" http-equiv = "Content-Type" >
< title > 4.3.1 服务滚动升级 · Kubernetes Handbook< / 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" >
2017-09-19 21:38:03 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-wide-page/wide.css" >
2017-08-21 17:44:43 +08:00
< 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-page-footer-ex/style/plugin.css" >
2017-09-19 21:38:03 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-back-to-top-button/plugin.css" >
2017-08-21 17:44:43 +08:00
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-search-plus/search.css" >
< link rel = "stylesheet" href = "../gitbook/gitbook-plugin-highlight/website.css" >
< 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 = "app-log-collection.html" / >
< link rel = "prev" href = "operation.html" / >
< / 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 class = "chapter " data-level = "1.1" data-path = "../" >
< a href = "../" >
1. 前言
< / a >
< / li >
< li class = "chapter " data-level = "1.2" data-path = "../concepts/" >
< a href = "../concepts/" >
2. 概念原理
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.2.1" data-path = "../concepts/concepts.html" >
< a href = "../concepts/concepts.html" >
2.1 设计理念
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2" data-path = "../concepts/objects.html" >
< a href = "../concepts/objects.html" >
2017-09-03 13:29:38 +08:00
2.2 Objects
2017-08-21 17:44:43 +08:00
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.2.2.1" data-path = "../concepts/pod-overview.html" >
< a href = "../concepts/pod-overview.html" >
2.2.1 Pod
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.2.2.1.1" data-path = "../concepts/pod.html" >
< a href = "../concepts/pod.html" >
2.2.1.1 Pod解析
< / a >
2017-08-31 23:28:33 +08:00
< / li >
< li class = "chapter " data-level = "1.2.2.1.2" data-path = "../concepts/init-containers.html" >
< a href = "../concepts/init-containers.html" >
2.2.1.2 Init容器
< / a >
2017-09-03 15:58:39 +08:00
< / li >
< li class = "chapter " data-level = "1.2.2.1.3" data-path = "../concepts/pod-security-policy.html" >
< a href = "../concepts/pod-security-policy.html" >
2.2.1.3 Pod安全策略
< / a >
2017-09-17 15:39:26 +08:00
< / li >
< li class = "chapter " data-level = "1.2.2.1.4" data-path = "../concepts/pod-lifecycle.html" >
< a href = "../concepts/pod-lifecycle.html" >
2.2.1.4 Pod的生命周期
< / a >
2017-08-21 17:44:43 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.2.2.2" data-path = "../concepts/node.html" >
< a href = "../concepts/node.html" >
2.2.2 Node
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.3" data-path = "../concepts/namespace.html" >
< a href = "../concepts/namespace.html" >
2.2.3 Namespace
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.4" data-path = "../concepts/service.html" >
< a href = "../concepts/service.html" >
2.2.4 Service
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.5" data-path = "../concepts/volume.html" >
< a href = "../concepts/volume.html" >
2.2.5 Volume和Persistent Volume
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.6" data-path = "../concepts/deployment.html" >
< a href = "../concepts/deployment.html" >
2.2.6 Deployment
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.7" data-path = "../concepts/secret.html" >
< a href = "../concepts/secret.html" >
2.2.7 Secret
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.8" data-path = "../concepts/statefulset.html" >
< a href = "../concepts/statefulset.html" >
2.2.8 StatefulSet
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.9" data-path = "../concepts/daemonset.html" >
< a href = "../concepts/daemonset.html" >
2.2.9 DaemonSet
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.10" data-path = "../concepts/serviceaccount.html" >
< a href = "../concepts/serviceaccount.html" >
2.2.10 ServiceAccount
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.11" data-path = "../concepts/replicaset.html" >
< a href = "../concepts/replicaset.html" >
2.2.11 ReplicationController和ReplicaSet
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.12" data-path = "../concepts/job.html" >
< a href = "../concepts/job.html" >
2.2.12 Job
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.13" data-path = "../concepts/cronjob.html" >
< a href = "../concepts/cronjob.html" >
2.2.13 CronJob
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.14" data-path = "../concepts/ingress.html" >
< a href = "../concepts/ingress.html" >
2.2.14 Ingress
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.15" data-path = "../concepts/configmap.html" >
< a href = "../concepts/configmap.html" >
2.2.15 ConfigMap
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.16" data-path = "../concepts/horizontal-pod-autoscaling.html" >
< a href = "../concepts/horizontal-pod-autoscaling.html" >
2.2.16 Horizontal Pod Autoscaling
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.17" data-path = "../concepts/label.html" >
< a href = "../concepts/label.html" >
2.2.17 Label
< / a >
2017-09-03 15:58:39 +08:00
< / li >
< li class = "chapter " data-level = "1.2.2.18" data-path = "../concepts/garbage-collection.html" >
< a href = "../concepts/garbage-collection.html" >
2.2.18 垃圾收集
< / a >
< / li >
< li class = "chapter " data-level = "1.2.2.19" data-path = "../concepts/network-policy.html" >
< a href = "../concepts/network-policy.html" >
2.2.19 NetworkPolicy
< / a >
2017-08-21 17:44:43 +08:00
< / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.3" data-path = "../guide/" >
< a href = "../guide/" >
3. 用户指南
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.3.1" data-path = "../guide/resource-configuration.html" >
< a href = "../guide/resource-configuration.html" >
3.1 资源配置
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.3.1.1" data-path = "../guide/configure-liveness-readiness-probes.html" >
< a href = "../guide/configure-liveness-readiness-probes.html" >
3.1.1 配置Pod的liveness和readiness探针
< / a >
< / li >
< li class = "chapter " data-level = "1.3.1.2" data-path = "../guide/configure-pod-service-account.html" >
< a href = "../guide/configure-pod-service-account.html" >
3.1.2 配置Pod的Service Account
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.3.2" data-path = "../guide/command-usage.html" >
< a href = "../guide/command-usage.html" >
3.2 命令使用
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.3.2.1" data-path = "../guide/using-kubectl.html" >
< a href = "../guide/using-kubectl.html" >
3.2.1 使用kubectl
< / a >
2017-09-16 20:56:43 +08:00
< / li >
< li class = "chapter " data-level = "1.3.2.2" data-path = "../guide/docker-cli-to-kubectl.html" >
< a href = "../guide/docker-cli-to-kubectl.html" >
3.2.2 docker用户过度到kubectl命令行指南
< / a >
2017-08-21 17:44:43 +08:00
< / li >
< / ul >
< / li >
2017-09-07 12:29:13 +08:00
< li class = "chapter " data-level = "1.3.3" data-path = "../guide/cluster-security-management.html" >
2017-08-21 17:44:43 +08:00
2017-09-07 12:29:13 +08:00
< a href = "../guide/cluster-security-management.html" >
2017-08-21 17:44:43 +08:00
2017-09-07 12:29:13 +08:00
3.3 集群安全性管理
2017-08-21 17:44:43 +08:00
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.3.3.1" data-path = "../guide/managing-tls-in-a-cluster.html" >
< a href = "../guide/managing-tls-in-a-cluster.html" >
3.3.1 管理集群中的TLS
< / a >
2017-08-21 18:44:34 +08:00
< / li >
< li class = "chapter " data-level = "1.3.3.2" data-path = "../guide/kubelet-authentication-authorization.html" >
< a href = "../guide/kubelet-authentication-authorization.html" >
3.3.2 kubelet的认证授权
< / a >
< / li >
< li class = "chapter " data-level = "1.3.3.3" data-path = "../guide/tls-bootstrapping.html" >
< a href = "../guide/tls-bootstrapping.html" >
3.3.3 TLS bootstrap
< / a >
2017-08-31 14:23:44 +08:00
< / li >
< li class = "chapter " data-level = "1.3.3.4" data-path = "../guide/kubectl-user-authentication-authorization.html" >
< a href = "../guide/kubectl-user-authentication-authorization.html" >
3.3.4 kubectl的用户认证授权
< / a >
< / li >
< li class = "chapter " data-level = "1.3.3.5" data-path = "../guide/rbac.html" >
< a href = "../guide/rbac.html" >
3.3.5 RBAC——基于角色的访问控制
< / a >
2017-09-07 14:13:59 +08:00
< / li >
< li class = "chapter " data-level = "1.3.3.6" data-path = "../guide/ip-masq-agent.html" >
< a href = "../guide/ip-masq-agent.html" >
3.3.6 IP伪装代理
< / a >
2017-08-21 17:44:43 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.3.4" data-path = "../guide/access-kubernetes-cluster.html" >
< a href = "../guide/access-kubernetes-cluster.html" >
3.4 访问 Kubernetes 集群
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.3.4.1" data-path = "../guide/access-cluster.html" >
< a href = "../guide/access-cluster.html" >
3.4.1 访问集群
< / a >
< / li >
< li class = "chapter " data-level = "1.3.4.2" data-path = "../guide/authenticate-across-clusters-kubeconfig.html" >
< a href = "../guide/authenticate-across-clusters-kubeconfig.html" >
3.4.2 使用 kubeconfig 文件配置跨集群认证
< / a >
< / li >
< li class = "chapter " data-level = "1.3.4.3" data-path = "../guide/connecting-to-applications-port-forward.html" >
< a href = "../guide/connecting-to-applications-port-forward.html" >
3.4.3 通过端口转发访问集群中的应用程序
< / a >
< / li >
< li class = "chapter " data-level = "1.3.4.4" data-path = "../guide/service-access-application-cluster.html" >
< a href = "../guide/service-access-application-cluster.html" >
3.4.4 使用 service 访问群集中的应用程序
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.3.5" data-path = "../guide/application-development-deployment-flow.html" >
< a href = "../guide/application-development-deployment-flow.html" >
3.5 在kubernetes中开发部署应用
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.3.5.1" data-path = "../guide/deploy-applications-in-kubernetes.html" >
< a href = "../guide/deploy-applications-in-kubernetes.html" >
3.5.1 适用于kubernetes的应用开发部署流程
< / a >
2017-08-21 18:44:34 +08:00
< / li >
< li class = "chapter " data-level = "1.3.5.2" data-path = "../guide/migrating-hadoop-yarn-to-kubernetes.html" >
< a href = "../guide/migrating-hadoop-yarn-to-kubernetes.html" >
3.5.2 迁移传统应用到kubernetes中——以Hadoop YARN为例
< / a >
2017-08-21 17:44:43 +08:00
< / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.4" data-path = "./" >
< a href = "./" >
4. 最佳实践
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.4.1" data-path = "install-kbernetes1.6-on-centos.html" >
< a href = "install-kbernetes1.6-on-centos.html" >
4.1 在CentOS上部署kubernetes1.6集群
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.4.1.1" data-path = "create-tls-and-secret-key.html" >
< a href = "create-tls-and-secret-key.html" >
4.1.1 创建TLS证书和秘钥
< / a >
< / li >
< li class = "chapter " data-level = "1.4.1.2" data-path = "create-kubeconfig.html" >
< a href = "create-kubeconfig.html" >
4.1.2 创建kubeconfig文件
< / a >
< / li >
< li class = "chapter " data-level = "1.4.1.3" data-path = "etcd-cluster-installation.html" >
< a href = "etcd-cluster-installation.html" >
4.1.3 创建高可用etcd集群
< / a >
< / li >
< li class = "chapter " data-level = "1.4.1.4" data-path = "kubectl-installation.html" >
< a href = "kubectl-installation.html" >
4.1.4 安装kubectl命令行工具
< / a >
< / li >
< li class = "chapter " data-level = "1.4.1.5" data-path = "master-installation.html" >
< a href = "master-installation.html" >
4.1.5 部署master节点
< / a >
< / li >
< li class = "chapter " data-level = "1.4.1.6" data-path = "node-installation.html" >
< a href = "node-installation.html" >
4.1.6 部署node节点
< / a >
< / li >
< li class = "chapter " data-level = "1.4.1.7" data-path = "kubedns-addon-installation.html" >
< a href = "kubedns-addon-installation.html" >
4.1.7 安装kubedns插件
< / a >
< / li >
< li class = "chapter " data-level = "1.4.1.8" data-path = "dashboard-addon-installation.html" >
< a href = "dashboard-addon-installation.html" >
4.1.8 安装dashboard插件
< / a >
< / li >
< li class = "chapter " data-level = "1.4.1.9" data-path = "heapster-addon-installation.html" >
< a href = "heapster-addon-installation.html" >
4.1.9 安装heapster插件
< / a >
< / li >
< li class = "chapter " data-level = "1.4.1.10" data-path = "efk-addon-installation.html" >
< a href = "efk-addon-installation.html" >
4.1.10 安装EFK插件
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.4.2" data-path = "service-discovery-and-loadbalancing.html" >
< a href = "service-discovery-and-loadbalancing.html" >
4.2 服务发现与负载均衡
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.4.2.1" data-path = "traefik-ingress-installation.html" >
< a href = "traefik-ingress-installation.html" >
4.2.1 安装Traefik ingress
< / a >
< / li >
< li class = "chapter " data-level = "1.4.2.2" data-path = "distributed-load-test.html" >
< a href = "distributed-load-test.html" >
4.2.2 分布式负载测试
< / a >
< / li >
< li class = "chapter " data-level = "1.4.2.3" data-path = "network-and-cluster-perfermance-test.html" >
< a href = "network-and-cluster-perfermance-test.html" >
4.2.3 网络和集群性能测试
< / a >
< / li >
< li class = "chapter " data-level = "1.4.2.4" data-path = "edge-node-configuration.html" >
< a href = "edge-node-configuration.html" >
4.2.4 边缘节点配置
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.4.3" data-path = "operation.html" >
< a href = "operation.html" >
4.3 运维管理
< / a >
< ul class = "articles" >
< li class = "chapter active" data-level = "1.4.3.1" data-path = "service-rolling-update.html" >
< a href = "service-rolling-update.html" >
4.3.1 服务滚动升级
< / a >
< / li >
< li class = "chapter " data-level = "1.4.3.2" data-path = "app-log-collection.html" >
< a href = "app-log-collection.html" >
4.3.2 应用日志收集
< / a >
< / li >
< li class = "chapter " data-level = "1.4.3.3" data-path = "configuration-best-practice.html" >
< a href = "configuration-best-practice.html" >
4.3.3 配置最佳实践
< / a >
< / li >
< li class = "chapter " data-level = "1.4.3.4" data-path = "monitor.html" >
< a href = "monitor.html" >
4.3.4 集群及应用监控
< / a >
< / li >
< li class = "chapter " data-level = "1.4.3.5" data-path = "jenkins-ci-cd.html" >
< a href = "jenkins-ci-cd.html" >
4.3.5 使用Jenkins进行持续构建与发布
< / a >
< / li >
< li class = "chapter " data-level = "1.4.3.6" data-path = "data-persistence-problem.html" >
< a href = "data-persistence-problem.html" >
4.3.6 数据持久化问题
< / a >
2017-09-03 15:58:39 +08:00
< / li >
< li class = "chapter " data-level = "1.4.3.7" data-path = "manage-compute-resources-container.html" >
< a href = "manage-compute-resources-container.html" >
4.3.7 管理容器的计算资源
< / a >
2017-08-21 17:44:43 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.4.4" data-path = "storage.html" >
< a href = "storage.html" >
4.4 存储管理
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.4.4.1" data-path = "glusterfs.html" >
< a href = "glusterfs.html" >
4.4.1 GlusterFS
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.4.4.1.1" data-path = "using-glusterfs-for-persistent-storage.html" >
< a href = "using-glusterfs-for-persistent-storage.html" >
4.4.1.1 使用GlusterFS做持久化存储
< / a >
< / li >
< li class = "chapter " data-level = "1.4.4.1.2" data-path = "storage-for-containers-using-glusterfs-with-openshift.html" >
< a href = "storage-for-containers-using-glusterfs-with-openshift.html" >
4.4.1.2 在OpenShift中使用GlusterFS做持久化存储
< / a >
2017-09-01 21:04:51 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.4.4.2" data-path = "cephfs.html" >
< a href = "cephfs.html" >
4.4.2 CephFS
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.4.4.2.1" data-path = "using-ceph-for-persistent-storage.html" >
< a href = "using-ceph-for-persistent-storage.html" >
4.4.2.1 使用Ceph做持久化存储
< / a >
2017-08-21 17:44:43 +08:00
< / li >
< / ul >
< / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.5" data-path = "../usecases/" >
< a href = "../usecases/" >
5. 领域应用
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.5.1" data-path = "../usecases/microservices.html" >
< a href = "../usecases/microservices.html" >
5.1 微服务架构
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.5.1.1" data-path = "../usecases/istio.html" >
< a href = "../usecases/istio.html" >
5.1.1 Istio
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.5.1.1.1" data-path = "../usecases/istio-installation.html" >
< a href = "../usecases/istio-installation.html" >
5.1.1.1 安装istio
< / a >
< / li >
< li class = "chapter " data-level = "1.5.1.1.2" data-path = "../usecases/configuring-request-routing.html" >
< a href = "../usecases/configuring-request-routing.html" >
5.1.1.2 配置请求的路由规则
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.5.1.2" data-path = "../usecases/linkerd.html" >
< a href = "../usecases/linkerd.html" >
5.1.2 Linkerd
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.5.1.2.1" data-path = "../usecases/linkerd-user-guide.html" >
< a href = "../usecases/linkerd-user-guide.html" >
5.1.2.1 Linkerd 使用指南
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.5.1.3" data-path = "../usecases/service-discovery-in-microservices.html" >
< a href = "../usecases/service-discovery-in-microservices.html" >
5.1.3 微服务中的服务发现
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.5.2" data-path = "../usecases/big-data.html" >
< a href = "../usecases/big-data.html" >
5.2 大数据
< / a >
< ul class = "articles" >
2017-08-30 14:20:52 +08:00
< li class = "chapter " data-level = "1.5.2.1" data-path = "../usecases/spark-standalone-on-kubernetes.html" >
2017-08-21 17:44:43 +08:00
2017-08-30 14:20:52 +08:00
< a href = "../usecases/spark-standalone-on-kubernetes.html" >
2017-08-21 17:44:43 +08:00
2017-08-30 14:20:52 +08:00
5.2.1 Spark standalone on Kubernetes
2017-08-21 17:44:43 +08:00
< / a >
2017-08-31 14:23:44 +08:00
< / li >
2017-09-14 15:57:50 +08:00
< li class = "chapter " data-level = "1.5.2.2" data-path = "../usecases/running-spark-with-kubernetes-native-scheduler.html" >
2017-08-31 14:23:44 +08:00
2017-09-14 15:57:50 +08:00
< a href = "../usecases/running-spark-with-kubernetes-native-scheduler.html" >
2017-08-31 14:23:44 +08:00
5.2.2 运行支持kubernetes原生调度的Spark程序
< / a >
2017-08-21 17:44:43 +08:00
< / li >
< / ul >
2017-08-30 16:52:33 +08:00
< / li >
< li class = "chapter " data-level = "1.5.3" data-path = "../usecases/serverless.html" >
< a href = "../usecases/serverless.html" >
5.3 Serverless架构
< / a >
2017-08-21 17:44:43 +08:00
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.6" data-path = "../develop/" >
< a href = "../develop/" >
6. 开发指南
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.6.1" data-path = "../develop/developing-environment.html" >
< a href = "../develop/developing-environment.html" >
6.1 开发环境搭建
< / a >
< / li >
< li class = "chapter " data-level = "1.6.2" data-path = "../develop/testing.html" >
< a href = "../develop/testing.html" >
6.2 单元测试和集成测试
< / a >
< / li >
< li class = "chapter " data-level = "1.6.3" data-path = "../develop/client-go-sample.html" >
< a href = "../develop/client-go-sample.html" >
6.3 client-go示例
< / a >
< / li >
< li class = "chapter " data-level = "1.6.4" data-path = "../develop/contribute.html" >
< a href = "../develop/contribute.html" >
6.4 社区贡献
< / a >
< / li >
< / ul >
< / li >
< li class = "chapter " data-level = "1.7" data-path = "../appendix/" >
< a href = "../appendix/" >
7. 附录
< / a >
< ul class = "articles" >
< li class = "chapter " data-level = "1.7.1" data-path = "../appendix/docker-best-practice.html" >
< a href = "../appendix/docker-best-practice.html" >
7.1 Docker最佳实践
< / a >
< / li >
< li class = "chapter " data-level = "1.7.2" data-path = "../appendix/issues.html" >
< a href = "../appendix/issues.html" >
7.2 问题记录
< / a >
< / li >
< li class = "chapter " data-level = "1.7.3" data-path = "../appendix/tricks.html" >
< a href = "../appendix/tricks.html" >
7.3 使用技巧
< / a >
< / li >
< / ul >
< / li >
< 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 = ".." > 4.3.1 服务滚动升级< / 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 = "服务滚动升级" > 服 务 滚 动 升 级 < / h1 >
< p > 当 有 镜 像 发 布 新 版 本 , 新 版 本 服 务 上 线 时 如 何 实 现 服 务 的 滚 动 和 平 滑 升 级 ? < / p >
< p > 如 果 你 使 用 < strong > ReplicationController< / strong > 创 建 的 pod可 以 使 用 < code > kubectl rollingupdate< / code > 命 令 滚 动 升 级 , 如 果 使 用 的 是 < strong > Deployment< / strong > 创 建 的 Pod可 以 直 接 修 改 yaml文 件 后 执 行 < code > kubectl apply< / code > 即 可 。 < / p >
< p > Deployment已 经 内 置 了 RollingUpdate strategy, 因 此 不 用 再 调 用 < code > kubectl rollingupdate< / code > 命 令 , 升 级 的 过 程 是 先 创 建 新 版 的 pod将 流 量 导 入 到 新 pod上 后 销 毁 原 来 的 旧 的 pod。 < / p >
< p > Rolling Update适 用 于 < code > Deployment< / code > 、 < code > Replication Controller< / code > , 官 方 推 荐 使 用 Deployment而 不 再 使 用 Replication Controller。 < / p >
< p > 使 用 ReplicationController时 的 滚 动 升 级 请 参 考 官 网 说 明 : < a href = "https://kubernetes.io/docs/tasks/run-application/rolling-update-replication-controller/" target = "_blank" > https://kubernetes.io/docs/tasks/run-application/rolling-update-replication-controller/< / a > < / p >
< h2 id = "replicationcontroller与deployment的关系" > ReplicationController与 Deployment的 关 系 < / h2 >
< p > ReplicationController和 Deployment的 RollingUpdate命 令 有 些 不 同 , 但 是 实 现 的 机 制 是 一 样 的 , 关 于 这 两 个 kind的 关 系 我 引 用 了 < a href = "https://segmentfault.com/a/1190000008232770" target = "_blank" > ReplicationController与 Deployment的 区 别 < / a > 中 的 部 分 内 容 如 下 , 详 细 区 别 请 查 看 原 文 。 < / p >
< h3 id = "replicationcontroller" > ReplicationController< / h3 >
< p > Replication Controller为 Kubernetes的 一 个 核 心 内 容 , 应 用 托 管 到 Kubernetes之 后 , 需 要 保 证 应 用 能 够 持 续 的 运 行 , Replication Controller就 是 这 个 保 证 的 key, 主 要 的 功 能 如 下 : < / p >
< ul >
< li > 确 保 pod数 量 : 它 会 确 保 Kubernetes中 有 指 定 数 量 的 Pod在 运 行 。 如 果 少 于 指 定 数 量 的 pod, Replication Controller会 创 建 新 的 , 反 之 则 会 删 除 掉 多 余 的 以 保 证 Pod数 量 不 变 。 < / li >
< li > 确 保 pod健 康 : 当 pod不 健 康 , 运 行 出 错 或 者 无 法 提 供 服 务 时 , Replication Controller也 会 杀 死 不 健 康 的 pod, 重 新 创 建 新 的 。 < / li >
< li > 弹 性 伸 缩 : 在 业 务 高 峰 或 者 低 峰 期 的 时 候 , 可 以 通 过 Replication Controller动 态 的 调 整 pod的 数 量 来 提 高 资 源 的 利 用 率 。 同 时 , 配 置 相 应 的 监 控 功 能 ( Hroizontal Pod Autoscaler) , 会 定 时 自 动 从 监 控 平 台 获 取 Replication Controller关 联 pod的 整 体 资 源 使 用 情 况 , 做 到 自 动 伸 缩 。 < / li >
< li > 滚 动 升 级 : 滚 动 升 级 为 一 种 平 滑 的 升 级 方 式 , 通 过 逐 步 替 换 的 策 略 , 保 证 整 体 系 统 的 稳 定 , 在 初 始 化 升 级 的 时 候 就 可 以 及 时 发 现 和 解 决 问 题 , 避 免 问 题 不 断 扩 大 。 < / li >
< / ul >
< h3 id = "deployment" > Deployment< / h3 >
< p > Deployment同 样 为 Kubernetes的 一 个 核 心 内 容 , 主 要 职 责 同 样 是 为 了 保 证 pod的 数 量 和 健 康 , 90%的 功 能 与 Replication Controller完 全 一 样 , 可 以 看 做 新 一 代 的 Replication Controller。 但 是 , 它 又 具 备 了 Replication Controller之 外 的 新 特 性 : < / p >
< ul >
< li > Replication Controller全 部 功 能 : Deployment继 承 了 上 面 描 述 的 Replication Controller全 部 功 能 。 < / li >
< li > 事 件 和 状 态 查 看 : 可 以 查 看 Deployment的 升 级 详 细 进 度 和 状 态 。 < / li >
< li > 回 滚 : 当 升 级 pod镜 像 或 者 相 关 参 数 的 时 候 发 现 问 题 , 可 以 使 用 回 滚 操 作 回 滚 到 上 一 个 稳 定 的 版 本 或 者 指 定 的 版 本 。 < / li >
< li > 版 本 记 录 : 每 一 次 对 Deployment的 操 作 , 都 能 保 存 下 来 , 给 予 后 续 可 能 的 回 滚 使 用 。 < / li >
< li > 暂 停 和 启 动 : 对 于 每 一 次 升 级 , 都 能 够 随 时 暂 停 和 启 动 。 < / li >
< li > 多 种 升 级 方 案 : Recreate: 删 除 所 有 已 存 在 的 pod,重 新 创 建 新 的 ; RollingUpdate: 滚 动 升 级 , 逐 步 替 换 的 策 略 , 同 时 滚 动 升 级 时 , 支 持 更 多 的 附 加 参 数 , 例 如 设 置 最 大 不 可 用 pod数 量 , 最 小 升 级 间 隔 时 间 等 等 。 < / li >
< / ul >
< h2 id = "创建测试镜像" > 创 建 测 试 镜 像 < / h2 >
< p > 我 们 来 创 建 一 个 特 别 简 单 的 web服 务 , 当 你 访 问 网 页 时 , 将 输 出 一 句 版 本 信 息 。 通 过 区 分 这 句 版 本 信 息 输 出 我 们 就 可 以 断 定 升 级 是 否 完 成 。 < / p >
< p > 所 有 配 置 和 代 码 见 < a href = "manifests/test/rolling-update-test" > manifests/test/rolling-update-test< / a > 目 录 。 < / p >
< p > < strong > Web服 务 的 代 码 main.go< / strong > < / p >
< pre > < code class = "lang-Go" > < span class = "hljs-keyword" > package< / span > main
< span class = "hljs-keyword" > import< / span > (
< span class = "hljs-string" > " fmt" < / span >
< span class = "hljs-string" > " log" < / span >
< span class = "hljs-string" > " net/http" < / span >
)
< span class = "hljs-keyword" > func< / span > sayhello(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, < span class = "hljs-string" > " This is version 1." < / span > ) < span class = "hljs-comment" > //这 个 写 入 到 w的 是 输 出 到 客 户 端 的 < / span >
}
< span class = "hljs-keyword" > func< / span > main() {
http.HandleFunc(< span class = "hljs-string" > " /" < / span > , sayhello) < span class = "hljs-comment" > //设 置 访 问 的 路 由 < / span >
log.Println(< span class = "hljs-string" > " This is version 1." < / span > )
err := http.ListenAndServe(< span class = "hljs-string" > " :9090" < / span > , < span class = "hljs-literal" > nil< / span > ) < span class = "hljs-comment" > //设 置 监 听 的 端 口 < / span >
< span class = "hljs-keyword" > if< / span > err != < span class = "hljs-literal" > nil< / span > {
log.Fatal(< span class = "hljs-string" > " ListenAndServe: " < / span > , err)
}
}
< / code > < / pre >
< p > < strong > 创 建 Dockerfile< / strong > < / p >
< pre > < code class = "lang-Dockerfile" > < span class = "hljs-keyword" > FROM< / span > alpine:< span class = "hljs-number" > 3.5< / span >
< span class = "hljs-keyword" > MAINTAINER< / span > Jimmy Song< rootsongjc@gmail.com>
< span class = "hljs-keyword" > ADD< / span > < span class = "bash" > hellov2 /
< / span > < span class = "hljs-keyword" > ENTRYPOINT< / span > < span class = "bash" > [< span class = "hljs-string" > " /hellov2" < / span > ]
< / span > < / code > < / pre >
< p > 注 意 修 改 添 加 的 文 件 的 名 称 。 < / p >
< p > < strong > 创 建 Makefile< / strong > < / p >
< p > 修 改 镜 像 仓 库 的 地 址 为 你 自 己 的 私 有 镜 像 仓 库 地 址 。 < / p >
< p > 修 改 < code > Makefile< / code > 中 的 < code > TAG< / code > 为 新 的 版 本 号 。 < / p >
< pre > < code class = "lang-cmake" > all: build push clean
.PHONY: build push clean
TAG = v1
< span class = "hljs-comment" > # Build for linux amd64< / span >
build:
GOOS=linux GOARCH=amd64 go build -o hello< span class = "hljs-variable" > ${TAG}< / span > main.go
docker build -t sz-pg-oam-docker-hub-< span class = "hljs-number" > 001< / span > .tendcloud.com/library/hello:< span class = "hljs-variable" > ${TAG}< / span > .
< span class = "hljs-comment" > # Push to tenxcloud< / span >
push:
docker push sz-pg-oam-docker-hub-< span class = "hljs-number" > 001< / span > .tendcloud.com/library/hello:< span class = "hljs-variable" > ${TAG}< / span >
< span class = "hljs-comment" > # Clean < / span >
clean:
rm -f hello< span class = "hljs-variable" > ${TAG}< / span >
< / code > < / pre >
< p > < strong > 编 译 < / strong > < / p >
< pre > < code class = "lang-Shell" > make all
< / code > < / pre >
< p > 分 别 修 改 main.go中 的 输 出 语 句 、 Dockerfile中 的 文 件 名 称 和 Makefile中 的 TAG, 创 建 两 个 版 本 的 镜 像 。 < / p >
< h2 id = "测试" > 测 试 < / h2 >
< p > 我 们 使 用 Deployment部 署 服 务 来 测 试 。 < / p >
< p > 配 置 文 件 < code > rolling-update-test.yaml< / code > : < / p >
< pre > < code class = "lang-Yaml" > < span class = "hljs-attr" > apiVersion:< / span > extensions/v1beta1
< span class = "hljs-attr" > kind:< / span > Deployment
< span class = "hljs-attr" > metadata:< / span >
< span class = "hljs-attr" > name:< / span > rolling-update-test
< span class = "hljs-attr" > spec:< / span >
< span class = "hljs-attr" > replicas:< / span > < span class = "hljs-number" > 3< / span >
< span class = "hljs-attr" > template:< / span >
< span class = "hljs-attr" > metadata:< / span >
< span class = "hljs-attr" > labels:< / span >
< span class = "hljs-attr" > app:< / span > rolling-update-test
< span class = "hljs-attr" > spec:< / span >
< span class = "hljs-attr" > containers:< / span >
< span class = "hljs-attr" > - name:< / span > rolling-update-test
< span class = "hljs-attr" > image:< / span > sz-pg-oam-docker-hub< span class = "hljs-bullet" > -001.< / span > tendcloud.com/library/hello:v1
< span class = "hljs-attr" > ports:< / span >
< span class = "hljs-attr" > - containerPort:< / span > < span class = "hljs-number" > 9090< / span >
< span class = "hljs-meta" > ---< / span >
< span class = "hljs-attr" > apiVersion:< / span > v1
< span class = "hljs-attr" > kind:< / span > Service
< span class = "hljs-attr" > metadata:< / span >
< span class = "hljs-attr" > name:< / span > rolling-update-test
< span class = "hljs-attr" > labels:< / span >
< span class = "hljs-attr" > app:< / span > rolling-update-test
< span class = "hljs-attr" > spec:< / span >
< span class = "hljs-attr" > ports:< / span >
< span class = "hljs-attr" > - port:< / span > < span class = "hljs-number" > 9090< / span >
< span class = "hljs-attr" > protocol:< / span > TCP
< span class = "hljs-attr" > name:< / span > http
< span class = "hljs-attr" > selector:< / span >
< span class = "hljs-attr" > app:< / span > rolling-update-test
< / code > < / pre >
< p > < strong > 部 署 service< / strong > < / p >
< pre > < code class = "lang-shell" > kubectl create -f rolling-update-test.yaml
< / code > < / pre >
< p > < strong > 修 改 traefik ingress配 置 < / strong > < / p >
< p > 在 < code > ingress.yaml< / code > 文 件 中 增 加 新 service的 配 置 。 < / p >
< pre > < code class = "lang-Yaml" > < span class = "hljs-attr" > - host:< / span > rolling-update-test.traefik.io
< span class = "hljs-attr" > http:< / span >
< span class = "hljs-attr" > paths:< / span >
< span class = "hljs-attr" > - path:< / span > /
< span class = "hljs-attr" > backend:< / span >
< span class = "hljs-attr" > serviceName:< / span > rolling-update-test
< span class = "hljs-attr" > servicePort:< / span > < span class = "hljs-number" > 9090< / span >
< / code > < / pre >
< p > 修 改 本 地 的 host配 置 , 增 加 一 条 配 置 : < / p >
< pre > < code > 172.20.0.119 rolling-update-test.traefik.io
< / code > < / pre > < p > 注 意 : 172.20.0.119是 我 们 之 前 使 用 keepalived创 建 的 VIP。 < / p >
< p > 打 开 浏 览 器 访 问 < a href = "http://rolling-update-test.traefik.io将会看到以下输出:" target = "_blank" > http://rolling-update-test.traefik.io将 会 看 到 以 下 输 出 : < / a > < / p >
< pre > < code > This is version 1.
< / code > < / pre > < p > < strong > 滚 动 升 级 < / strong > < / p >
< p > 只 需 要 将 < code > rolling-update-test.yaml< / code > 文 件 中 的 < code > image< / code > 改 成 新 版 本 的 镜 像 名 , 然 后 执 行 : < / p >
< pre > < code class = "lang-shell" > kubectl apply -f rolling-update-test.yaml
< / code > < / pre >
< p > 也 可 以 参 考 < a href = "https://kubernetes.io/docs/concepts/workloads/controllers/deployment/" target = "_blank" > Kubernetes Deployment Concept< / a > 中 的 方 法 , 直 接 设 置 新 的 镜 像 。 < / p >
< pre > < code > kubectl set image deployment/rolling-update-test rolling-update-test=sz-pg-oam-docker-hub-001.tendcloud.com/library/hello:v2
< / code > < / pre > < p > 或 者 使 用 < code > kubectl edit deployment/rolling-update-test< / code > 修 改 镜 像 名 称 后 保 存 。 < / p >
< p > 使 用 以 下 命 令 查 看 升 级 进 度 : < / p >
< pre > < code > kubectl rollout status deployment/rolling-update-test
< / code > < / pre > < p > 升 级 完 成 后 在 浏 览 器 中 刷 新 < a href = "http://rolling-update-test.traefik.io将会看到以下输出:" target = "_blank" > http://rolling-update-test.traefik.io将 会 看 到 以 下 输 出 : < / a > < / p >
< pre > < code > This is version 2.
< / code > < / pre > < p > 说 明 滚 动 升 级 成 功 。 < / p >
< h2 id = "使用replicationcontroller创建的pod如何rollingupdate" > 使 用 ReplicationController创 建 的 Pod如 何 RollingUpdate< / h2 >
< p > 以 上 讲 解 使 用 < strong > Deployment< / strong > 创 建 的 Pod的 RollingUpdate方 式 , 那 么 如 果 使 用 传 统 的 < strong > ReplicationController< / strong > 创 建 的 Pod如 何 Update呢 ? < / p >
< p > 举 个 例 子 : < / p >
< pre > < code class = "lang-bash" > $ kubectl -n spark-cluster rolling-update zeppelin-controller --image sz-pg-oam-docker-hub-001.tendcloud.com/library/zeppelin:0.7.1
Created zeppelin-controller-99be89dbbe5< span class = "hljs-built_in" > cd< / span > 5b8d6feab8f57a04a8b
Scaling up zeppelin-controller-99be89dbbe5< span class = "hljs-built_in" > cd< / span > 5b8d6feab8f57a04a8b from 0 to 1, scaling down zeppelin-controller from 1 to 0 (keep 1 pods available, don< span class = "hljs-string" > ' t exceed 2 pods)
Scaling zeppelin-controller-99be89dbbe5cd5b8d6feab8f57a04a8b up to 1
Scaling zeppelin-controller down to 0
Update succeeded. Deleting old controller: zeppelin-controller
Renaming zeppelin-controller-99be89dbbe5cd5b8d6feab8f57a04a8b to zeppelin-controller
replicationcontroller " zeppelin-controller" rolling updated
< / span > < / code > < / pre >
< p > 只 需 要 指 定 新 的 镜 像 即 可 , 当 然 你 可 以 配 置 RollingUpdate的 策 略 。 < / p >
< h2 id = "参考" > 参 考 < / h2 >
< p > < a href = "http://dockone.io/article/328" target = "_blank" > Rolling update机 制 解 析 < / a > < / p >
< p > < a href = "https://kubernetes.io/docs/tasks/run-application/run-stateless-application-deployment/" target = "_blank" > Running a Stateless Application Using a Deployment< / a > < / p >
< p > < a href = "https://github.com/kubernetes/community/blob/master/contributors/design-proposals/simple-rolling-update.md" target = "_blank" > Simple Rolling Update< / a > < / p >
2017-09-19 21:38:03 +08:00
< p > < a href = "https://segmentfault.com/a/1190000008232770" target = "_blank" > 使 用 kubernetes的 deployment进 行 RollingUpdate< / a > < / p >
< footer class = "page-footer-ex" > < span class = "page-footer-ex-copyright" > © All Rights Reserved < / span >                     < span class = "page-footer-ex-footer-update" > updated 2017-08-21 18:23:35 < / span > < / footer >
2017-08-21 17:44:43 +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 >
< a href = "operation.html" class = "navigation navigation-prev " aria-label = "Previous page: 4.3 运维管理" >
< i class = "fa fa-angle-left" > < / i >
< / a >
< a href = "app-log-collection.html" class = "navigation navigation-next " aria-label = "Next page: 4.3.2 应用日志收集" >
< i class = "fa fa-angle-right" > < / i >
< / a >
< / div >
< script >
var gitbook = gitbook || [];
gitbook.push(function() {
2017-09-19 21:38:03 +08:00
gitbook.page.hasChanged({"page":{"title":"4.3.1 服务滚动升级","level":"1.4.3.1","depth":3,"next":{"title":"4.3.2 应用日志收集","level":"1.4.3.2","depth":3,"path":"practice/app-log-collection.md","ref":"practice/app-log-collection.md","articles":[]},"previous":{"title":"4.3 运维管理","level":"1.4.3","depth":2,"path":"practice/operation.md","ref":"practice/operation.md","articles":[{"title":"4.3.1 服务滚动升级","level":"1.4.3.1","depth":3,"path":"practice/service-rolling-update.md","ref":"practice/service-rolling-update.md","articles":[]},{"title":"4.3.2 应用日志收集","level":"1.4.3.2","depth":3,"path":"practice/app-log-collection.md","ref":"practice/app-log-collection.md","articles":[]},{"title":"4.3.3 配置最佳实践","level":"1.4.3.3","depth":3,"path":"practice/configuration-best-practice.md","ref":"practice/configuration-best-practice.md","articles":[]},{"title":"4.3.4 集群及应用监控","level":"1.4.3.4","depth":3,"path":"practice/monitor.md","ref":"practice/monitor.md","articles":[]},{"title":"4.3.5 使用Jenkins进行持续构建与发布","level":"1.4.3.5","depth":3,"path":"practice/jenkins-ci-cd.md","ref":"practice/jenkins-ci-cd.md","articles":[]},{"title":"4.3.6 数据持久化问题","level":"1.4.3.6","depth":3,"path":"practice/data-persistence-problem.md","ref":"practice/data-persistence-problem.md","articles":[]},{"title":"4.3.7 管理容器的计算资源","level":"1.4.3.7","depth":3,"path":"practice/manage-compute-resources-container.md","ref":"practice/manage-compute-resources-container.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["github","codesnippet","splitter","wide-page","page-toc-button","image-captions","page-footer-ex","editlink","back-to-top-button","-lunr","-search","search-plus"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/rootsongjc/kubernetes-handbook"},"editlink":{"label":"编辑本页","multilingual":false,"base":"https://github.com/rootsongjc/kubernetes-handbook/blob/master/"},"page-footer-ex":{"copyright":"© All Rights Reserved","markdown":false,"update_format":"YYYY-MM-DD HH:mm:ss","update_label":"updated"},"splitter":{},"wide-page":{},"codesnippet":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"page-toc-button":{},"back-to-top-button":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"search-plus":{},"image-captions":{"variable_name":"_pictures"}},"page-footer-ex":{"copyright":"Jimmy Song","update_label":"最后更新:","update_format":"YYYY-MM-DD HH:mm:ss"},"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":"concepts/index.html#fig1.2.1","level":"1.2","list_caption":"Figure: Borg架构","alt":"Borg架构","nro":1,"url":"../images/borg.png","index":1,"caption_template":"Figure: _CAPTION_","label":"Borg架构","attributes":{},"skip":false,"key":"1.2.1"},{"backlink":"concepts/index.html#fig1.2.2","level":"1.2","list_caption":"Figure: Kubernetes架构","alt":"Kubernetes架构","nro":2,"url":"../images/architecture.png","index":2,"caption_template":"Figure: _CAPTION_","label":"Kubernetes架构","attributes":{},"skip":false,"key":"1.2.2"},{"backlink":"concepts/index.html#fig1.2.3","level":"1.2","list_caption":"Figure: kubernetes整体架构示意图","alt":"kubernetes整体架构示意图","nro":3,"url":"../image
2017-08-21 17:44:43 +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 >
2017-09-19 21:38:03 +08:00
< script src = "../gitbook/gitbook-plugin-back-to-top-button/plugin.js" > < / script >
2017-08-21 17:44:43 +08:00
< 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-sharing/buttons.js" > < / script >
< script src = "../gitbook/gitbook-plugin-fontsettings/fontsettings.js" > < / script >
< / body >
< / html >