kubernetes-handbook/cloud-native/kubernetes-and-cloud-native...

5144 lines
302 KiB
HTML
Raw Normal View History

<!DOCTYPE HTML>
<html lang="zh-hans" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Kubernetes 与云原生应用概览 · Kubernetes 中文指南——云原生应用架构实战手册</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
2018-09-04 11:25:28 +08:00
<meta name="generator" content="GitBook 3.2.3">
<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">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
2018-09-25 22:13:40 +08:00
<link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.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">
2017-12-20 19:27:32 +08:00
<link rel="next" href="from-kubernetes-to-cloud-native.html" />
<link rel="prev" href="kubernetes-history.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">
2018-09-27 15:26:19 +08:00
<li>
2020-02-05 22:44:52 +08:00
<a href="https://jimmysong.io" target="_blank" class="custom-link">回到主页</a>
2018-07-08 19:42:31 +08:00
</li>
<li>
<a href="https://lib.jimmysong.io" target="_blank" class="custom-link">云原生资料库</a>
</li>
2018-07-08 19:42:31 +08:00
<li>
<a href="https://jimmysong.io/awesome-cloud-native/" target="_blank" class="custom-link">云原生开源项目大全</a>
2018-07-08 19:42:31 +08:00
</li>
<li>
<a href="https://cloudnative.to" target="_blank" class="custom-link">云原生社区</a>
</li>
<li class="divider"></li>
2017-11-15 21:18:59 +08:00
<li class="header">前言</li>
<li class="chapter " data-level="1.1" data-path="../">
<a href="../">
2017-11-15 21:18:59 +08:00
<b>1.1.</b>
序言
</a>
2018-03-04 18:01:35 +08:00
</li>
2018-07-09 23:08:11 +08:00
<li class="header">云原生</li>
<li class="chapter " data-level="2.1" data-path="cloud-native-definition.html">
2018-03-04 18:01:35 +08:00
2018-07-09 23:08:11 +08:00
<a href="cloud-native-definition.html">
2018-03-04 18:01:35 +08:00
2018-07-09 23:08:11 +08:00
<b>2.1.</b>
2018-03-04 18:01:35 +08:00
云原生的定义
2018-03-04 18:01:35 +08:00
</a>
</li>
2019-04-12 00:03:10 +08:00
<li class="chapter " data-level="2.2" data-path="cloud-native-philosophy.html">
2018-07-08 19:42:31 +08:00
2018-09-26 22:42:09 +08:00
<a href="cloud-native-philosophy.html">
2018-07-08 19:42:31 +08:00
2019-04-12 00:03:10 +08:00
<b>2.2.</b>
2018-07-08 19:42:31 +08:00
2018-09-26 22:42:09 +08:00
云原生的设计哲学
</a>
</li>
<li class="chapter " data-level="2.3" data-path="kubernetes-history.html">
2018-09-26 22:42:09 +08:00
<a href="kubernetes-history.html">
2018-09-26 22:42:09 +08:00
2019-04-12 00:03:10 +08:00
<b>2.3.</b>
2018-09-26 22:42:09 +08:00
Kubernetes 的诞生
</a>
</li>
<li class="chapter active" data-level="2.4" data-path="kubernetes-and-cloud-native-app-overview.html">
<a href="kubernetes-and-cloud-native-app-overview.html">
<b>2.4.</b>
Kubernetes 与云原生应用概览
</a>
</li>
<li class="chapter " data-level="2.5" data-path="from-kubernetes-to-cloud-native.html">
<a href="from-kubernetes-to-cloud-native.html">
<b>2.5.</b>
云原生应用之路 —— 从 Kubernetes 到云原生
2018-01-21 20:30:36 +08:00
</a>
</li>
<li class="chapter " data-level="2.6" data-path="define-cloud-native-app.html">
2018-07-08 19:42:31 +08:00
<a href="define-cloud-native-app.html">
2018-07-08 19:42:31 +08:00
<b>2.6.</b>
2018-07-08 19:42:31 +08:00
定义云原生应用
2018-07-08 19:42:31 +08:00
</a>
<ul class="articles">
2018-07-08 19:42:31 +08:00
<li class="chapter " data-level="2.6.1" data-path="oam.html">
2018-01-21 20:30:36 +08:00
<a href="oam.html">
2018-01-21 20:30:36 +08:00
<b>2.6.1.</b>
2018-01-21 20:30:36 +08:00
OAM
</a>
<ul class="articles">
<li class="chapter " data-level="2.6.1.1" data-path="workload.html">
<a href="workload.html">
<b>2.6.1.1.</b>
Workload
</a>
2017-12-20 19:27:32 +08:00
</li>
<li class="chapter " data-level="2.6.1.2" data-path="component.html">
2017-12-20 19:27:32 +08:00
<a href="component.html">
2017-12-20 19:27:32 +08:00
<b>2.6.1.2.</b>
2017-12-20 19:27:32 +08:00
Component
2017-12-20 19:27:32 +08:00
</a>
</li>
<li class="chapter " data-level="2.6.1.3" data-path="trait.html">
<a href="trait.html">
<b>2.6.1.3.</b>
Trait
</a>
</li>
<li class="chapter " data-level="2.6.1.4" data-path="application-scope.html">
<a href="application-scope.html">
<b>2.6.1.4.</b>
Application Scope
</a>
</li>
<li class="chapter " data-level="2.6.1.5" data-path="application-configuration.html">
<a href="application-configuration.html">
<b>2.6.1.5.</b>
Application Configuration
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.6.2" data-path="crossplane.html">
<a href="crossplane.html">
<b>2.6.2.</b>
Crossplane
</a>
2018-06-02 11:26:58 +08:00
</li>
</ul>
</li>
<li class="chapter " data-level="2.7" data-path="cloud-native-programming-languages.html">
2018-06-02 11:26:58 +08:00
<a href="cloud-native-programming-languages.html">
2018-06-02 11:26:58 +08:00
<b>2.7.</b>
2018-06-02 11:26:58 +08:00
云原生平台配置语言
2018-06-02 11:26:58 +08:00
</a>
<ul class="articles">
<li class="chapter " data-level="2.7.1" data-path="cloud-native-programming-language-ballerina.html">
<a href="cloud-native-programming-language-ballerina.html">
<b>2.7.1.</b>
Ballerina
</a>
</li>
<li class="chapter " data-level="2.7.2" data-path="cloud-native-programming-language-pulumi.html">
<a href="cloud-native-programming-language-pulumi.html">
<b>2.7.2.</b>
Pulumi
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.8" data-path="the-future-of-cloud-native.html">
<a href="the-future-of-cloud-native.html">
<b>2.8.</b>
云原生的未来
</a>
</li>
<li class="header">快速入门</li>
<li class="chapter " data-level="3.1" data-path="quick-start.html">
<a href="quick-start.html">
<b>3.1.</b>
云原生新手入门指南
</a>
</li>
<li class="chapter " data-level="3.2" data-path="play-with-kubernetes.html">
<a href="play-with-kubernetes.html">
<b>3.2.</b>
Play with Kubernetes
</a>
</li>
<li class="chapter " data-level="3.3" data-path="cloud-native-local-quick-start.html">
<a href="cloud-native-local-quick-start.html">
<b>3.3.</b>
快速部署一个云原生本地实验环境
</a>
</li>
<li class="chapter " data-level="3.4" data-path="setup-kubernetes-with-rancher-and-aliyun.html">
<a href="setup-kubernetes-with-rancher-and-aliyun.html">
<b>3.4.</b>
使用 Rancher 在阿里云上部署 Kubenretes 集群
</a>
</li>
2017-11-15 21:18:59 +08:00
<li class="header">概念与原理</li>
<li class="chapter " data-level="4.1" data-path="../concepts/">
<a href="../concepts/">
<b>4.1.</b>
2017-11-15 21:18:59 +08:00
Kubernetes 架构
</a>
2018-01-22 14:25:36 +08:00
<ul class="articles">
<li class="chapter " data-level="4.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>4.1.1.</b>
2018-01-22 14:25:36 +08:00
Kubernetes 的设计理念
2018-01-30 12:30:58 +08:00
</a>
</li>
<li class="chapter " data-level="4.1.2" data-path="../concepts/etcd.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/etcd.html">
<b>4.1.2.</b>
2018-01-30 12:30:58 +08:00
Etcd 解析
2018-01-22 14:25:36 +08:00
</a>
2018-01-22 15:48:09 +08:00
</li>
<li class="chapter " data-level="4.1.3" data-path="../concepts/open-interfaces.html">
2018-01-22 15:48:09 +08:00
<a href="../concepts/open-interfaces.html">
<b>4.1.3.</b>
2018-01-22 15:48:09 +08:00
开放接口
</a>
2018-01-22 18:55:50 +08:00
<ul class="articles">
<li class="chapter " data-level="4.1.3.1" data-path="../concepts/cri.html">
2018-01-22 18:55:50 +08:00
<a href="../concepts/cri.html">
<b>4.1.3.1.</b>
2018-01-22 18:55:50 +08:00
容器运行时接口CRI
2018-01-22 18:55:50 +08:00
</a>
2018-01-24 18:11:17 +08:00
</li>
<li class="chapter " data-level="4.1.3.2" data-path="../concepts/cni.html">
2018-01-24 18:11:17 +08:00
<a href="../concepts/cni.html">
<b>4.1.3.2.</b>
2018-01-24 18:11:17 +08:00
容器网络接口CNI
2018-01-24 18:11:17 +08:00
</a>
2018-01-25 17:06:10 +08:00
</li>
<li class="chapter " data-level="4.1.3.3" data-path="../concepts/csi.html">
2018-01-25 17:06:10 +08:00
<a href="../concepts/csi.html">
<b>4.1.3.3.</b>
2018-01-25 17:06:10 +08:00
容器存储接口CSI
2018-01-25 17:06:10 +08:00
</a>
2018-01-22 18:55:50 +08:00
</li>
</ul>
2018-02-05 22:14:09 +08:00
</li>
<li class="chapter " data-level="4.1.4" data-path="../concepts/objects.html">
2018-02-05 22:14:09 +08:00
<a href="../concepts/objects.html">
2018-11-08 16:09:05 +08:00
<b>4.1.4.</b>
2018-11-08 16:09:05 +08:00
Kubernetes 中的资源对象
2018-11-08 16:09:05 +08:00
</a>
</li>
</ul>
2018-02-09 18:24:23 +08:00
</li>
<li class="chapter " data-level="4.2" data-path="../concepts/pod-state-and-lifecycle.html">
2018-02-06 16:51:29 +08:00
<a href="../concepts/pod-state-and-lifecycle.html">
<b>4.2.</b>
2017-11-15 21:18:59 +08:00
Pod 状态与生命周期管理
</a>
2018-03-12 17:48:23 +08:00
<ul class="articles">
<li class="chapter " data-level="4.2.1" data-path="../concepts/pod-overview.html">
<a href="../concepts/pod-overview.html">
<b>4.2.1.</b>
2017-11-15 21:18:59 +08:00
Pod 概览
</a>
2018-01-30 12:30:58 +08:00
</li>
<li class="chapter " data-level="4.2.2" data-path="../concepts/pod.html">
<a href="../concepts/pod.html">
<b>4.2.2.</b>
2017-11-15 21:18:59 +08:00
Pod 解析
</a>
</li>
<li class="chapter " data-level="4.2.3" data-path="../concepts/init-containers.html">
<a href="../concepts/init-containers.html">
<b>4.2.3.</b>
2017-11-15 21:18:59 +08:00
Init 容器
</a>
</li>
<li class="chapter " data-level="4.2.4" data-path="../concepts/pause-container.html">
2018-03-17 22:22:27 +08:00
<a href="../concepts/pause-container.html">
<b>4.2.4.</b>
2017-11-15 21:18:59 +08:00
Pause 容器
2018-03-17 22:22:27 +08:00
</a>
</li>
<li class="chapter " data-level="4.2.5" data-path="../concepts/pod-security-policy.html">
2018-03-17 22:22:27 +08:00
<a href="../concepts/pod-security-policy.html">
<b>4.2.5.</b>
2018-03-17 22:22:27 +08:00
Pod 安全策略
</a>
</li>
<li class="chapter " data-level="4.2.6" data-path="../concepts/pod-lifecycle.html">
<a href="../concepts/pod-lifecycle.html">
<b>4.2.6.</b>
2017-11-15 21:18:59 +08:00
Pod 的生命周期
</a>
</li>
<li class="chapter " data-level="4.2.7" data-path="../concepts/pod-hook.html">
<a href="../concepts/pod-hook.html">
<b>4.2.7.</b>
Pod Hook
</a>
2017-12-11 10:47:19 +08:00
</li>
<li class="chapter " data-level="4.2.8" data-path="../concepts/pod-preset.html">
2017-12-11 10:47:19 +08:00
<a href="../concepts/pod-preset.html">
<b>4.2.8.</b>
2017-12-11 10:47:19 +08:00
Pod Preset
</a>
2018-01-30 12:30:58 +08:00
</li>
<li class="chapter " data-level="4.2.9" data-path="../concepts/pod-disruption-budget.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/pod-disruption-budget.html">
<b>4.2.9.</b>
2018-01-30 12:30:58 +08:00
Pod 中断与 PDBPod 中断预算)
2018-01-30 12:30:58 +08:00
</a>
2018-03-12 18:00:25 +08:00
</li>
2018-03-12 18:00:25 +08:00
</ul>
</li>
<li class="chapter " data-level="4.3" data-path="../concepts/cluster.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/cluster.html">
<b>4.3.</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
<li class="chapter " data-level="4.3.1" data-path="../concepts/node.html">
<a href="../concepts/node.html">
<b>4.3.1.</b>
2017-11-15 21:18:59 +08:00
Node
</a>
</li>
<li class="chapter " data-level="4.3.2" data-path="../concepts/namespace.html">
<a href="../concepts/namespace.html">
<b>4.3.2.</b>
2017-11-15 21:18:59 +08:00
Namespace
</a>
</li>
<li class="chapter " data-level="4.3.3" data-path="../concepts/label.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/label.html">
<b>4.3.3.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Label
</a>
</li>
<li class="chapter " data-level="4.3.4" data-path="../concepts/annotation.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/annotation.html">
<b>4.3.4.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Annotation
</a>
2018-01-25 15:01:14 +08:00
</li>
2018-01-08 17:22:21 +08:00
<li class="chapter " data-level="4.3.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
<b>4.3.5.</b>
2018-01-08 17:22:21 +08:00
Taint 和 Toleration污点和容忍
2018-01-08 17:22:21 +08:00
</a>
</li>
<li class="chapter " data-level="4.3.6" data-path="../concepts/garbage-collection.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/garbage-collection.html">
<b>4.3.6.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +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="4.4" data-path="../concepts/controllers.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/controllers.html">
<b>4.4.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
控制器
</a>
2018-03-12 18:00:25 +08:00
<ul class="articles">
2018-03-12 17:48:23 +08:00
<li class="chapter " data-level="4.4.1" data-path="../concepts/deployment.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/deployment.html">
<b>4.4.1.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Deployment
</a>
</li>
<li class="chapter " data-level="4.4.2" data-path="../concepts/statefulset.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/statefulset.html">
<b>4.4.2.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
StatefulSet
</a>
</li>
<li class="chapter " data-level="4.4.3" data-path="../concepts/daemonset.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/daemonset.html">
<b>4.4.3.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
DaemonSet
</a>
</li>
<li class="chapter " data-level="4.4.4" data-path="../concepts/replicaset.html">
<a href="../concepts/replicaset.html">
<b>4.4.4.</b>
2017-11-15 21:18:59 +08:00
ReplicationController 和 ReplicaSet
</a>
</li>
<li class="chapter " data-level="4.4.5" data-path="../concepts/job.html">
<a href="../concepts/job.html">
<b>4.4.5.</b>
2017-11-15 21:18:59 +08:00
Job
</a>
</li>
<li class="chapter " data-level="4.4.6" data-path="../concepts/cronjob.html">
<a href="../concepts/cronjob.html">
<b>4.4.6.</b>
2017-11-15 21:18:59 +08:00
CronJob
</a>
</li>
<li class="chapter " data-level="4.4.7" data-path="../concepts/horizontal-pod-autoscaling.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/horizontal-pod-autoscaling.html">
<b>4.4.7.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Horizontal Pod Autoscaling
</a>
2017-11-30 16:59:17 +08:00
<ul class="articles">
<li class="chapter " data-level="4.4.7.1" data-path="../concepts/custom-metrics-hpa.html">
2017-11-30 16:59:17 +08:00
2018-01-30 12:30:58 +08:00
<a href="../concepts/custom-metrics-hpa.html">
2017-11-30 16:59:17 +08:00
<b>4.4.7.1.</b>
2017-11-30 16:59:17 +08:00
自定义指标 HPA
2017-11-30 16:59:17 +08:00
</a>
</li>
2018-03-12 18:00:25 +08:00
</ul>
2018-10-09 19:20:30 +08:00
</li>
<li class="chapter " data-level="4.4.8" data-path="../concepts/admission-controller.html">
2018-10-09 19:20:30 +08:00
<a href="../concepts/admission-controller.html">
<b>4.4.8.</b>
2018-10-09 19:20:30 +08:00
准入控制器Admission Controller
</a>
2018-03-12 18:00:25 +08:00
</li>
</ul>
</li>
<li class="chapter " data-level="4.5" data-path="../concepts/service-discovery.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/service-discovery.html">
<b>4.5.</b>
2017-11-15 21:18:59 +08:00
服务发现与路由
</a>
2018-03-12 18:00:25 +08:00
<ul class="articles">
2017-11-08 19:28:16 +08:00
<li class="chapter " data-level="4.5.1" data-path="../concepts/service.html">
2017-11-08 19:28:16 +08:00
2018-01-30 12:30:58 +08:00
<a href="../concepts/service.html">
2017-11-08 19:28:16 +08:00
<b>4.5.1.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Service
</a>
</li>
<li class="chapter " data-level="4.5.2" data-path="../concepts/topology-aware-routing.html">
<a href="../concepts/topology-aware-routing.html">
<b>4.5.2.</b>
拓扑感知路由
</a>
</li>
<li class="chapter " data-level="4.5.3" data-path="../concepts/ingress.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/ingress.html">
<b>4.5.3.</b>
2018-01-30 12:30:58 +08:00
Ingress
</a>
<ul class="articles">
<li class="chapter " data-level="4.5.3.1" data-path="../concepts/traefik-ingress-controller.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/traefik-ingress-controller.html">
<b>4.5.3.1.</b>
2018-01-30 12:30:58 +08:00
Traefik Ingress Controller
2017-11-08 19:28:16 +08:00
</a>
</li>
2018-03-12 18:00:25 +08:00
</ul>
</li>
<li class="chapter " data-level="4.5.4" data-path="../concepts/gateway.html">
<a href="../concepts/gateway.html">
<b>4.5.4.</b>
Gateway
</a>
2018-03-12 18:00:25 +08:00
</li>
</ul>
</li>
<li class="chapter " data-level="4.6" data-path="../concepts/authentication-and-permission.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/authentication-and-permission.html">
<b>4.6.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
身份与权限控制
</a>
2018-03-12 18:00:25 +08:00
<ul class="articles">
2018-03-12 17:48:23 +08:00
<li class="chapter " data-level="4.6.1" data-path="../concepts/serviceaccount.html">
2017-11-27 19:36:05 +08:00
2018-01-30 12:30:58 +08:00
<a href="../concepts/serviceaccount.html">
2017-11-27 19:36:05 +08:00
<b>4.6.1.</b>
2017-11-27 19:36:05 +08:00
2018-01-30 12:30:58 +08:00
ServiceAccount
2017-11-27 19:36:05 +08:00
</a>
</li>
<li class="chapter " data-level="4.6.2" data-path="../concepts/rbac.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/rbac.html">
<b>4.6.2.</b>
2018-01-30 12:30:58 +08:00
基于角色的访问控制RBAC
2018-01-30 12:30:58 +08:00
</a>
2017-11-27 19:36:05 +08:00
</li>
<li class="chapter " data-level="4.6.3" data-path="../concepts/network-policy.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/network-policy.html">
<b>4.6.3.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
NetworkPolicy
</a>
</li>
<li class="chapter " data-level="4.6.4" data-path="../concepts/spiffe.html">
<a href="../concepts/spiffe.html">
<b>4.6.4.</b>
SPIFFE
</a>
<ul class="articles">
<li class="chapter " data-level="4.6.4.1" data-path="../concepts/spire.html">
<a href="../concepts/spire.html">
<b>4.6.4.1.</b>
SPIRE
</a>
</li>
</ul>
2018-03-12 18:00:25 +08:00
</li>
</ul>
</li>
2018-01-30 12:30:58 +08:00
<li class="chapter " data-level="4.7" data-path="../concepts/networking.html">
<a href="../concepts/networking.html">
<b>4.7.</b>
网络
</a>
<ul class="articles">
<li class="chapter " data-level="4.7.1" data-path="../concepts/flannel.html">
<a href="../concepts/flannel.html">
<b>4.7.1.</b>
扁平网络 Flannel
</a>
</li>
<li class="chapter " data-level="4.7.2" data-path="../concepts/calico.html">
<a href="../concepts/calico.html">
<b>4.7.2.</b>
非 Overlay 扁平网络 Calico
</a>
</li>
<li class="chapter " data-level="4.7.3" data-path="../concepts/cilium.html">
<a href="../concepts/cilium.html">
<b>4.7.3.</b>
基于 eBPF 的网络 Cilium
</a>
<ul class="articles">
<li class="chapter " data-level="4.7.3.1" data-path="../concepts/cilium-concepts.html">
<a href="../concepts/cilium-concepts.html">
<b>4.7.3.1.</b>
Cilium 架构设计与概念解析
</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="chapter " data-level="4.8" data-path="../concepts/storage.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/storage.html">
<b>4.8.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
存储
</a>
2018-03-12 18:00:25 +08:00
<ul class="articles">
<li class="chapter " data-level="4.8.1" data-path="../concepts/secret.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/secret.html">
<b>4.8.1.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
Secret
</a>
2017-11-09 16:48:38 +08:00
</li>
<li class="chapter " data-level="4.8.2" data-path="../concepts/configmap.html">
2017-11-09 16:48:38 +08:00
2018-01-30 12:30:58 +08:00
<a href="../concepts/configmap.html">
2017-11-09 16:48:38 +08:00
<b>4.8.2.</b>
2017-11-15 21:18:59 +08:00
2018-01-30 12:30:58 +08:00
ConfigMap
</a>
<ul class="articles">
<li class="chapter " data-level="4.8.2.1" data-path="../concepts/configmap-hot-update.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/configmap-hot-update.html">
<b>4.8.2.1.</b>
2018-01-30 12:30:58 +08:00
ConfigMap 的热更新
2017-11-09 16:48:38 +08:00
</a>
2017-11-27 19:36:05 +08:00
</li>
2018-01-30 12:30:58 +08:00
</ul>
2017-11-27 19:36:05 +08:00
2018-01-30 12:30:58 +08:00
</li>
<li class="chapter " data-level="4.8.3" data-path="../concepts/volume.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/volume.html">
2017-11-27 19:36:05 +08:00
<b>4.8.3.</b>
2017-11-27 19:36:05 +08:00
2018-01-30 12:30:58 +08:00
Volume
2017-11-27 19:36:05 +08:00
</a>
2017-11-28 11:57:57 +08:00
</li>
<li class="chapter " data-level="4.8.4" data-path="../concepts/persistent-volume.html">
2017-11-28 11:57:57 +08:00
2018-01-30 12:30:58 +08:00
<a href="../concepts/persistent-volume.html">
2017-11-28 11:57:57 +08:00
<b>4.8.4.</b>
2017-11-28 11:57:57 +08:00
持久化卷Persistent Volume
2017-11-28 11:57:57 +08:00
</a>
2018-01-30 18:01:34 +08:00
</li>
<li class="chapter " data-level="4.8.5" data-path="../concepts/storageclass.html">
2018-01-30 18:01:34 +08:00
<a href="../concepts/storageclass.html">
<b>4.8.5.</b>
2018-01-30 18:01:34 +08:00
Storage Class
</a>
</li>
<li class="chapter " data-level="4.8.6" data-path="../concepts/local-persistent-storage.html">
<a href="../concepts/local-persistent-storage.html">
<b>4.8.6.</b>
本地持久化存储
</a>
2018-03-12 18:00:25 +08:00
</li>
2018-01-30 12:30:58 +08:00
2018-03-12 18:00:25 +08:00
</ul>
</li>
<li class="chapter " data-level="4.9" data-path="../concepts/extension.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/extension.html">
2017-12-14 19:41:46 +08:00
<b>4.9.</b>
2017-12-14 19:41:46 +08:00
2018-03-12 17:48:23 +08:00
集群扩展
2018-01-30 12:30:58 +08:00
</a>
2018-03-12 18:00:25 +08:00
<ul class="articles">
2018-01-30 12:30:58 +08:00
<li class="chapter " data-level="4.9.1" data-path="../concepts/custom-resource.html">
2018-01-30 12:30:58 +08:00
<a href="../concepts/custom-resource.html">
<b>4.9.1.</b>
2018-01-30 12:30:58 +08:00
使用自定义资源扩展 API
2017-12-14 19:41:46 +08:00
</a>
2018-01-10 17:30:31 +08:00
</li>
<li class="chapter " data-level="4.9.2" data-path="../concepts/crd.html">
2018-01-10 17:30:31 +08:00
2018-11-01 17:58:26 +08:00
<a href="../concepts/crd.html">
2018-01-10 17:30:31 +08:00
<b>4.9.2.</b>
2018-01-10 17:30:31 +08:00
使用 CRD 扩展 Kubernetes API
2018-11-01 17:58:26 +08:00
</a>
</li>
<li class="chapter " data-level="4.9.3" data-path="../concepts/aggregated-api-server.html">
2018-11-01 17:58:26 +08:00
<a href="../concepts/aggregated-api-server.html">
<b>4.9.3.</b>
2018-11-01 17:58:26 +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>
<li class="chapter " data-level="4.9.4" 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
<b>4.9.4.</b>
2018-01-19 17:02:44 +08:00
2018-01-30 12:30:58 +08:00
APIService
2018-01-19 17:02:44 +08:00
</a>
2018-04-22 21:36:38 +08:00
</li>
<li class="chapter " data-level="4.9.5" data-path="../concepts/service-catalog.html">
2018-04-22 21:36:38 +08:00
<a href="../concepts/service-catalog.html">
<b>4.9.5.</b>
2018-04-22 21:36:38 +08:00
服务目录Service Catalog
2018-04-22 21:36:38 +08:00
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="4.10" data-path="../concepts/multicluster.html">
<a href="../concepts/multicluster.html">
<b>4.10.</b>
多集群管理
</a>
<ul class="articles">
<li class="chapter " data-level="4.10.1" data-path="../concepts/multi-cluster-services-api.html">
<a href="../concepts/multi-cluster-services-api.html">
<b>4.10.1.</b>
多集群服务 APIMulti-Cluster Services API
</a>
</li>
<li class="chapter " data-level="4.10.2" data-path="../practice/federation.html">
<a href="../practice/federation.html">
<b>4.10.2.</b>
集群联邦Cluster Federation
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="4.11" data-path="../concepts/scheduling.html">
2018-03-12 17:48:23 +08:00
<a href="../concepts/scheduling.html">
<b>4.11.</b>
2018-03-12 17:48:23 +08:00
资源调度
</a>
2018-01-30 12:30:58 +08:00
2018-10-09 11:53:49 +08:00
<ul class="articles">
<li class="chapter " data-level="4.11.1" data-path="../concepts/qos.html">
2018-10-09 11:53:49 +08:00
<a href="../concepts/qos.html">
<b>4.11.1.</b>
2018-10-09 11:53:49 +08:00
服务质量等级QoS
2018-10-09 11:53:49 +08:00
</a>
</li>
</ul>
2018-01-30 12:30:58 +08:00
</li>
2017-11-15 21:18:59 +08:00
<li class="header">用户指南</li>
<li class="chapter " data-level="5.1" data-path="../guide/">
<a href="../guide/">
<b>5.1.</b>
2017-11-15 21:18:59 +08:00
用户指南概览
</a>
2017-11-15 21:18:59 +08:00
</li>
<li class="chapter " data-level="5.2" data-path="../guide/resource-configuration.html">
<a href="../guide/resource-configuration.html">
<b>5.2.</b>
2017-11-15 21:18:59 +08:00
资源对象配置
</a>
<ul class="articles">
<li class="chapter " data-level="5.2.1" data-path="../guide/configure-liveness-readiness-probes.html">
<a href="../guide/configure-liveness-readiness-probes.html">
<b>5.2.1.</b>
2017-11-15 21:18:59 +08:00
配置 Pod 的 liveness 和 readiness 探针
</a>
</li>
<li class="chapter " data-level="5.2.2" data-path="../guide/configure-pod-service-account.html">
<a href="../guide/configure-pod-service-account.html">
<b>5.2.2.</b>
2017-11-15 21:18:59 +08:00
配置 Pod 的 Service Account
</a>
</li>
<li class="chapter " data-level="5.2.3" data-path="../guide/secret-configuration.html">
<a href="../guide/secret-configuration.html">
<b>5.2.3.</b>
2017-11-15 21:18:59 +08:00
Secret 配置
</a>
</li>
<li class="chapter " data-level="5.2.4" data-path="../guide/resource-quota-management.html">
<a href="../guide/resource-quota-management.html">
<b>5.2.4.</b>
2017-11-15 21:18:59 +08:00
管理 namespace 中的资源配额
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="5.3" data-path="../guide/command-usage.html">
<a href="../guide/command-usage.html">
<b>5.3.</b>
2017-11-15 21:18:59 +08:00
命令使用
</a>
<ul class="articles">
<li class="chapter " data-level="5.3.1" data-path="../guide/docker-cli-to-kubectl.html">
2017-11-03 17:48:10 +08:00
<a href="../guide/docker-cli-to-kubectl.html">
<b>5.3.1.</b>
2017-11-15 21:18:59 +08:00
Docker 用户过渡到 kubectl 命令行指南
2017-11-03 17:48:10 +08:00
</a>
</li>
<li class="chapter " data-level="5.3.2" data-path="../guide/using-kubectl.html">
<a href="../guide/using-kubectl.html">
<b>5.3.2.</b>
2017-11-15 21:18:59 +08:00
kubectl 命令概览
</a>
</li>
<li class="chapter " data-level="5.3.3" data-path="../guide/kubectl-cheatsheet.html">
2017-11-03 17:48:10 +08:00
<a href="../guide/kubectl-cheatsheet.html">
<b>5.3.3.</b>
2017-11-15 21:18:59 +08:00
kubectl 命令技巧大全
</a>
2017-11-23 13:06:23 +08:00
</li>
<li class="chapter " data-level="5.3.4" data-path="../guide/using-etcdctl-to-access-kubernetes-data.html">
2017-11-23 13:06:23 +08:00
<a href="../guide/using-etcdctl-to-access-kubernetes-data.html">
<b>5.3.4.</b>
2017-11-23 13:06:23 +08:00
使用 etcdctl 访问 Kubernetes 数据
2017-11-23 13:06:23 +08:00
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="5.4" data-path="../guide/cluster-security-management.html">
<a href="../guide/cluster-security-management.html">
<b>5.4.</b>
2017-11-15 21:18:59 +08:00
集群安全性管理
</a>
<ul class="articles">
<li class="chapter " data-level="5.4.1" data-path="../guide/managing-tls-in-a-cluster.html">
<a href="../guide/managing-tls-in-a-cluster.html">
<b>5.4.1.</b>
2017-11-15 21:18:59 +08:00
管理集群中的 TLS
</a>
</li>
<li class="chapter " data-level="5.4.2" data-path="../guide/kubelet-authentication-authorization.html">
<a href="../guide/kubelet-authentication-authorization.html">
<b>5.4.2.</b>
2017-11-15 21:18:59 +08:00
kubelet 的认证授权
</a>
</li>
<li class="chapter " data-level="5.4.3" data-path="../guide/tls-bootstrapping.html">
<a href="../guide/tls-bootstrapping.html">
<b>5.4.3.</b>
2017-11-15 21:18:59 +08:00
TLS Bootstrap
</a>
</li>
<li class="chapter " data-level="5.4.4" data-path="../guide/kubectl-user-authentication-authorization.html">
<a href="../guide/kubectl-user-authentication-authorization.html">
<b>5.4.4.</b>
2017-11-15 21:18:59 +08:00
创建用户认证授权的 kubeconfig 文件
</a>
</li>
<li class="chapter " data-level="5.4.5" data-path="../guide/ip-masq-agent.html">
<a href="../guide/ip-masq-agent.html">
<b>5.4.5.</b>
2017-11-15 21:18:59 +08:00
IP 伪装代理
</a>
</li>
<li class="chapter " data-level="5.4.6" data-path="../guide/auth-with-kubeconfig-or-token.html">
<a href="../guide/auth-with-kubeconfig-or-token.html">
<b>5.4.6.</b>
2017-11-15 21:18:59 +08:00
使用 kubeconfig 或 token 进行用户身份认证
</a>
</li>
<li class="chapter " data-level="5.4.7" data-path="../guide/authentication.html">
<a href="../guide/authentication.html">
<b>5.4.7.</b>
2017-11-15 21:18:59 +08:00
Kubernetes 中的用户与身份认证授权
</a>
2018-05-11 21:57:37 +08:00
</li>
<li class="chapter " data-level="5.4.8" data-path="../guide/kubernetes-security-best-practice.html">
2018-05-11 21:57:37 +08:00
<a href="../guide/kubernetes-security-best-practice.html">
<b>5.4.8.</b>
2018-05-11 21:57:37 +08:00
Kubernetes 集群安全性配置最佳实践
2018-05-11 21:57:37 +08:00
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="5.5" data-path="../guide/access-kubernetes-cluster.html">
<a href="../guide/access-kubernetes-cluster.html">
<b>5.5.</b>
2017-11-15 21:18:59 +08:00
访问 Kubernetes 集群
</a>
<ul class="articles">
<li class="chapter " data-level="5.5.1" data-path="../guide/access-cluster.html">
<a href="../guide/access-cluster.html">
<b>5.5.1.</b>
2017-11-15 21:18:59 +08:00
访问集群
</a>
</li>
<li class="chapter " data-level="5.5.2" data-path="../guide/authenticate-across-clusters-kubeconfig.html">
<a href="../guide/authenticate-across-clusters-kubeconfig.html">
<b>5.5.2.</b>
2017-11-15 21:18:59 +08:00
使用 kubeconfig 文件配置跨集群认证
</a>
</li>
<li class="chapter " data-level="5.5.3" data-path="../guide/connecting-to-applications-port-forward.html">
<a href="../guide/connecting-to-applications-port-forward.html">
<b>5.5.3.</b>
2017-11-15 21:18:59 +08:00
通过端口转发访问集群中的应用程序
</a>
</li>
<li class="chapter " data-level="5.5.4" data-path="../guide/service-access-application-cluster.html">
<a href="../guide/service-access-application-cluster.html">
<b>5.5.4.</b>
2017-11-15 21:18:59 +08:00
使用 service 访问群集中的应用程序
2017-11-21 20:10:10 +08:00
</a>
</li>
<li class="chapter " data-level="5.5.5" data-path="../guide/accessing-kubernetes-pods-from-outside-of-the-cluster.html">
2017-11-21 20:10:10 +08:00
<a href="../guide/accessing-kubernetes-pods-from-outside-of-the-cluster.html">
<b>5.5.5.</b>
2017-11-21 20:10:10 +08:00
从外部访问 Kubernetes 中的 Pod
</a>
2017-11-22 18:43:03 +08:00
</li>
<li class="chapter " data-level="5.5.6" data-path="../guide/kubernetes-desktop-client.html">
2017-11-29 15:07:48 +08:00
<a href="../guide/kubernetes-desktop-client.html">
<b>5.5.6.</b>
2017-11-29 15:07:48 +08:00
Lens - Kubernetes IDE
2017-11-29 15:07:48 +08:00
</a>
</li>
<li class="chapter " data-level="5.5.7" data-path="../guide/kubernator-kubernetes-ui.html">
<a href="../guide/kubernator-kubernetes-ui.html">
<b>5.5.7.</b>
Kubernator - 更底层的 Kubernetes UI
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="5.6" data-path="../guide/application-development-deployment-flow.html">
<a href="../guide/application-development-deployment-flow.html">
<b>5.6.</b>
2017-11-15 21:18:59 +08:00
在 Kubernetes 中开发部署应用
</a>
<ul class="articles">
<li class="chapter " data-level="5.6.1" data-path="../guide/deploy-applications-in-kubernetes.html">
<a href="../guide/deploy-applications-in-kubernetes.html">
<b>5.6.1.</b>
2017-11-15 21:18:59 +08:00
适用于 Kubernetes 的应用开发部署流程
</a>
</li>
<li class="chapter " data-level="5.6.2" data-path="../guide/migrating-hadoop-yarn-to-kubernetes.html">
<a href="../guide/migrating-hadoop-yarn-to-kubernetes.html">
<b>5.6.2.</b>
2017-11-15 21:18:59 +08:00
迁移传统应用到 Kubernetes 中 —— 以 Hadoop YARN 为例
</a>
2017-10-23 13:40:58 +08:00
</li>
<li class="chapter " data-level="5.6.3" data-path="../guide/using-statefulset.html">
2017-10-23 13:40:58 +08:00
<a href="../guide/using-statefulset.html">
<b>5.6.3.</b>
2017-11-15 21:18:59 +08:00
使用 StatefulSet 部署用状态应用
2017-10-23 13:40:58 +08:00
</a>
</li>
</ul>
</li>
2017-11-15 21:18:59 +08:00
<li class="header">最佳实践</li>
<li class="chapter " data-level="6.1" data-path="../practice/">
<a href="../practice/">
<b>6.1.</b>
2017-11-15 21:18:59 +08:00
最佳实践概览
</a>
2017-11-15 21:18:59 +08:00
</li>
<li class="chapter " data-level="6.2" data-path="../practice/install-kubernetes-on-centos.html">
2017-12-19 17:59:00 +08:00
<a href="../practice/install-kubernetes-on-centos.html">
<b>6.2.</b>
2017-11-15 21:18:59 +08:00
在 CentOS 上部署 Kubernetes 集群
</a>
<ul class="articles">
<li class="chapter " data-level="6.2.1" data-path="../practice/create-tls-and-secret-key.html">
<a href="../practice/create-tls-and-secret-key.html">
<b>6.2.1.</b>
2017-11-15 21:18:59 +08:00
创建 TLS 证书和秘钥
</a>
</li>
<li class="chapter " data-level="6.2.2" data-path="../practice/create-kubeconfig.html">
<a href="../practice/create-kubeconfig.html">
<b>6.2.2.</b>
2017-11-15 21:18:59 +08:00
创建 kubeconfig 文件
</a>
</li>
<li class="chapter " data-level="6.2.3" data-path="../practice/etcd-cluster-installation.html">
<a href="../practice/etcd-cluster-installation.html">
<b>6.2.3.</b>
2017-11-15 21:18:59 +08:00
创建高可用 etcd 集群
</a>
</li>
<li class="chapter " data-level="6.2.4" data-path="../practice/kubectl-installation.html">
<a href="../practice/kubectl-installation.html">
<b>6.2.4.</b>
2017-11-15 21:18:59 +08:00
安装 kubectl 命令行工具
</a>
</li>
<li class="chapter " data-level="6.2.5" data-path="../practice/master-installation.html">
<a href="../practice/master-installation.html">
<b>6.2.5.</b>
2017-11-15 21:18:59 +08:00
部署 master 节点
</a>
</li>
<li class="chapter " data-level="6.2.6" data-path="../practice/flannel-installation.html">
2017-12-19 17:59:00 +08:00
<a href="../practice/flannel-installation.html">
<b>6.2.6.</b>
2017-11-15 21:18:59 +08:00
安装 flannel 网络插件
2017-12-19 17:59:00 +08:00
</a>
</li>
<li class="chapter " data-level="6.2.7" data-path="../practice/node-installation.html">
2017-12-19 17:59:00 +08:00
<a href="../practice/node-installation.html">
<b>6.2.7.</b>
2017-12-19 17:59:00 +08:00
部署 node 节点
</a>
</li>
<li class="chapter " data-level="6.2.8" data-path="../practice/kubedns-addon-installation.html">
<a href="../practice/kubedns-addon-installation.html">
<b>6.2.8.</b>
2017-11-15 21:18:59 +08:00
安装 kubedns 插件
</a>
</li>
<li class="chapter " data-level="6.2.9" data-path="../practice/dashboard-addon-installation.html">
<a href="../practice/dashboard-addon-installation.html">
<b>6.2.9.</b>
2017-11-15 21:18:59 +08:00
安装 dashboard 插件
</a>
</li>
<li class="chapter " data-level="6.2.10" data-path="../practice/heapster-addon-installation.html">
<a href="../practice/heapster-addon-installation.html">
<b>6.2.10.</b>
2017-11-15 21:18:59 +08:00
安装 heapster 插件
</a>
</li>
<li class="chapter " data-level="6.2.11" data-path="../practice/efk-addon-installation.html">
<a href="../practice/efk-addon-installation.html">
<b>6.2.11.</b>
2017-11-15 21:18:59 +08:00
安装 EFK 插件
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.3" data-path="../practice/install-kubernetes-with-kubeadm.html">
<a href="../practice/install-kubernetes-with-kubeadm.html">
<b>6.3.</b>
2017-11-15 21:18:59 +08:00
生产级的 Kubernetes 简化管理工具 kubeadm
</a>
<ul class="articles">
<li class="chapter " data-level="6.3.1" data-path="../practice/install-kubernetes-on-ubuntu-server-16.04-with-kubeadm.html">
<a href="../practice/install-kubernetes-on-ubuntu-server-16.04-with-kubeadm.html">
<b>6.3.1.</b>
使用 kubeadm 在 Ubuntu Server 16.04 上快速构建测试集群
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.4" data-path="../practice/service-discovery-and-loadbalancing.html">
<a href="../practice/service-discovery-and-loadbalancing.html">
<b>6.4.</b>
2017-11-15 21:18:59 +08:00
服务发现与负载均衡
</a>
<ul class="articles">
<li class="chapter " data-level="6.4.1" data-path="../practice/traefik-ingress-installation.html">
<a href="../practice/traefik-ingress-installation.html">
<b>6.4.1.</b>
2017-11-15 21:18:59 +08:00
安装 Traefik ingress
</a>
</li>
<li class="chapter " data-level="6.4.2" data-path="../practice/distributed-load-test.html">
<a href="../practice/distributed-load-test.html">
<b>6.4.2.</b>
2017-11-15 21:18:59 +08:00
分布式负载测试
</a>
</li>
<li class="chapter " data-level="6.4.3" data-path="../practice/network-and-cluster-perfermance-test.html">
<a href="../practice/network-and-cluster-perfermance-test.html">
<b>6.4.3.</b>
2017-11-15 21:18:59 +08:00
网络和集群性能测试
</a>
</li>
<li class="chapter " data-level="6.4.4" data-path="../practice/edge-node-configuration.html">
<a href="../practice/edge-node-configuration.html">
<b>6.4.4.</b>
2017-11-15 21:18:59 +08:00
边缘节点配置
</a>
2017-10-27 19:09:01 +08:00
</li>
<li class="chapter " data-level="6.4.5" data-path="../practice/nginx-ingress-installation.html">
2017-10-27 19:09:01 +08:00
<a href="../practice/nginx-ingress-installation.html">
<b>6.4.5.</b>
2017-11-15 21:18:59 +08:00
安装 Nginx ingress
2017-10-27 19:09:01 +08:00
</a>
</li>
<li class="chapter " data-level="6.4.6" data-path="../practice/dns-installation.html">
2018-04-19 10:35:52 +08:00
<a href="../practice/dns-installation.html">
<b>6.4.6.</b>
安装配置 DNS
2018-04-19 10:35:52 +08:00
</a>
<ul class="articles">
<li class="chapter " data-level="6.4.6.1" data-path="../practice/configuring-dns.html">
2018-04-19 10:35:52 +08:00
<a href="../practice/configuring-dns.html">
<b>6.4.6.1.</b>
2018-04-19 10:35:52 +08:00
安装配置 Kube-dns
2018-04-19 10:35:52 +08:00
</a>
</li>
<li class="chapter " data-level="6.4.6.2" data-path="../practice/coredns.html">
2018-04-19 10:35:52 +08:00
<a href="../practice/coredns.html">
<b>6.4.6.2.</b>
2018-04-19 10:35:52 +08:00
安装配置 CoreDNS
</a>
</li>
</ul>
</li>
2018-04-19 10:35:52 +08:00
</ul>
</li>
<li class="chapter " data-level="6.5" data-path="../practice/operation.html">
<a href="../practice/operation.html">
<b>6.5.</b>
2017-11-15 21:18:59 +08:00
运维管理
</a>
<ul class="articles">
<li class="chapter " data-level="6.5.1" data-path="../practice/master-ha.html">
2018-03-20 10:59:44 +08:00
<a href="../practice/master-ha.html">
<b>6.5.1.</b>
2017-11-15 21:18:59 +08:00
Master 节点高可用
2018-03-20 10:59:44 +08:00
</a>
</li>
<li class="chapter " data-level="6.5.2" data-path="../practice/service-rolling-update.html">
2018-03-20 10:59:44 +08:00
<a href="../practice/service-rolling-update.html">
<b>6.5.2.</b>
2018-03-20 10:59:44 +08:00
2017-11-15 21:18:59 +08:00
服务滚动升级
</a>
</li>
<li class="chapter " data-level="6.5.3" data-path="../practice/app-log-collection.html">
<a href="../practice/app-log-collection.html">
<b>6.5.3.</b>
2017-11-15 21:18:59 +08:00
应用日志收集
</a>
</li>
<li class="chapter " data-level="6.5.4" data-path="../practice/configuration-best-practice.html">
<a href="../practice/configuration-best-practice.html">
<b>6.5.4.</b>
2017-11-15 21:18:59 +08:00
配置最佳实践
</a>
</li>
<li class="chapter " data-level="6.5.5" data-path="../practice/monitor.html">
<a href="../practice/monitor.html">
<b>6.5.5.</b>
2017-11-15 21:18:59 +08:00
集群及应用监控
</a>
</li>
<li class="chapter " data-level="6.5.6" data-path="../practice/data-persistence-problem.html">
<a href="../practice/data-persistence-problem.html">
<b>6.5.6.</b>
2017-11-15 21:18:59 +08:00
数据持久化问题
</a>
</li>
<li class="chapter " data-level="6.5.7" data-path="../practice/manage-compute-resources-container.html">
<a href="../practice/manage-compute-resources-container.html">
<b>6.5.7.</b>
2017-11-15 21:18:59 +08:00
管理容器的计算资源
</a>
</li>
2017-11-09 10:55:38 +08:00
</ul>
2017-11-09 10:55:38 +08:00
</li>
<li class="chapter " data-level="6.6" data-path="../practice/storage.html">
2017-11-09 10:55:38 +08:00
<a href="../practice/storage.html">
<b>6.6.</b>
2017-11-15 21:18:59 +08:00
存储管理
2017-11-09 10:55:38 +08:00
</a>
<ul class="articles">
<li class="chapter " data-level="6.6.1" data-path="../practice/glusterfs.html">
2017-11-09 10:55:38 +08:00
<a href="../practice/glusterfs.html">
<b>6.6.1.</b>
2017-11-15 21:18:59 +08:00
GlusterFS
2017-11-09 10:55:38 +08:00
</a>
<ul class="articles">
<li class="chapter " data-level="6.6.1.1" data-path="../practice/using-glusterfs-for-persistent-storage.html">
2017-11-09 10:55:38 +08:00
<a href="../practice/using-glusterfs-for-persistent-storage.html">
<b>6.6.1.1.</b>
2017-11-15 21:18:59 +08:00
使用 GlusterFS 做持久化存储
</a>
</li>
<li class="chapter " data-level="6.6.1.2" data-path="../practice/using-heketi-gluster-for-persistent-storage.html">
<a href="../practice/using-heketi-gluster-for-persistent-storage.html">
<b>6.6.1.2.</b>
2017-11-15 21:18:59 +08:00
使用 Heketi 作为 Kubernetes 的持久存储 GlusterFS 的 external provisioner
</a>
</li>
<li class="chapter " data-level="6.6.1.3" data-path="../practice/storage-for-containers-using-glusterfs-with-openshift.html">
<a href="../practice/storage-for-containers-using-glusterfs-with-openshift.html">
<b>6.6.1.3.</b>
在 OpenShift 中使用 GlusterFS 做持久化存储
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.6.2" data-path="../practice/glusterd-2.0.html">
2018-05-23 19:52:24 +08:00
<a href="../practice/glusterd-2.0.html">
<b>6.6.2.</b>
2017-11-15 21:18:59 +08:00
2018-05-23 19:52:24 +08:00
GlusterD-2.0
</a>
</li>
<li class="chapter " data-level="6.6.3" data-path="../practice/ceph.html">
2018-05-23 19:52:24 +08:00
<a href="../practice/ceph.html">
<b>6.6.3.</b>
2018-05-23 19:52:24 +08:00
Ceph
</a>
<ul class="articles">
<li class="chapter " data-level="6.6.3.1" data-path="../practice/ceph-helm-install-guide-zh.html">
2018-04-18 23:46:26 +08:00
<a href="../practice/ceph-helm-install-guide-zh.html">
<b>6.6.3.1.</b>
2017-11-15 21:18:59 +08:00
用 Helm 托管安装 Ceph 集群并提供后端存储
2018-04-18 23:46:26 +08:00
</a>
</li>
<li class="chapter " data-level="6.6.3.2" data-path="../practice/using-ceph-for-persistent-storage.html">
2018-04-18 23:46:26 +08:00
<a href="../practice/using-ceph-for-persistent-storage.html">
<b>6.6.3.2.</b>
2018-04-18 23:46:26 +08:00
使用 Ceph 做持久化存储
2017-11-09 10:55:38 +08:00
</a>
2018-10-15 14:20:09 +08:00
</li>
<li class="chapter " data-level="6.6.3.3" data-path="../practice/rbd-provisioner.html">
2018-10-15 14:20:09 +08:00
<a href="../practice/rbd-provisioner.html">
<b>6.6.3.3.</b>
2018-10-15 14:20:09 +08:00
使用 rbd-provisioner 提供 rbd 持久化存储
2018-10-15 14:20:09 +08:00
</a>
2018-01-05 16:34:39 +08:00
</li>
</ul>
</li>
<li class="chapter " data-level="6.6.4" data-path="../practice/openebs.html">
2018-01-05 16:34:39 +08:00
<a href="../practice/openebs.html">
<b>6.6.4.</b>
2018-01-05 16:34:39 +08:00
OpenEBS
</a>
<ul class="articles">
<li class="chapter " data-level="6.6.4.1" data-path="../practice/using-openebs-for-persistent-storage.html">
2018-01-05 16:34:39 +08:00
<a href="../practice/using-openebs-for-persistent-storage.html">
<b>6.6.4.1.</b>
2018-01-05 16:34:39 +08:00
使用 OpenEBS 做持久化存储
2018-01-05 16:34:39 +08:00
</a>
2017-11-09 10:55:38 +08:00
</li>
</ul>
2018-02-24 22:56:37 +08:00
</li>
<li class="chapter " data-level="6.6.5" data-path="../practice/rook.html">
2018-02-24 22:56:37 +08:00
<a href="../practice/rook.html">
<b>6.6.5.</b>
2018-02-24 22:56:37 +08:00
Rook
</a>
2018-04-13 23:45:08 +08:00
</li>
<li class="chapter " data-level="6.6.6" data-path="../practice/nfs.html">
2018-04-13 23:45:08 +08:00
<a href="../practice/nfs.html">
<b>6.6.6.</b>
2018-04-13 23:45:08 +08:00
NFS
</a>
<ul class="articles">
<li class="chapter " data-level="6.6.6.1" data-path="../practice/using-nfs-for-persistent-storage.html">
2018-04-13 23:45:08 +08:00
<a href="../practice/using-nfs-for-persistent-storage.html">
<b>6.6.6.1.</b>
2018-04-13 23:45:08 +08:00
利用 NFS 动态提供 Kubernetes 后端存储卷
2018-04-13 23:45:08 +08:00
</a>
</li>
</ul>
2017-11-09 10:55:38 +08:00
</li>
</ul>
</li>
<li class="chapter " data-level="6.7" data-path="../practice/monitoring.html">
2017-11-09 10:55:38 +08:00
<a href="../practice/monitoring.html">
<b>6.7.</b>
2017-11-15 21:18:59 +08:00
集群与应用监控
</a>
<ul class="articles">
<li class="chapter " data-level="6.7.1" data-path="../practice/heapster.html">
2017-11-09 10:55:38 +08:00
<a href="../practice/heapster.html">
<b>6.7.1.</b>
2017-11-15 21:18:59 +08:00
Heapster
</a>
2017-11-09 10:55:38 +08:00
<ul class="articles">
<li class="chapter " data-level="6.7.1.1" data-path="../practice/using-heapster-to-get-object-metrics.html">
2017-11-09 10:55:38 +08:00
<a href="../practice/using-heapster-to-get-object-metrics.html">
<b>6.7.1.1.</b>
2017-11-15 21:18:59 +08:00
使用 Heapster 获取集群和对象的 metric 数据
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.7.2" data-path="../practice/prometheus.html">
2017-11-09 10:55:38 +08:00
<a href="../practice/prometheus.html">
<b>6.7.2.</b>
2017-11-15 21:18:59 +08:00
Prometheus
</a>
<ul class="articles">
<li class="chapter " data-level="6.7.2.1" data-path="../practice/using-prometheus-to-monitor-kuberentes-cluster.html">
2017-11-09 10:55:38 +08:00
<a href="../practice/using-prometheus-to-monitor-kuberentes-cluster.html">
<b>6.7.2.1.</b>
2017-11-15 21:18:59 +08:00
使用 Prometheus 监控 Kubernetes 集群
</a>
2018-10-19 15:44:38 +08:00
</li>
<li class="chapter " data-level="6.7.2.2" data-path="../practice/promql.html">
2018-10-19 15:44:38 +08:00
<a href="../practice/promql.html">
<b>6.7.2.2.</b>
2018-10-19 15:44:38 +08:00
Prometheus 查询语言 PromQL 使用说明
2018-10-19 15:44:38 +08:00
</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="chapter " data-level="6.8" data-path="../practice/distributed-tracing.html">
<a href="../practice/distributed-tracing.html">
<b>6.8.</b>
2017-11-15 21:18:59 +08:00
分布式追踪
</a>
<ul class="articles">
<li class="chapter " data-level="6.8.1" data-path="../practice/opentracing.html">
<a href="../practice/opentracing.html">
<b>6.8.1.</b>
OpenTracing
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.9" data-path="../practice/services-management-tool.html">
<a href="../practice/services-management-tool.html">
<b>6.9.</b>
2017-11-15 21:18:59 +08:00
服务编排管理
</a>
2017-10-20 16:22:43 +08:00
<ul class="articles">
<li class="chapter " data-level="6.9.1" data-path="../practice/helm.html">
2017-10-20 16:22:43 +08:00
<a href="../practice/helm.html">
<b>6.9.1.</b>
2017-11-15 21:18:59 +08:00
使用 Helm 管理 Kubernetes 应用
2017-10-20 16:22:43 +08:00
</a>
2017-10-27 11:59:37 +08:00
</li>
<li class="chapter " data-level="6.9.2" data-path="../practice/create-private-charts-repo.html">
2017-10-27 11:59:37 +08:00
<a href="../practice/create-private-charts-repo.html">
<b>6.9.2.</b>
2017-11-15 21:18:59 +08:00
构建私有 Chart 仓库
2017-10-27 11:59:37 +08:00
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.10" data-path="../practice/ci-cd.html">
2017-10-27 11:59:37 +08:00
<a href="../practice/ci-cd.html">
<b>6.10.</b>
2017-11-15 21:18:59 +08:00
持续集成与发布CI/CD
2017-10-27 11:59:37 +08:00
</a>
<ul class="articles">
<li class="chapter " data-level="6.10.1" data-path="../practice/jenkins-ci-cd.html">
2017-10-27 11:59:37 +08:00
<a href="../practice/jenkins-ci-cd.html">
<b>6.10.1.</b>
2017-11-15 21:18:59 +08:00
使用 Jenkins 进行持续集成与发布
2017-10-27 11:59:37 +08:00
</a>
</li>
<li class="chapter " data-level="6.10.2" data-path="../practice/drone-ci-cd.html">
2017-10-27 11:59:37 +08:00
<a href="../practice/drone-ci-cd.html">
<b>6.10.2.</b>
2017-11-15 21:18:59 +08:00
使用 Drone 进行持续集成与发布
2017-10-27 11:59:37 +08:00
</a>
2017-11-02 16:33:01 +08:00
</li>
</ul>
</li>
<li class="chapter " data-level="6.11" data-path="../practice/update-and-upgrade.html">
2017-11-02 16:33:01 +08:00
<a href="../practice/update-and-upgrade.html">
<b>6.11.</b>
2017-11-15 21:18:59 +08:00
更新与升级
2017-11-02 16:33:01 +08:00
</a>
<ul class="articles">
<li class="chapter " data-level="6.11.1" data-path="../practice/manually-upgrade.html">
2017-11-02 16:33:01 +08:00
<a href="../practice/manually-upgrade.html">
<b>6.11.1.</b>
2017-11-15 21:18:59 +08:00
手动升级 Kubernetes 集群
2017-11-02 16:33:01 +08:00
</a>
</li>
<li class="chapter " data-level="6.11.2" data-path="../practice/dashboard-upgrade.html">
2017-11-02 16:33:01 +08:00
<a href="../practice/dashboard-upgrade.html">
<b>6.11.2.</b>
2017-11-15 21:18:59 +08:00
升级 dashboard
2017-11-02 16:33:01 +08:00
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6.12" data-path="../practice/controller-extended.html">
<a href="../practice/controller-extended.html">
<b>6.12.</b>
扩展控制器
</a>
<ul class="articles">
<li class="chapter " data-level="6.12.1" data-path="../practice/openkruise.html">
<a href="../practice/openkruise.html">
<b>6.12.1.</b>
OpenKruise
</a>
<ul class="articles">
<li class="chapter " data-level="6.12.1.1" data-path="../practice/in-place-update.html">
<a href="../practice/in-place-update.html">
<b>6.12.1.1.</b>
原地升级
</a>
</li>
</ul>
2017-10-20 16:22:43 +08:00
</li>
</ul>
</li>
<li class="chapter " data-level="6.13" data-path="../practice/security-policy.html">
<a href="../practice/security-policy.html">
<b>6.13.</b>
安全策略
</a>
<ul class="articles">
<li class="chapter " data-level="6.13.1" data-path="../practice/open-policy-agent.html">
<a href="../practice/open-policy-agent.html">
<b>6.13.1.</b>
开放策略代理OPA
</a>
</li>
<li class="chapter " data-level="6.13.2" data-path="../practice/cloud-native-security.html">
<a href="../practice/cloud-native-security.html">
<b>6.13.2.</b>
云原生安全
</a>
</li>
</ul>
</li>
2017-11-15 21:18:59 +08:00
<li class="header">服务网格</li>
2017-11-15 21:18:59 +08:00
<li class="chapter " data-level="7.1" data-path="../usecases/service-mesh.html">
<a href="../usecases/service-mesh.html">
<b>7.1.</b>
2017-11-15 21:18:59 +08:00
服务网格Service Mesh
</a>
2017-11-15 21:18:59 +08:00
</li>
<li class="chapter " data-level="7.2" data-path="../usecases/the-enterprise-path-to-service-mesh-architectures.html">
<a href="../usecases/the-enterprise-path-to-service-mesh-architectures.html">
<b>7.2.</b>
2017-11-15 21:18:59 +08:00
企业级服务网格架构
</a>
<ul class="articles">
<li class="chapter " data-level="7.2.1" data-path="../usecases/service-mesh-fundamental.html">
<a href="../usecases/service-mesh-fundamental.html">
<b>7.2.1.</b>
2017-11-15 21:18:59 +08:00
服务网格基础
</a>
2018-03-13 17:43:40 +08:00
</li>
<li class="chapter " data-level="7.2.2" data-path="../usecases/comparing-service-mesh-technologies.html">
2018-03-13 17:43:40 +08:00
<a href="../usecases/comparing-service-mesh-technologies.html">
2018-03-13 17:43:40 +08:00
<b>7.2.2.</b>
2018-03-13 17:43:40 +08:00
服务网格技术对比
2018-03-13 17:43:40 +08:00
</a>
</li>
2018-03-13 17:43:40 +08:00
<li class="chapter " data-level="7.2.3" data-path="../usecases/service-mesh-vs-api-gateway.html">
2018-03-13 17:43:40 +08:00
<a href="../usecases/service-mesh-vs-api-gateway.html">
2018-03-13 17:43:40 +08:00
<b>7.2.3.</b>
2018-03-13 17:43:40 +08:00
服务网格对比 API 网关
2018-03-13 17:43:40 +08:00
</a>
</li>
<li class="chapter " data-level="7.2.4" data-path="../usecases/service-mesh-adoption-and-evolution.html">
<a href="../usecases/service-mesh-adoption-and-evolution.html">
<b>7.2.4.</b>
采纳和演进
</a>
2018-03-13 17:43:40 +08:00
</li>
<li class="chapter " data-level="7.2.5" data-path="../usecases/service-mesh-customization-and-integration.html">
<a href="../usecases/service-mesh-customization-and-integration.html">
<b>7.2.5.</b>
定制和集成
</a>
</li>
<li class="chapter " data-level="7.2.6" data-path="../usecases/service-mesh-conclusion.html">
<a href="../usecases/service-mesh-conclusion.html">
<b>7.2.6.</b>
总结
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="7.3" data-path="../usecases/istio.html">
<a href="../usecases/istio.html">
<b>7.3.</b>
2017-11-15 21:18:59 +08:00
Istio
2018-08-20 19:31:01 +08:00
</a>
<ul class="articles">
<li class="chapter " data-level="7.3.1" data-path="../usecases/before-using-istio.html">
2018-08-20 19:31:01 +08:00
<a href="../usecases/before-using-istio.html">
2018-08-20 19:31:01 +08:00
<b>7.3.1.</b>
2018-08-20 19:31:01 +08:00
使用 Istio 前需要考虑的问题
2018-08-20 19:31:01 +08:00
</a>
</li>
<li class="chapter " data-level="7.3.2" data-path="../usecases/sidecar-pattern.html">
2018-08-20 19:31:01 +08:00
<a href="../usecases/sidecar-pattern.html">
2018-08-20 19:31:01 +08:00
<b>7.3.2.</b>
2018-08-20 19:31:01 +08:00
Sidecar 模式
2018-08-20 19:31:01 +08:00
</a>
</li>
<li class="chapter " data-level="7.3.3" data-path="../usecases/sidecar-spec-in-istio.html">
2018-08-20 19:31:01 +08:00
<a href="../usecases/sidecar-spec-in-istio.html">
2018-08-20 19:31:01 +08:00
<b>7.3.3.</b>
2018-08-20 19:31:01 +08:00
Istio 中 sidecar 的注入规范
2018-08-20 19:31:01 +08:00
</a>
</li>
<li class="chapter " data-level="7.3.4" data-path="../usecases/understand-sidecar-injection-and-traffic-hijack-in-istio-service-mesh.html">
2018-08-20 19:31:01 +08:00
<a href="../usecases/understand-sidecar-injection-and-traffic-hijack-in-istio-service-mesh.html">
2018-08-20 19:31:01 +08:00
<b>7.3.4.</b>
2018-08-20 19:31:01 +08:00
Sidecar 的注入与透明流量劫持
</a>
</li>
<li class="chapter " data-level="7.3.5" data-path="../usecases/istio-traffic-routing.html">
<a href="../usecases/istio-traffic-routing.html">
<b>7.3.5.</b>
Istio 中的流量路由过程详解
</a>
</li>
<li class="chapter " data-level="7.3.6" data-path="../usecases/how-to-integrate-istio-with-vm.html">
<a href="../usecases/how-to-integrate-istio-with-vm.html">
<b>7.3.6.</b>
Istio 如何支持虚拟机
</a>
2018-04-16 21:16:23 +08:00
</li>
<li class="chapter " data-level="7.3.7" data-path="../usecases/istio-vm-support.html">
2018-04-16 21:16:23 +08:00
<a href="../usecases/istio-vm-support.html">
2018-04-16 21:16:23 +08:00
<b>7.3.7.</b>
2018-04-16 21:16:23 +08:00
Istio 支持虚拟机的历史
2018-04-16 21:16:23 +08:00
</a>
</li>
<li class="chapter " data-level="7.3.8" data-path="../usecases/istio-community-tips.html">
<a href="../usecases/istio-community-tips.html">
<b>7.3.8.</b>
如何参与 Istio 社区及注意事项
</a>
2018-04-18 23:26:03 +08:00
</li>
</ul>
2018-08-29 16:29:18 +08:00
</li>
<li class="chapter " data-level="7.4" data-path="../usecases/envoy.html">
<a href="../usecases/envoy.html">
2018-08-29 16:29:18 +08:00
<b>7.4.</b>
2018-08-29 16:29:18 +08:00
Envoy
2018-08-29 16:29:18 +08:00
</a>
<ul class="articles">
<li class="chapter " data-level="7.4.1" data-path="../usecases/envoy-terminology.html">
<a href="../usecases/envoy-terminology.html">
<b>7.4.1.</b>
Envoy 的架构与基本术语
2019-01-02 16:44:20 +08:00
</a>
</li>
<li class="chapter " data-level="7.4.2" data-path="../usecases/envoy-front-proxy.html">
2019-01-02 16:44:20 +08:00
<a href="../usecases/envoy-front-proxy.html">
2019-01-02 16:44:20 +08:00
<b>7.4.2.</b>
2019-01-02 16:44:20 +08:00
Envoy 作为前端代理
</a>
</li>
<li class="chapter " data-level="7.4.3" data-path="../usecases/envoy-mesh-in-kubernetes-tutorial.html">
<a href="../usecases/envoy-mesh-in-kubernetes-tutorial.html">
<b>7.4.3.</b>
Envoy mesh 教程
</a>
</li>
</ul>
</li>
<li class="header">领域应用</li>
<li class="chapter " data-level="8.1" data-path="../usecases/">
<a href="../usecases/">
<b>8.1.</b>
领域应用概览
</a>
</li>
<li class="chapter " data-level="8.2" data-path="../usecases/microservices.html">
2018-04-20 16:41:57 +08:00
<a href="../usecases/microservices.html">
2018-04-20 16:41:57 +08:00
<b>8.2.</b>
2018-04-20 16:41:57 +08:00
微服务架构
2018-04-20 16:41:57 +08:00
</a>
<ul class="articles">
<li class="chapter " data-level="8.2.1" data-path="../usecases/service-discovery-in-microservices.html">
2018-04-20 16:41:57 +08:00
<a href="../usecases/service-discovery-in-microservices.html">
2018-04-20 16:41:57 +08:00
<b>8.2.1.</b>
2018-04-20 16:41:57 +08:00
微服务中的服务发现
2018-04-24 14:58:38 +08:00
</a>
</li>
<li class="chapter " data-level="8.2.2" data-path="../usecases/microservices-for-java-developers.html">
2018-04-24 14:58:38 +08:00
<a href="../usecases/microservices-for-java-developers.html">
2018-04-24 14:58:38 +08:00
<b>8.2.2.</b>
2018-04-24 14:58:38 +08:00
使用 Java 构建微服务并发布到 Kubernetes 平台
2018-04-20 16:41:57 +08:00
</a>
<ul class="articles">
2018-04-28 20:29:48 +08:00
<li class="chapter " data-level="8.2.2.1" data-path="../usecases/spring-boot-quick-start-guide.html">
2018-04-28 20:29:48 +08:00
<a href="../usecases/spring-boot-quick-start-guide.html">
2018-04-28 20:29:48 +08:00
<b>8.2.2.1.</b>
2018-04-28 20:29:48 +08:00
Spring Boot 快速开始指南
2018-04-28 20:29:48 +08:00
</a>
2018-10-19 22:44:16 +08:00
</li>
</ul>
</li>
</ul>
</li>
<li class="chapter " data-level="8.3" data-path="../usecases/big-data.html">
<a href="../usecases/big-data.html">
<b>8.3.</b>
2017-11-15 21:18:59 +08:00
大数据
</a>
<ul class="articles">
<li class="chapter " data-level="8.3.1" data-path="../usecases/spark-on-kubernetes.html">
<a href="../usecases/spark-on-kubernetes.html">
<b>8.3.1.</b>
2017-11-15 21:18:59 +08:00
Spark 与 Kubernetes
</a>
<ul class="articles">
<li class="chapter " data-level="8.3.1.1" data-path="../usecases/spark-standalone-on-kubernetes.html">
<a href="../usecases/spark-standalone-on-kubernetes.html">
<b>8.3.1.1.</b>
2017-11-15 21:18:59 +08:00
Spark standalone on Kubernetes
</a>
</li>
<li class="chapter " data-level="8.3.1.2" data-path="../usecases/running-spark-with-kubernetes-native-scheduler.html">
<a href="../usecases/running-spark-with-kubernetes-native-scheduler.html">
<b>8.3.1.2.</b>
2017-11-15 21:18:59 +08:00
运行支持 Kubernetes 原生调度的 Spark 程序
</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="chapter " data-level="8.4" data-path="../usecases/serverless.html">
<a href="../usecases/serverless.html">
<b>8.4.</b>
2017-11-15 21:18:59 +08:00
Serverless 架构
</a>
2017-11-23 11:03:04 +08:00
<ul class="articles">
<li class="chapter " data-level="8.4.1" data-path="../usecases/understanding-serverless.html">
2017-11-23 11:03:04 +08:00
<a href="../usecases/understanding-serverless.html">
<b>8.4.1.</b>
2017-11-23 11:03:04 +08:00
理解 Serverless
2017-11-23 11:03:04 +08:00
</a>
2017-12-19 22:39:23 +08:00
</li>
<li class="chapter " data-level="8.4.2" data-path="../usecases/faas.html">
2017-12-19 22:39:23 +08:00
<a href="../usecases/faas.html">
<b>8.4.2.</b>
2017-12-19 22:39:23 +08:00
2020-02-05 22:44:52 +08:00
FaaS函数即服务
2017-12-19 22:39:23 +08:00
</a>
<ul class="articles">
<li class="chapter " data-level="8.4.2.1" data-path="../usecases/openfaas-quick-start.html">
2017-12-19 22:39:23 +08:00
2017-12-26 21:24:28 +08:00
<a href="../usecases/openfaas-quick-start.html">
2017-12-19 22:39:23 +08:00
<b>8.4.2.1.</b>
2017-12-19 22:39:23 +08:00
OpenFaaS 快速入门指南
2017-12-19 22:39:23 +08:00
</a>
</li>
</ul>
2020-02-05 22:44:52 +08:00
</li>
<li class="chapter " data-level="8.4.3" data-path="../usecases/knative.html">
2020-02-05 22:44:52 +08:00
<a href="../usecases/knative.html">
<b>8.4.3.</b>
2020-02-05 22:44:52 +08:00
Knative
</a>
2017-11-23 11:03:04 +08:00
</li>
</ul>
2017-10-27 19:09:01 +08:00
</li>
<li class="chapter " data-level="8.5" data-path="../usecases/edge-computing.html">
2020-04-22 18:16:43 +08:00
<a href="../usecases/edge-computing.html">
<b>8.5.</b>
2020-04-22 18:16:43 +08:00
2017-11-15 21:18:59 +08:00
边缘计算
2017-10-27 19:09:01 +08:00
</a>
2018-04-16 21:16:23 +08:00
</li>
<li class="chapter " data-level="8.6" data-path="../usecases/ai.html">
2018-04-16 21:16:23 +08:00
<a href="../usecases/ai.html">
<b>8.6.</b>
2018-04-16 21:16:23 +08:00
人工智能
</a>
</li>
<li class="chapter " data-level="8.7" data-path="../usecases/observability.html">
<a href="../usecases/observability.html">
<b>8.7.</b>
可观察性
</a>
</li>
2017-11-15 21:18:59 +08:00
<li class="header">开发指南</li>
<li class="chapter " data-level="9.1" data-path="../develop/">
<a href="../develop/">
<b>9.1.</b>
2017-11-15 21:18:59 +08:00
开发指南概览
</a>
2017-11-15 21:18:59 +08:00
</li>
<li class="chapter " data-level="9.2" data-path="../develop/sigs-and-working-group.html">
2017-12-03 13:13:09 +08:00
<a href="../develop/sigs-and-working-group.html">
<b>9.2.</b>
2017-11-15 21:18:59 +08:00
SIG 和工作组
2017-12-03 13:13:09 +08:00
</a>
</li>
<li class="chapter " data-level="9.3" data-path="../develop/developing-environment.html">
2017-12-03 13:13:09 +08:00
<a href="../develop/developing-environment.html">
<b>9.3.</b>
2017-12-03 13:13:09 +08:00
2017-11-15 21:18:59 +08:00
开发环境搭建
</a>
2018-11-26 17:18:36 +08:00
<ul class="articles">
<li class="chapter " data-level="9.3.1" data-path="../develop/using-vagrant-and-virtualbox-for-development.html">
<a href="../develop/using-vagrant-and-virtualbox-for-development.html">
<b>9.3.1.</b>
2017-11-15 21:18:59 +08:00
本地分布式开发环境搭建(使用 Vagrant 和 Virtualbox
</a>
</li>
2018-11-26 17:18:36 +08:00
</ul>
</li>
<li class="chapter " data-level="9.4" data-path="../develop/testing.html">
<a href="../develop/testing.html">
<b>9.4.</b>
2017-11-15 21:18:59 +08:00
单元测试和集成测试
</a>
</li>
<li class="chapter " data-level="9.5" data-path="../develop/client-go-sample.html">
<a href="../develop/client-go-sample.html">
<b>9.5.</b>
2017-11-15 21:18:59 +08:00
client-go 示例
</a>
<ul class="articles">
<li class="chapter " data-level="9.5.1" data-path="../develop/client-go-informer-sourcecode-analyse.html">
<a href="../develop/client-go-informer-sourcecode-analyse.html">
<b>9.5.1.</b>
client-go 中的 informer 源码分析
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="9.6" data-path="../develop/operator.html">
2018-01-09 19:14:30 +08:00
<a href="../develop/operator.html">
<b>9.6.</b>
2017-11-15 21:18:59 +08:00
2018-01-09 19:14:30 +08:00
Operator
</a>
2018-11-26 17:18:36 +08:00
<ul class="articles">
2018-01-09 19:14:30 +08:00
<li class="chapter " data-level="9.6.1" data-path="../develop/operator-sdk.html">
2018-01-09 19:14:30 +08:00
2018-05-04 19:53:39 +08:00
<a href="../develop/operator-sdk.html">
2018-01-09 19:14:30 +08:00
<b>9.6.1.</b>
2018-01-09 19:14:30 +08:00
2018-05-04 19:53:39 +08:00
operator-sdk
</a>
</li>
2018-11-26 17:18:36 +08:00
</ul>
</li>
<li class="chapter " data-level="9.7" data-path="../develop/kubebuilder.html">
2018-11-26 17:18:36 +08:00
<a href="../develop/kubebuilder.html">
<b>9.7.</b>
2018-11-26 17:18:36 +08:00
kubebuilder
</a>
<ul class="articles">
<li class="chapter " data-level="9.7.1" data-path="../develop/kubebuilder-example.html">
<a href="../develop/kubebuilder-example.html">
<b>9.7.1.</b>
使用 kubebuilder 创建 operator 示例
</a>
</li>
</ul>
2018-11-26 17:18:36 +08:00
</li>
<li class="chapter " data-level="9.8" data-path="../develop/advance-developer.html">
2018-05-04 19:53:39 +08:00
<a href="../develop/advance-developer.html">
<b>9.8.</b>
2018-05-04 19:53:39 +08:00
2018-02-11 10:00:15 +08:00
高级开发指南
</a>
</li>
<li class="chapter " data-level="9.9" data-path="../develop/contribute.html">
2018-02-11 10:00:15 +08:00
<a href="../develop/contribute.html">
<b>9.9.</b>
2018-02-11 10:00:15 +08:00
2017-11-15 21:18:59 +08:00
社区贡献
</a>
2017-10-23 19:09:41 +08:00
</li>
<li class="chapter " data-level="9.10" data-path="../develop/minikube.html">
2017-10-23 19:09:41 +08:00
<a href="../develop/minikube.html">
<b>9.10.</b>
2017-11-15 21:18:59 +08:00
Minikube
2017-10-23 19:09:41 +08:00
</a>
</li>
2017-11-15 21:18:59 +08:00
<li class="header">社区及生态</li>
2019-04-12 00:03:10 +08:00
<li class="chapter " data-level="10.1" data-path="cncf.html">
2019-04-12 00:03:10 +08:00
<a href="cncf.html">
<b>10.1.</b>
2019-04-12 00:03:10 +08:00
云原生计算基金会CNCF
2019-04-12 00:03:10 +08:00
</a>
<ul class="articles">
2019-04-12 00:03:10 +08:00
<li class="chapter " data-level="10.1.1" data-path="cncf-charter.html">
2019-04-12 00:03:10 +08:00
<a href="cncf-charter.html">
<b>10.1.1.</b>
2019-04-12 00:03:10 +08:00
CNCF 章程
2019-04-12 00:03:10 +08:00
</a>
</li>
<li class="chapter " data-level="10.1.2" data-path="cncf-sig.html">
2019-04-12 00:03:10 +08:00
<a href="cncf-sig.html">
<b>10.1.2.</b>
2019-04-12 00:03:10 +08:00
CNCF 特别兴趣小组SIG说明
2019-04-12 00:03:10 +08:00
</a>
</li>
<li class="chapter " data-level="10.1.3" data-path="cncf-sandbox-criteria.html">
2019-04-12 00:03:10 +08:00
2019-04-15 19:38:27 +08:00
<a href="cncf-sandbox-criteria.html">
2019-04-12 00:03:10 +08:00
<b>10.1.3.</b>
2019-04-12 00:03:10 +08:00
开源项目加入 CNCF Sandbox 的要求
2019-04-15 19:38:27 +08:00
</a>
</li>
<li class="chapter " data-level="10.1.4" data-path="cncf-project-governing.html">
2019-04-15 19:38:27 +08:00
<a href="cncf-project-governing.html">
<b>10.1.4.</b>
2019-04-15 19:38:27 +08:00
CNCF 中的项目治理
2019-04-12 00:03:10 +08:00
</a>
2019-09-21 20:08:21 +08:00
</li>
<li class="chapter " data-level="10.1.5" data-path="cncf-ambassador.html">
2019-09-21 20:08:21 +08:00
<a href="cncf-ambassador.html">
<b>10.1.5.</b>
2019-09-21 20:08:21 +08:00
CNCF Ambassador
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="10.2" data-path="certification.html">
<a href="certification.html">
<b>10.2.</b>
认证及培训
</a>
<ul class="articles">
<li class="chapter " data-level="10.2.1" data-path="../appendix/about-kcsp.html">
<a href="../appendix/about-kcsp.html">
<b>10.2.1.</b>
认证 Kubernetes 服务提供商KCSP说明
</a>
</li>
<li class="chapter " data-level="10.2.2" data-path="../appendix/about-cka-candidate.html">
<a href="../appendix/about-cka-candidate.html">
<b>10.2.2.</b>
认证 Kubernetes 管理员CKA说明
</a>
</li>
</ul>
</li>
2019-04-12 00:03:10 +08:00
2017-11-15 21:18:59 +08:00
<li class="header">附录</li>
<li class="chapter " data-level="11.1" data-path="../appendix/">
<a href="../appendix/">
<b>11.1.</b>
2017-11-15 21:18:59 +08:00
附录说明
</a>
2017-11-15 21:18:59 +08:00
</li>
<li class="chapter " data-level="11.2" data-path="../appendix/debug-kubernetes-services.html">
2017-11-15 21:18:59 +08:00
<a href="../appendix/debug-kubernetes-services.html">
<b>11.2.</b>
2017-11-15 21:18:59 +08:00
Kubernetes 中的应用故障排查
</a>
</li>
<li class="chapter " data-level="11.3" data-path="../appendix/material-share.html">
2017-11-15 21:18:59 +08:00
<a href="../appendix/material-share.html">
<b>11.3.</b>
2017-11-15 21:18:59 +08:00
Kubernetes 参考资源
</a>
</li>
<li class="chapter " data-level="11.4" data-path="../appendix/tricks.html">
2017-11-15 21:18:59 +08:00
<a href="../appendix/tricks.html">
<b>11.4.</b>
2017-11-15 21:18:59 +08:00
Kubernetes 使用技巧
</a>
</li>
<li class="chapter " data-level="11.5" data-path="../appendix/issues.html">
2017-11-15 21:18:59 +08:00
<a href="../appendix/issues.html">
<b>11.5.</b>
2017-11-15 21:18:59 +08:00
Kubernetes 相关问题记录
</a>
</li>
<li class="chapter " data-level="11.6" data-path="../appendix/summary-and-outlook.html">
<a href="../appendix/summary-and-outlook.html">
<b>11.6.</b>
Kubernetes 及云原生年度总结及展望
</a>
<ul class="articles">
<li class="chapter " data-level="11.6.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>11.6.1.</b>
Kubernetes 与云原生 2017 年年终总结及 2018 年展望
</a>
</li>
<li class="chapter " data-level="11.6.2" data-path="../appendix/kubernetes-and-cloud-native-summary-in-2018-and-outlook-for-2019.html">
<a href="../appendix/kubernetes-and-cloud-native-summary-in-2018-and-outlook-for-2019.html">
<b>11.6.2.</b>
Kubernetes 与云原生 2018 年年终总结及 2019 年展望
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="11.7" data-path="../appendix/cncf-annual-report.html">
2018-05-09 23:48:41 +08:00
2019-02-13 20:15:35 +08:00
<a href="../appendix/cncf-annual-report.html">
2018-05-09 23:48:41 +08:00
<b>11.7.</b>
2018-05-09 23:48:41 +08:00
CNCF 年度报告解读
2019-02-13 20:15:35 +08:00
</a>
<ul class="articles">
<li class="chapter " data-level="11.7.1" data-path="../appendix/cncf-annual-report-2018.html">
2019-02-13 20:15:35 +08:00
<a href="../appendix/cncf-annual-report-2018.html">
<b>11.7.1.</b>
2019-02-13 20:15:35 +08:00
CNCF 2018 年年度报告解读
2019-02-13 20:15:35 +08:00
</a>
</li>
<li class="chapter " data-level="11.7.2" data-path="../appendix/cncf-annual-report-2020.html">
<a href="../appendix/cncf-annual-report-2020.html">
<b>11.7.2.</b>
CNCF 2020 年年度报告解读
</a>
2019-02-13 20:15:35 +08:00
</li>
</ul>
</li>
<li class="chapter " data-level="11.8" data-path="../GLOSSARY.html">
<a href="../GLOSSARY.html">
<b>11.8.</b>
术语表
</a>
</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=".." >Kubernetes 与云原生应用概览</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-&#x4E0E;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x6982;&#x89C8;">Kubernetes &#x4E0E;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x6982;&#x89C8;</h1>
<p>2017 &#x5E74; 9 &#x6708;&#xFF0C;Mesos &#x5BA3;&#x5E03;&#x652F;&#x6301; Kubernetes&#xFF0C;&#x800C;&#x5728; 2017 &#x5E74; 10 &#x6708;&#x4EFD;&#x7684; DockerCon EU &#x4E0A;&#xFF0C;Docker &#x516C;&#x53F8;&#x5BA3;&#x5E03;&#x5B98;&#x65B9;&#x540C;&#x65F6;&#x652F;&#x6301; Swarm &#x548C; Kubernetes &#x5BB9;&#x5668;&#x7F16;&#x6392;&#xFF0C;Kubernetes &#x5DF2;&#x7136;&#x6210;&#x4E3A;&#x5BB9;&#x5668;&#x7F16;&#x6392;&#x8C03;&#x5EA6;&#x7684;&#x6807;&#x51C6;&#x3002;</p>
<p>&#x4F5C;&#x4E3A;&#x5168;&#x4E66;&#x7684;&#x5F00;&#x5934;&#xFF0C;&#x9996;&#x5148;&#x4ECE;&#x5386;&#x53F2;&#x3001;&#x751F;&#x6001;&#x548C;&#x5E94;&#x7528;&#x89D2;&#x5EA6;&#x4ECB;&#x7ECD;&#x4E00;&#x4E0B; Kubernetes &#x4E0E;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#xFF0C;&#x6DF1;&#x5165;&#x6D45;&#x51FA;&#xFF0C;&#x9AD8;&#x5C4B;&#x5EFA;&#x74F4;&#xFF0C;&#x6CA1;&#x6709;&#x6DF1;&#x5165;&#x5230;&#x5177;&#x4F53;&#x7EC6;&#x8282;&#xFF0C;&#x4E3B;&#x8981;&#x662F;&#x4E3A;&#x4E86;&#x7ED9;&#x521D;&#x6B21;&#x63A5;&#x89E6; Kubernetes &#x7684;&#x5C0F;&#x767D;&#x626B;&#x76F2;&#xFF0C;&#x5177;&#x4F53;&#x7EC6;&#x8282;&#x8BF7;&#x53C2;&#x8003;&#x94FE;&#x63A5;&#x3002;</p>
<h2 id="&#x4ECE;&#x4E91;&#x8BA1;&#x7B97;&#x5230;&#x5FAE;&#x670D;&#x52A1;&#x518D;&#x5230;&#x4E91;&#x539F;&#x751F;&#x8BA1;&#x7B97;">&#x4ECE;&#x4E91;&#x8BA1;&#x7B97;&#x5230;&#x5FAE;&#x670D;&#x52A1;&#x518D;&#x5230;&#x4E91;&#x539F;&#x751F;&#x8BA1;&#x7B97;</h2>
<p>&#x4E0B;&#x9762;&#x5C06;&#x4ECE;&#x4E91;&#x8BA1;&#x7B97;&#x7684;&#x53D1;&#x5C55;&#x5386;&#x7A0B;&#x5F15;&#x5165;&#x4E91;&#x539F;&#x751F;&#x8BA1;&#x7B97;&#xFF0C;&#x8BF7;&#x5148;&#x770B;&#x4E0B;&#x56FE;&#xFF1A;</p>
<figure id="fig2.4.1"><a href="../images/cloud-computing-evolution-road.jpg" data-lightbox="a216d110-04bf-47f7-8957-d53a69485153" data-title="&#x4E91;&#x8BA1;&#x7B97;&#x6F14;&#x8FDB;&#x5386;&#x7A0B;"><img src="../images/cloud-computing-evolution-road.jpg" alt="&#x4E91;&#x8BA1;&#x7B97;&#x6F14;&#x8FDB;&#x5386;&#x7A0B;"></a><figcaption>&#x56FE; 2.4.1&#xFF1A;&#x4E91;&#x8BA1;&#x7B97;&#x6F14;&#x8FDB;&#x5386;&#x7A0B;</figcaption></figure>
<p>&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x5230; 2020 &#x5E74;&#x5C06;&#x6BD4;&#x76EE;&#x524D;&#x81F3;&#x5C11;&#x7FFB;&#x4E00;&#x756A;&#xFF0C;&#x4E0B;&#x56FE;&#x662F; Marc Wilczek &#x7684;&#x8C03;&#x67E5;&#x62A5;&#x544A;&#x3002;</p>
<figure id="fig2.4.2"><a href="../images/cloud-native-comes-of-age.jpg" data-lightbox="34876a58-2038-4be8-bf89-f1f8c9465919" data-title="&#x6765;&#x81EA; Twitter @MarcWilczek"><img src="../images/cloud-native-comes-of-age.jpg" alt="&#x6765;&#x81EA; Twitter @MarcWilczek"></a><figcaption>&#x56FE; 2.4.2&#xFF1A;&#x6765;&#x81EA; Twitter @MarcWilczek</figcaption></figure>
<h3 id="&#x4E91;&#x8BA1;&#x7B97;&#x4ECB;&#x7ECD;">&#x4E91;&#x8BA1;&#x7B97;&#x4ECB;&#x7ECD;</h3>
2017-11-16 12:06:02 +08:00
<p>&#x4E91;&#x8BA1;&#x7B97;&#x5305;&#x542B;&#x7684;&#x5185;&#x5BB9;&#x5341;&#x5206;&#x7E41;&#x6742;&#xFF0C;&#x4E5F;&#x6709;&#x5F88;&#x591A;&#x6280;&#x672F;&#x548C;&#x516C;&#x53F8;&#x7275;&#x5F3A;&#x9644;&#x4F1A;&#x8BF4;&#x81EA;&#x5DF1;&#x662F;&#x4E91;&#x8BA1;&#x7B97;&#x516C;&#x53F8;&#xFF0C;&#x8BF4;&#x81EA;&#x5DF1;&#x662F;&#x505A;&#x4E91;&#x7684;&#xFF0C;&#x5B9E;&#x9645;&#x4E0A;&#x53EF;&#x80FD;&#x98CE;&#x9A6C;&#x725B;&#x4E0D;&#x76F8;&#x53CA;&#x3002;&#x8BF4;&#x767D;&#x4E86;&#xFF0C;&#x4E91;&#x8BA1;&#x7B97;&#x5C31;&#x662F;&#x4E00;&#x79CD;&#x914D;&#x7F6E;&#x8D44;&#x6E90;&#x7684;&#x65B9;&#x5F0F;&#xFF0C;&#x6839;&#x636E;&#x8D44;&#x6E90;&#x914D;&#x7F6E;&#x65B9;&#x5F0F;&#x7684;&#x4E0D;&#x540C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x628A;&#x4E91;&#x8BA1;&#x7B97;&#x4ECE;&#x5B8F;&#x89C2;&#x4E0A;&#x5206;&#x4E3A;&#x4EE5;&#x4E0B;&#x4E09;&#x79CD;&#x7C7B;&#x578B;&#xFF1A;</p>
<ul>
<li>IaaS&#xFF1A;&#x8FD9;&#x662F;&#x4E3A;&#x4E86;&#x60F3;&#x8981;&#x5EFA;&#x7ACB;&#x81EA;&#x5DF1;&#x7684;&#x5546;&#x4E1A;&#x6A21;&#x5F0F;&#x5E76;&#x8FDB;&#x884C;&#x81EA;&#x5B9A;&#x4E49;&#x7684;&#x5BA2;&#x6237;&#xFF0C;&#x4F8B;&#x5982;&#x4E9A;&#x9A6C;&#x900A;&#x7684; EC2&#x3001;S3 &#x5B58;&#x50A8;&#x3001;Rackspace &#x865A;&#x62DF;&#x673A;&#x7B49;&#x90FD;&#x662F; IaaS&#x3002;</li>
<li>PaaS&#xFF1A;&#x5DE5;&#x5177;&#x548C;&#x670D;&#x52A1;&#x7684;&#x96C6;&#x5408;&#xFF0C;&#x5BF9;&#x4E8E;&#x60F3;&#x7528;&#x5B83;&#x6765;&#x6784;&#x5EFA;&#x81EA;&#x5DF1;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x6216;&#x8005;&#x60F3;&#x5FEB;&#x901F;&#x5F97;&#x5C06;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x90E8;&#x7F72;&#x5230;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x800C;&#x4E0D;&#x5FC5;&#x5173;&#x5FC3;&#x5E95;&#x5C42;&#x786C;&#x4EF6;&#x7684;&#x7528;&#x6237;&#x548C;&#x5F00;&#x53D1;&#x8005;&#x6765;&#x8BF4;&#x662F;&#x7279;&#x522B;&#x6709;&#x7528;&#x7684;&#xFF0C;&#x6BD4;&#x5982; Cloud Foundry&#x3001;Google App Engine&#x3001;Heroku &#x7B49;&#x3002;</li>
<li>SaaS&#xFF1A;&#x7EC8;&#x7AEF;&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4F7F;&#x7528;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x3002;&#x8FD9;&#x4E2A;&#x5C31;&#x592A;&#x591A;&#xFF0C;&#x6211;&#x4EEC;&#x751F;&#x6D3B;&#x4E2D;&#x7528;&#x5230;&#x7684;&#x5F88;&#x591A;&#x8F6F;&#x4EF6;&#x90FD;&#x662F; SaaS &#x670D;&#x52A1;&#xFF0C;&#x53EA;&#x8981;&#x57FA;&#x4E8E;&#x4E92;&#x8054;&#x7F51;&#x6765;&#x63D0;&#x4F9B;&#x7684;&#x670D;&#x52A1;&#x57FA;&#x672C;&#x90FD;&#x662F; SaaS &#x670D;&#x52A1;&#xFF0C;&#x6709;&#x7684;&#x670D;&#x52A1;&#x662F;&#x514D;&#x8D39;&#x7684;&#xFF0C;&#x6BD4;&#x5982; Google Docs&#xFF0C;&#x8FD8;&#x6709;&#x66F4;&#x591A;&#x7684;&#x662F;&#x6839;&#x636E;&#x6211;&#x4EEC;&#x8D2D;&#x4E70;&#x7684; Plan &#x548C;&#x4F7F;&#x7528;&#x91CF;&#x4ED8;&#x8D39;&#xFF0C;&#x6BD4;&#x5982; GitHub&#x3001;&#x5404;&#x79CD;&#x4E91;&#x5B58;&#x50A8;&#x3002;</li>
</ul>
<h3 id="&#x5FAE;&#x670D;&#x52A1;&#x4ECB;&#x7ECD;">&#x5FAE;&#x670D;&#x52A1;&#x4ECB;&#x7ECD;</h3>
<p>&#x5FAE;&#x670D;&#x52A1;&#xFF08;Microservices&#xFF09;&#x8FD9;&#x4E2A;&#x8BCD;&#x6BD4;&#x8F83;&#x65B0;&#x9896;&#xFF0C;&#x4F46;&#x662F;&#x5176;&#x5B9E;&#x8FD9;&#x79CD;&#x67B6;&#x6784;&#x8BBE;&#x8BA1;&#x7406;&#x5FF5;&#x65E9;&#x5C31;&#x6709;&#x4E86;&#x3002;&#x5FAE;&#x670D;&#x52A1;&#x662F;&#x4E00;&#x79CD;&#x5206;&#x5E03;&#x5F0F;&#x67B6;&#x6784;&#x8BBE;&#x8BA1;&#x7406;&#x5FF5;&#xFF0C;&#x4E3A;&#x4E86;&#x63A8;&#x52A8;&#x7EC6;&#x7C92;&#x5EA6;&#x670D;&#x52A1;&#x7684;&#x4F7F;&#x7528;&#xFF0C;&#x8FD9;&#x4E9B;&#x670D;&#x52A1;&#x8981;&#x80FD;&#x534F;&#x540C;&#x5DE5;&#x4F5C;&#xFF0C;&#x6BCF;&#x4E2A;&#x670D;&#x52A1;&#x90FD;&#x6709;&#x81EA;&#x5DF1;&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;&#x3002;&#x4E00;&#x4E2A;&#x5FAE;&#x670D;&#x52A1;&#x5C31;&#x662F;&#x4E00;&#x4E2A;&#x72EC;&#x7ACB;&#x7684;&#x5B9E;&#x4F53;&#xFF0C;&#x53EF;&#x4EE5;&#x72EC;&#x7ACB;&#x7684;&#x90E8;&#x7F72;&#x5728; PAAS &#x5E73;&#x53F0;&#x4E0A;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x4F5C;&#x4E3A;&#x4E00;&#x4E2A;&#x72EC;&#x7ACB;&#x7684;&#x8FDB;&#x7A0B;&#x5728;&#x4E3B;&#x673A;&#x4E2D;&#x8FD0;&#x884C;&#x3002;&#x670D;&#x52A1;&#x4E4B;&#x95F4;&#x901A;&#x8FC7; API &#x8BBF;&#x95EE;&#xFF0C;&#x4FEE;&#x6539;&#x4E00;&#x4E2A;&#x670D;&#x52A1;&#x4E0D;&#x4F1A;&#x5F71;&#x54CD;&#x5176;&#x5B83;&#x670D;&#x52A1;&#x3002;</p>
<p>&#x8981;&#x60F3;&#x4E86;&#x89E3;&#x5FAE;&#x670D;&#x52A1;&#x7684;&#x8BE6;&#x7EC6;&#x5185;&#x5BB9;&#x63A8;&#x8350;&#x9605;&#x8BFB;&#x300A;&#x5FAE;&#x670D;&#x52A1;&#x8BBE;&#x8BA1;&#x300B;&#xFF08;Sam Newman &#x8457;&#xFF09;&#xFF0C;&#x6211;&#x5199;&#x8FC7;&#x8FD9;&#x672C;&#x4E66;&#x7684;&#x8BFB;&#x4E66;&#x7B14;&#x8BB0; - <a href="https://jimmysong.io/posts/microservice-reading-notes/" target="_blank">&#x5FAE;&#x670D;&#x52A1;&#x8BBE;&#x8BA1;&#x8BFB;&#x4E66;&#x7B14;&#x8BB0;</a>&#x3002;</p>
<p>&#x4E0B;&#x6587;&#x4E2D;&#x4F1A;&#x8C08;&#x5230; Kubernetes &#x4E0E;&#x5FAE;&#x670D;&#x52A1;&#x7684;&#x5173;&#x7CFB;&#xFF0C;&#x5176;&#x4E2D; Kubernetes &#x7684; service &#x5929;&#x751F;&#x5C31;&#x9002;&#x5408;&#x4E8E;&#x5FAE;&#x670D;&#x52A1;&#x3002;</p>
<h3 id="&#x4E91;&#x539F;&#x751F;&#x6982;&#x5FF5;&#x4ECB;&#x7ECD;">&#x4E91;&#x539F;&#x751F;&#x6982;&#x5FF5;&#x4ECB;&#x7ECD;</h3>
<p>&#x4E0B;&#x9762;&#x662F;&#x4E91;&#x539F;&#x751F;&#x6982;&#x5FF5;&#x601D;&#x7EF4;&#x5BFC;&#x56FE;</p>
<figure id="fig2.4.3"><a href="../images/cloud-native-architecutre-mindnode.jpg" data-lightbox="3e0ac732-c961-47b3-b3be-dfe7101f7eb3" data-title="&#x4E91;&#x539F;&#x751F;&#x601D;&#x7EF4;&#x5BFC;&#x56FE;"><img src="../images/cloud-native-architecutre-mindnode.jpg" alt="&#x4E91;&#x539F;&#x751F;&#x601D;&#x7EF4;&#x5BFC;&#x56FE;"></a><figcaption>&#x56FE; 2.4.3&#xFF1A;&#x4E91;&#x539F;&#x751F;&#x601D;&#x7EF4;&#x5BFC;&#x56FE;</figcaption></figure>
2018-04-17 10:22:52 +08:00
<p>&#x4E91;&#x539F;&#x751F;&#x51C6;&#x786E;&#x6765;&#x8BF4;&#x662F;&#x4E00;&#x79CD;&#x6587;&#x5316;&#xFF0C;&#x66F4;&#x662F;&#x4E00;&#x79CD;&#x6F6E;&#x6D41;&#xFF0C;&#x5B83;&#x662F;&#x4E91;&#x8BA1;&#x7B97;&#x7684;&#x4E00;&#x4E2A;&#x5FC5;&#x7136;&#x5BFC;&#x5411;&#x3002;&#x5B83;&#x7684;&#x610F;&#x4E49;&#x5728;&#x4E8E;&#x8BA9;&#x4E91;&#x6210;&#x4E3A;&#x4E91;&#x5316;&#x6218;&#x7565;&#x6210;&#x529F;&#x7684;&#x57FA;&#x77F3;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x963B;&#x788D;&#xFF0C;&#x5982;&#x679C;&#x4E1A;&#x52A1;&#x5E94;&#x7528;&#x4E0A;&#x4E91;&#x4E4B;&#x540E;&#x5F00;&#x53D1;&#x548C;&#x8FD0;&#x7EF4;&#x4EBA;&#x5458;&#x6BD4;&#x539F;&#x5148;&#x8FD8;&#x75DB;&#x82E6;&#xFF0C;&#x6210;&#x672C;&#x8FD8;&#x9AD8;&#x7684;&#x8BDD;&#xFF0C;&#x8FD9;&#x6837;&#x7684;&#x4E91;&#x6211;&#x4EEC;&#x5B81;&#x613F;&#x4E0D;&#x4E0A;&#x3002;</p>
2018-06-29 17:15:16 +08:00
<p>&#x81EA;&#x4ECE;&#x4E91;&#x7684;&#x6982;&#x5FF5;&#x5F00;&#x59CB;&#x666E;&#x53CA;&#xFF0C;&#x8BB8;&#x591A;&#x516C;&#x53F8;&#x90FD;&#x90E8;&#x7F72;&#x4E86;&#x5B9E;&#x65BD;&#x4E91;&#x5316;&#x7684;&#x7B56;&#x7565;&#xFF0C;&#x7EB7;&#x7EB7;&#x642D;&#x5EFA;&#x8D77;&#x4E91;&#x5E73;&#x53F0;&#xFF0C;&#x5E0C;&#x671B;&#x5B8C;&#x6210;&#x4F20;&#x7EDF;&#x5E94;&#x7528;&#x5230;&#x4E91;&#x7AEF;&#x7684;&#x8FC1;&#x79FB;&#x3002;&#x4F46;&#x662F;&#x8FD9;&#x4E2A;&#x8FC7;&#x7A0B;&#x4E2D;&#x4F1A;&#x9047;&#x5230;&#x4E00;&#x4E9B;&#x6280;&#x672F;&#x96BE;&#x9898;&#xFF0C;&#x4E0A;&#x4E91;&#x4EE5;&#x540E;&#xFF0C;&#x6548;&#x7387;&#x5E76;&#x6CA1;&#x6709;&#x53D8;&#x5F97;&#x66F4;&#x9AD8;&#xFF0C;&#x6545;&#x969C;&#x4E5F;&#x6CA1;&#x6709;&#x8FC5;&#x901F;&#x5B9A;&#x4F4D;&#x3002;</p>
<p>&#x4E3A;&#x4E86;&#x89E3;&#x51B3;&#x4F20;&#x7EDF;&#x5E94;&#x7528;&#x5347;&#x7EA7;&#x7F13;&#x6162;&#x3001;&#x67B6;&#x6784;&#x81C3;&#x80BF;&#x3001;&#x4E0D;&#x80FD;&#x5FEB;&#x901F;&#x8FED;&#x4EE3;&#x3001;&#x6545;&#x969C;&#x4E0D;&#x80FD;&#x5FEB;&#x901F;&#x5B9A;&#x4F4D;&#x3001;&#x95EE;&#x9898;&#x65E0;&#x6CD5;&#x5FEB;&#x901F;&#x89E3;&#x51B3;&#x7B49;&#x95EE;&#x9898;&#xFF0C;&#x4E91;&#x539F;&#x751F;&#x8FD9;&#x4E00;&#x6982;&#x5FF5;&#x6A2A;&#x7A7A;&#x51FA;&#x4E16;&#x3002;&#x4E91;&#x539F;&#x751F;&#x53EF;&#x4EE5;&#x6539;&#x8FDB;&#x5E94;&#x7528;&#x5F00;&#x53D1;&#x7684;&#x6548;&#x7387;&#xFF0C;&#x6539;&#x53D8;&#x4F01;&#x4E1A;&#x7684;&#x7EC4;&#x7EC7;&#x7ED3;&#x6784;&#xFF0C;&#x751A;&#x81F3;&#x4F1A;&#x5728;&#x6587;&#x5316;&#x5C42;&#x9762;&#x4E0A;&#x76F4;&#x63A5;&#x5F71;&#x54CD;&#x4E00;&#x4E2A;&#x516C;&#x53F8;&#x7684;&#x51B3;&#x7B56;&#x3002;</p>
<p>&#x53E6;&#x5916;&#xFF0C;&#x4E91;&#x539F;&#x751F;&#x4E5F;&#x5F88;&#x597D;&#x5730;&#x89E3;&#x91CA;&#x4E86;&#x4E91;&#x4E0A;&#x8FD0;&#x884C;&#x7684;&#x5E94;&#x7528;&#x5E94;&#x8BE5;&#x5177;&#x5907;&#x4EC0;&#x4E48;&#x6837;&#x7684;&#x67B6;&#x6784;&#x7279;&#x6027; &#x2014;&#x2014; &#x654F;&#x6377;&#x6027;&#x3001;&#x53EF;&#x6269;&#x5C55;&#x6027;&#x3001;&#x6545;&#x969C;&#x53EF;&#x6062;&#x590D;&#x6027;&#x3002;</p>
<p>&#x7EFC;&#x4E0A;&#x6240;&#x8FF0;&#xFF0C;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x5E94;&#x8BE5;&#x5177;&#x5907;&#x4EE5;&#x4E0B;&#x51E0;&#x4E2A;&#x5173;&#x952E;&#x8BCD;&#xFF1A;</p>
<ul>
<li>&#x654F;&#x6377;</li>
<li>&#x53EF;&#x9760;</li>
<li>&#x9AD8;&#x5F39;&#x6027;</li>
<li>&#x6613;&#x6269;&#x5C55;</li>
<li>&#x6545;&#x969C;&#x9694;&#x79BB;&#x4FDD;&#x62A4;</li>
<li>&#x4E0D;&#x4E2D;&#x65AD;&#x4E1A;&#x52A1;&#x6301;&#x7EED;&#x66F4;&#x65B0;</li>
</ul>
<p>&#x4EE5;&#x4E0A;&#x7279;&#x6027;&#x4E5F;&#x662F;&#x4E91;&#x539F;&#x751F;&#x533A;&#x522B;&#x4E8E;&#x4F20;&#x7EDF;&#x4E91;&#x5E94;&#x7528;&#x7684;&#x4F18;&#x52BF;&#x7279;&#x70B9;&#x3002;</p>
<p>&#x4ECE;&#x5B8F;&#x89C2;&#x6982;&#x5FF5;&#x4E0A;&#x8BB2;&#xFF0C;&#x4E91;&#x539F;&#x751F;&#x662F;&#x4E0D;&#x540C;&#x601D;&#x60F3;&#x7684;&#x96C6;&#x5408;&#xFF0C;&#x96C6;&#x76EE;&#x524D;&#x5404;&#x79CD;&#x70ED;&#x95E8;&#x6280;&#x672F;&#x4E4B;&#x5927;&#x6210;&#xFF0C;&#x5177;&#x4F53;&#x5305;&#x62EC;&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;&#x7684;&#x51E0;&#x4E2A;&#x90E8;&#x5206;&#x3002;</p>
<h2 id="kubernetes-&#x4E0E;&#x4E91;&#x539F;&#x751F;&#x7684;&#x5173;&#x7CFB;">Kubernetes &#x4E0E;&#x4E91;&#x539F;&#x751F;&#x7684;&#x5173;&#x7CFB;</h2>
<p>Kuberentes &#x53EF;&#x4EE5;&#x8BF4;&#x662F;&#x4E58;&#x7740; Docker &#x548C;&#x5FAE;&#x670D;&#x52A1;&#x7684;&#x4E1C;&#x98CE;&#xFF0C;&#x4E00;&#x7ECF;&#x63A8;&#x51FA;&#x4FBF;&#x8FC5;&#x901F;&#x8E7F;&#x7EA2;&#xFF0C;&#x5B83;&#x7684;&#x5F88;&#x591A;&#x8BBE;&#x8BA1;&#x601D;&#x60F3;&#x90FD;&#x5951;&#x5408;&#x4E86;&#x5FAE;&#x670D;&#x52A1;&#x548C;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x7684;&#x8BBE;&#x8BA1;&#x6CD5;&#x5219;&#xFF0C;&#x8FD9;&#x5176;&#x4E2D;&#x6700;&#x8457;&#x540D;&#x7684;&#x5C31;&#x662F;&#x5F00;&#x53D1;&#x4E86; <a href="https://www.heroku.com" target="_blank">Heroku</a> PaaS &#x5E73;&#x53F0;&#x7684;&#x5DE5;&#x7A0B;&#x5E08;&#x4EEC;&#x603B;&#x7ED3;&#x7684; <a href="https://12factor.net/" target="_blank">Twelve-factor App</a> &#x4E86;&#x3002;</p>
<p>&#x4E0B;&#x9762;&#x6211;&#x5C06;&#x8BB2;&#x89E3; Kubernetes &#x8BBE;&#x8BA1;&#x65F6;&#x662F;&#x5982;&#x4F55;&#x6309;&#x7167;&#x4E86;&#x5341;&#x4E8C;&#x56E0;&#x7D20;&#x5E94;&#x7528;&#x6CD5;&#x5219;&#xFF0C;&#x5E76;&#x7ED9;&#x51FA; Kubernetes &#x4E2D;&#x7684;&#x5E94;&#x7528;&#x793A;&#x4F8B;&#xFF0C;&#x5E76;&#x9644;&#x4E0A;&#x4E00;&#x53E5;&#x8BDD;&#x7B80;&#x77ED;&#x7684;&#x4ECB;&#x7ECD;&#x3002;</p>
<h3 id="kubernetes-&#x4ECB;&#x7ECD;">Kubernetes &#x4ECB;&#x7ECD;</h3>
<p><a href="http://kubernetes.io" target="_blank">Kubernetes</a> &#x662F; Google &#x57FA;&#x4E8E; <a href="https://research.google.com/pubs/pub43438.html" target="_blank">Borg</a> &#x5F00;&#x6E90;&#x7684;&#x5BB9;&#x5668;&#x7F16;&#x6392;&#x8C03;&#x5EA6;&#x5F15;&#x64CE;&#xFF0C;&#x4F5C;&#x4E3A; <a href="http://cncf.io" target="_blank">CNCF</a>&#xFF08;Cloud Native Computing Foundation&#xFF09;&#x6700;&#x91CD;&#x8981;&#x7684;&#x7EC4;&#x4EF6;&#x4E4B;&#x4E00;&#xFF0C;&#x5B83;&#x7684;&#x76EE;&#x6807;&#x4E0D;&#x4EC5;&#x4EC5;&#x662F;&#x4E00;&#x4E2A;&#x7F16;&#x6392;&#x7CFB;&#x7EDF;&#xFF0C;&#x800C;&#x662F;&#x63D0;&#x4F9B;&#x4E00;&#x4E2A;&#x89C4;&#x8303;&#xFF0C;&#x53EF;&#x4EE5;&#x8BA9;&#x4F60;&#x6765;&#x63CF;&#x8FF0;&#x96C6;&#x7FA4;&#x7684;&#x67B6;&#x6784;&#xFF0C;&#x5B9A;&#x4E49;&#x670D;&#x52A1;&#x7684;&#x6700;&#x7EC8;&#x72B6;&#x6001;&#xFF0C;Kubernetes &#x53EF;&#x4EE5;&#x5E2E;&#x4F60;&#x5C06;&#x7CFB;&#x7EDF;&#x81EA;&#x52A8;&#x5F97;&#x8FBE;&#x5230;&#x548C;&#x7EF4;&#x6301;&#x5728;&#x8FD9;&#x4E2A;&#x72B6;&#x6001;&#x3002;</p>
<p>&#x66F4;&#x76F4;&#x767D;&#x7684;&#x8BF4;&#xFF0C;Kubernetes &#x7528;&#x6237;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x7F16;&#x5199;&#x4E00;&#x4E2A; YAML &#x6216;&#x8005; json &#x683C;&#x5F0F;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x5DE5;&#x5177; / &#x4EE3;&#x7801;&#x751F;&#x6210;&#x6216;&#x76F4;&#x63A5;&#x8BF7;&#x6C42; Kubernetes API &#x521B;&#x5EFA;&#x5E94;&#x7528;&#xFF0C;&#x8BE5;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x5305;&#x542B;&#x4E86;&#x7528;&#x6237;&#x60F3;&#x8981;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x4FDD;&#x6301;&#x7684;&#x72B6;&#x6001;&#xFF0C;&#x4E0D;&#x8BBA;&#x6574;&#x4E2A; Kubernetes &#x96C6;&#x7FA4;&#x4E2D;&#x7684;&#x4E2A;&#x522B;&#x4E3B;&#x673A;&#x53D1;&#x751F;&#x4EC0;&#x4E48;&#x95EE;&#x9898;&#xFF0C;&#x90FD;&#x4E0D;&#x4F1A;&#x5F71;&#x54CD;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7684;&#x72B6;&#x6001;&#xFF0C;&#x4F60;&#x8FD8;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x6539;&#x53D8;&#x8BE5;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x6216;&#x8BF7;&#x6C42; Kubernetes API &#x6765;&#x6539;&#x53D8;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7684;&#x72B6;&#x6001;&#x3002;</p>
<h3 id="12-&#x56E0;&#x7D20;&#x5E94;&#x7528;">12 &#x56E0;&#x7D20;&#x5E94;&#x7528;</h3>
<p>12 &#x56E0;&#x7D20;&#x5E94;&#x7528;&#x63D0;&#x51FA;&#x5DF2;&#x7ECF;&#x6709;&#x51E0;&#x5E74;&#x7684;&#x65F6;&#x95F4;&#x4E86;&#xFF0C;&#x6BCF;&#x4E2A;&#x4EBA;&#x5BF9;&#x5176;&#x53EF;&#x80FD;&#x90FD;&#x6709;&#x81EA;&#x5DF1;&#x7684;&#x7406;&#x89E3;&#xFF0C;&#x5207;&#x4E0D;&#x53EF;&#x751F;&#x642C;&#x786C;&#x5957;&#xFF0C;&#x4E5F;&#x4E0D;&#x4E00;&#x5B9A;&#x6240;&#x6709;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x90FD;&#x5FC5;&#x987B;&#x7B26;&#x5408;&#x8FD9; 12 &#x6761;&#x6CD5;&#x5219;&#xFF0C;&#x5176;&#x4E2D;&#x6709;&#x51E0;&#x6761;&#x6CD5;&#x5219;&#x53EF;&#x80FD;&#x8FD8;&#x6709;&#x70B9;&#x4E89;&#x8BAE;&#xFF0C;&#x6709;&#x4EBA;&#x5BF9;&#x5176;&#x7684;&#x89E3;&#x91CA;&#x548C;&#x770B;&#x6CD5;&#x4E0D;&#x540C;&#x3002;</p>
<p>&#x5927;&#x5BB6;&#x4E0D;&#x8981;&#x5B64;&#x7ACB;&#x7684;&#x6765;&#x770B;&#x8FD9;&#x6BCF;&#x4E00;&#x4E2A;&#x56E0;&#x7D20;&#xFF0C;&#x5C06;&#x5176;&#x4E0E;&#x81EA;&#x5DF1;&#x8F6F;&#x4EF6;&#x5F00;&#x53D1;&#x6D41;&#x7A0B;&#x8054;&#x7CFB;&#x8D77;&#x6765;&#xFF0C;&#x8FD9; 12 &#x4E2A;&#x56E0;&#x7D20;&#x5927;&#x81F4;&#x5C31;&#x662F;&#x6309;&#x7167;&#x8F6F;&#x4EF6;&#x4ECE;&#x5F00;&#x53D1;&#x5230;&#x4EA4;&#x4ED8;&#x7684;&#x6D41;&#x7A0B;&#x987A;&#x5E8F;&#x6765;&#x5199;&#x7684;&#x3002;</p>
<figure id="fig2.4.4"><a href="../images/12-factor-app.png" data-lightbox="33493454-a8d4-4cb1-98bc-4a4d206b37b7" data-title="&#x5341;&#x4E8C;&#x56E0;&#x7D20;&#x5E94;&#x7528;"><img src="../images/12-factor-app.png" alt="&#x5341;&#x4E8C;&#x56E0;&#x7D20;&#x5E94;&#x7528;"></a><figcaption>&#x56FE; 2.4.4&#xFF1A;&#x5341;&#x4E8C;&#x56E0;&#x7D20;&#x5E94;&#x7528;</figcaption></figure>
<p><strong>1. &#x57FA;&#x51C6;&#x4EE3;&#x7801; </strong></p>
<p>&#x6BCF;&#x4E2A;&#x4EE3;&#x7801;&#x4ED3;&#x5E93;&#xFF08;repo&#xFF09;&#x90FD;&#x751F;&#x6210; docker image &#x4FDD;&#x5B58;&#x5230;&#x955C;&#x50CF;&#x4ED3;&#x5E93;&#x4E2D;&#xFF0C;&#x5E76;&#x4F7F;&#x7528;&#x552F;&#x4E00;&#x7684; ID &#x7BA1;&#x7406;&#xFF0C;&#x5728; Jenkins &#x4E2D;&#x4F7F;&#x7528;&#x7F16;&#x8BD1;&#x65F6;&#x7684; ID&#x3002;</p>
<p><strong>2. &#x4F9D;&#x8D56; </strong></p>
<p>&#x663E;&#x5F0F;&#x7684;&#x58F0;&#x660E;&#x4EE3;&#x7801;&#x4E2D;&#x7684;&#x4F9D;&#x8D56;&#xFF0C;&#x4F7F;&#x7528;&#x8F6F;&#x4EF6;&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;&#x58F0;&#x660E;&#xFF0C;&#x6BD4;&#x5982; Go &#x4E2D;&#x7684; Glide&#x3002;</p>
<p><strong>3. &#x914D;&#x7F6E; </strong></p>
<p>&#x5C06;&#x914D;&#x7F6E;&#x4E0E;&#x4EE3;&#x7801;&#x5206;&#x79BB;&#xFF0C;&#x5E94;&#x7528;&#x90E8;&#x7F72;&#x5230; Kubernetes &#x4E2D;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x5BB9;&#x5668;&#x7684;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x6216; ConfigMap &#x6302;&#x8F7D;&#x5230;&#x5BB9;&#x5668;&#x4E2D;&#x3002;</p>
<p><strong>4. &#x540E;&#x7AEF;&#x670D;&#x52A1; </strong></p>
<p>&#x628A;&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x5F53;&#x4F5C;&#x9644;&#x52A0;&#x8D44;&#x6E90;&#xFF0C;&#x5B9E;&#x8D28;&#x4E0A;&#x662F;&#x8BA1;&#x7B97;&#x5B58;&#x50A8;&#x5206;&#x79BB;&#x548C;&#x964D;&#x4F4E;&#x670D;&#x52A1;&#x8026;&#x5408;&#xFF0C;&#x5206;&#x89E3;&#x5355;&#x4F53;&#x5E94;&#x7528;&#x3002;</p>
<p><strong>5. &#x6784;&#x5EFA;&#x3001;&#x53D1;&#x5E03;&#x3001;&#x8FD0;&#x884C; </strong></p>
<p>&#x4E25;&#x683C;&#x5206;&#x79BB;&#x6784;&#x5EFA;&#x548C;&#x8FD0;&#x884C;&#xFF0C;&#x6BCF;&#x6B21;&#x4FEE;&#x6539;&#x4EE3;&#x7801;&#x751F;&#x6210;&#x65B0;&#x7684;&#x955C;&#x50CF;&#xFF0C;&#x91CD;&#x65B0;&#x53D1;&#x5E03;&#xFF0C;&#x4E0D;&#x80FD;&#x76F4;&#x63A5;&#x4FEE;&#x6539;&#x8FD0;&#x884C;&#x65F6;&#x7684;&#x4EE3;&#x7801;&#x548C;&#x914D;&#x7F6E;&#x3002;</p>
<p><strong>6. &#x8FDB;&#x7A0B; </strong></p>
<p>&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x8FDB;&#x7A0B;&#x5E94;&#x8BE5;&#x662F;&#x65E0;&#x72B6;&#x6001;&#x7684;&#xFF0C;&#x8FD9;&#x610F;&#x5473;&#x7740;&#x518D;&#x6B21;&#x91CD;&#x542F;&#x540E;&#x8FD8;&#x53EF;&#x4EE5;&#x8BA1;&#x7B97;&#x51FA;&#x539F;&#x5148;&#x7684;&#x72B6;&#x6001;&#x3002;</p>
<p><strong>7. &#x7AEF;&#x53E3;&#x7ED1;&#x5B9A; </strong></p>
<p>&#x5728; Kubernetes &#x4E2D;&#x6BCF;&#x4E2A; Pod &#x90FD;&#x6709;&#x72EC;&#x7ACB;&#x7684; IP&#xFF0C;&#x6BCF;&#x4E2A;&#x8FD0;&#x884C;&#x5728; Pod &#x4E2D;&#x7684;&#x5E94;&#x7528;&#x4E0D;&#x5FC5;&#x5173;&#x5FC3;&#x7AEF;&#x53E3;&#x662F;&#x5426;&#x91CD;&#x590D;&#xFF0C;&#x53EA;&#x9700;&#x5728; service &#x4E2D;&#x6307;&#x5B9A;&#x7AEF;&#x53E3;&#xFF0C;&#x96C6;&#x7FA4;&#x5185;&#x7684; service &#x901A;&#x8FC7;&#x914D;&#x7F6E;&#x4E92;&#x76F8;&#x53D1;&#x73B0;&#x3002;</p>
<p><strong>8. &#x5E76;&#x53D1; </strong></p>
<p>&#x6BCF;&#x4E2A;&#x5BB9;&#x5668;&#x90FD;&#x662F;&#x4E00;&#x4E2A;&#x8FDB;&#x7A0B;&#xFF0C;&#x901A;&#x8FC7;&#x589E;&#x52A0;&#x5BB9;&#x5668;&#x7684;&#x526F;&#x672C;&#x6570;&#x5B9E;&#x73B0;&#x5E76;&#x53D1;&#x3002;</p>
<p><strong>9. &#x6613;&#x5904;&#x7406; </strong></p>
<p>&#x5FEB;&#x901F;&#x542F;&#x52A8;&#x548C;&#x4F18;&#x96C5;&#x7EC8;&#x6B62;&#x53EF;&#x6700;&#x5927;&#x5316;&#x5065;&#x58EE;&#x6027;&#xFF0C;Kuberentes &#x4F18;&#x79C0;&#x7684; <a href="https://jimmysong.io/posts/pod-lifecycle/" target="_blank">Pod &#x751F;&#x5B58;&#x5468;&#x671F;&#x63A7;&#x5236;</a>&#x3002;</p>
<p><strong>10. &#x5F00;&#x53D1;&#x73AF;&#x5883;&#x4E0E;&#x7EBF;&#x4E0A;&#x73AF;&#x5883;&#x7B49;&#x4EF7; </strong></p>
<p>&#x5728; Kubernetes &#x4E2D;&#x53EF;&#x4EE5;&#x521B;&#x5EFA;&#x591A;&#x4E2A; namespace&#xFF0C;&#x4F7F;&#x7528;&#x76F8;&#x540C;&#x7684;&#x955C;&#x50CF;&#x53EF;&#x4EE5;&#x5F88;&#x65B9;&#x4FBF;&#x7684;&#x590D;&#x5236;&#x4E00;&#x5957;&#x73AF;&#x5883;&#x51FA;&#x6765;&#xFF0C;&#x955C;&#x50CF;&#x7684;&#x4F7F;&#x7528;&#x53EF;&#x4EE5;&#x5F88;&#x65B9;&#x4FBF;&#x7684;&#x90E8;&#x7F72;&#x4E00;&#x4E2A;&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x3002;</p>
<p><strong>11. &#x65E5;&#x5FD7; </strong></p>
<p>&#x628A;&#x65E5;&#x5FD7;&#x5F53;&#x4F5C;&#x4E8B;&#x4EF6;&#x6D41;&#xFF0C;&#x4F7F;&#x7528; stdout &#x8F93;&#x51FA;&#x5E76;&#x6536;&#x96C6;&#x6C47;&#x805A;&#x8D77;&#x6765;&#xFF0C;&#x4F8B;&#x5982;&#x5230; ES &#x4E2D;&#x7EDF;&#x4E00;&#x67E5;&#x770B;&#x3002;</p>
<p><strong>12. &#x7BA1;&#x7406;&#x8FDB;&#x7A0B; </strong></p>
<p>&#x540E;&#x53F0;&#x7BA1;&#x7406;&#x4EFB;&#x52A1;&#x5F53;&#x4F5C;&#x4E00;&#x6B21;&#x6027;&#x8FDB;&#x7A0B;&#x8FD0;&#x884C;&#xFF0C;<code>kubectl exec</code> &#x8FDB;&#x5165;&#x5BB9;&#x5668;&#x5185;&#x90E8;&#x64CD;&#x4F5C;&#x3002;</p>
<p>&#x53E6;&#x5916;&#xFF0C;<a href="https://jimmysong.io/cloud-native-go" target="_blank">Cloud Native Go</a> &#x8FD9;&#x672C;&#x4E66;&#x7684;&#x4F5C;&#x8005;&#xFF0C;CapitalOne &#x516C;&#x53F8;&#x7684; Kevin Hoffman &#x5728; TalkingData T11 &#x5CF0;&#x4F1A;&#x4E0A;&#x7684; <a href="https://jimmysong.io/blog/high-level-cloud-native-from-kevin-hoffman/" target="_blank">High Level Cloud Native</a> &#x7684;&#x6F14;&#x8BB2;&#x4E2D;&#x8BB2;&#x8FF0;&#x4E86;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x7684; 15 &#x4E2A;&#x56E0;&#x7D20;&#xFF0C;&#x5728;&#x539F;&#x5148;&#x7684; 12 &#x56E0;&#x7D20;&#x5E94;&#x7528;&#x7684;&#x57FA;&#x7840;&#x4E0A;&#x53C8;&#x589E;&#x52A0;&#x4E86;&#x5982;&#x4E0B;&#x4E09;&#x4E2A;&#x56E0;&#x7D20;&#xFF1A;</p>
<p><strong>API &#x4F18;&#x5148; </strong></p>
<ul>
<li>&#x670D;&#x52A1;&#x95F4;&#x7684;&#x5408;&#x7EA6;</li>
<li>&#x56E2;&#x961F;&#x534F;&#x4F5C;&#x7684;&#x89C4;&#x7EA6;</li>
<li>&#x6587;&#x6863;&#x5316;&#x3001;&#x89C4;&#x8303;&#x5316;</li>
<li>RESTful &#x6216; RPC</li>
</ul>
<p><strong>&#x76D1;&#x63A7;</strong></p>
<ul>
<li>&#x5B9E;&#x65F6;&#x76D1;&#x63A7;&#x8FDC;&#x7A0B;&#x5E94;&#x7528;</li>
<li>&#x5E94;&#x7528;&#x6027;&#x80FD;&#x76D1;&#x63A7;&#xFF08;APM&#xFF09;</li>
<li>&#x5E94;&#x7528;&#x5065;&#x5EB7;&#x76D1;&#x63A7;</li>
<li>&#x7CFB;&#x7EDF;&#x65E5;&#x5FD7;</li>
<li>&#x4E0D;&#x5EFA;&#x8BAE;&#x5728;&#x7EBF; Debug</li>
</ul>
<p><strong>&#x8BA4;&#x8BC1;&#x6388;&#x6743;</strong></p>
<ul>
<li>&#x4E0D;&#x8981;&#x7B49;&#x6700;&#x540E;&#x624D;&#x53BB;&#x8003;&#x8651;&#x5E94;&#x7528;&#x7684;&#x5B89;&#x5168;&#x6027;</li>
<li>&#x8BE6;&#x7EC6;&#x8BBE;&#x8BA1;&#x3001;&#x660E;&#x786E;&#x58F0;&#x660E;&#x3001;&#x6587;&#x6863;&#x5316;</li>
<li>Bearer token&#x3001;OAuth&#x3001;OIDC &#x8BA4;&#x8BC1;</li>
<li>&#x64CD;&#x4F5C;&#x5BA1;&#x8BA1;</li>
</ul>
<h2 id="kubernetes-&#x4E2D;&#x7684;&#x8D44;&#x6E90;&#x7BA1;&#x7406;&#x4E0E;&#x5BB9;&#x5668;&#x8BBE;&#x8BA1;&#x6A21;&#x5F0F;">Kubernetes &#x4E2D;&#x7684;&#x8D44;&#x6E90;&#x7BA1;&#x7406;&#x4E0E;&#x5BB9;&#x5668;&#x8BBE;&#x8BA1;&#x6A21;&#x5F0F;</h2>
<p>Kubernetes &#x901A;&#x8FC7;&#x58F0;&#x660E;&#x5F0F;&#x914D;&#x7F6E;&#xFF0C;&#x771F;&#x6B63;&#x8BA9;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x80FD;&#x591F;&#x7406;&#x89E3;&#x5E94;&#x7528;&#x7684;&#x72B6;&#x6001;&#xFF0C;&#x5E76;&#x901A;&#x8FC7;&#x540C;&#x4E00;&#x4EFD;&#x914D;&#x7F6E;&#x53EF;&#x4EE5;&#x7ACB;&#x9A6C;&#x542F;&#x52A8;&#x4E00;&#x4E2A;&#x4E00;&#x6A21;&#x4E00;&#x6837;&#x7684;&#x73AF;&#x5883;&#xFF0C;&#x5927;&#x5927;&#x63D0;&#x9AD8;&#x4E86;&#x5E94;&#x7528;&#x5F00;&#x53D1;&#x548C;&#x90E8;&#x7F72;&#x7684;&#x6548;&#x7387;&#xFF0C;&#x5176;&#x4E2D; Kubernetes &#x8BBE;&#x8BA1;&#x7684;&#x591A;&#x79CD;&#x8D44;&#x6E90;&#x7C7B;&#x578B;&#x53EF;&#x4EE5;&#x5E2E;&#x52A9;&#x6211;&#x4EEC;&#x5B9A;&#x4E49;&#x5E94;&#x7528;&#x7684;&#x8FD0;&#x884C;&#x72B6;&#x6001;&#xFF0C;&#x5E76;&#x4F7F;&#x7528;&#x8D44;&#x6E90;&#x914D;&#x7F6E;&#x6765;&#x7EC6;&#x7C92;&#x5EA6;&#x7684;&#x660E;&#x786E;&#x9650;&#x5236;&#x5E94;&#x7528;&#x7684;&#x8D44;&#x6E90;&#x4F7F;&#x7528;&#x3002;</p>
2017-11-10 17:03:15 +08:00
<p>&#x800C;&#x5BB9;&#x5668;&#x751F;&#x6001;&#x7684;&#x6210;&#x719F;&#x662F; Kubernetes &#x8BDE;&#x751F;&#x7684;&#x524D;&#x63D0;&#xFF0C;&#x5728;&#x8C08;&#x5230;&#x5BB9;&#x5668;&#x7684;&#x8BBE;&#x8BA1;&#x6A21;&#x5F0F;&#x4E4B;&#x524D;&#x6211;&#x4EEC;&#x5148;&#x6765;&#x4E86;&#x89E3;&#x4E0B;&#x5BB9;&#x5668;&#x751F;&#x6001;&#xFF0C;&#x8BF7;&#x770B;&#x4E0B;&#x56FE;&#xFF1A;</p>
<figure id="fig2.4.5"><a href="../images/container-ecosystem.png" data-lightbox="772aa2ca-3c95-4903-a217-73fc661ab43e" data-title="&#x5BB9;&#x5668;&#x751F;&#x6001;"><img src="../images/container-ecosystem.png" alt="&#x5BB9;&#x5668;&#x751F;&#x6001;"></a><figcaption>&#x56FE; 2.4.5&#xFF1A;&#x5BB9;&#x5668;&#x751F;&#x6001;</figcaption></figure>
<p>&#x5173;&#x4E8E; Docker &#x5BB9;&#x5668;&#x7684;&#x66F4;&#x591A;&#x5185;&#x5BB9;&#x8BF7;&#x53C2;&#x8003; <a href="../appendix/docker-best-practice.md">Docker &#x6700;&#x4F73;&#x5B9E;&#x8DF5;</a>&#x3002;</p>
<h3 id="&#x5BB9;&#x5668;&#x7684;&#x8BBE;&#x8BA1;&#x6A21;&#x5F0F;">&#x5BB9;&#x5668;&#x7684;&#x8BBE;&#x8BA1;&#x6A21;&#x5F0F;</h3>
<p>Kubernetes &#x63D0;&#x4F9B;&#x4E86;&#x591A;&#x79CD;&#x8D44;&#x6E90;&#x5BF9;&#x8C61;&#xFF0C;&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x81EA;&#x5DF1;&#x5E94;&#x7528;&#x7684;&#x7279;&#x6027;&#x52A0;&#x4EE5;&#x9009;&#x62E9;&#x3002;&#x8FD9;&#x4E9B;&#x5BF9;&#x8C61;&#x6709;&#xFF1A;</p>
<table>
<thead>
<tr>
<th style="text-align:left">&#x7C7B;&#x522B;</th>
<th>&#x540D;&#x79F0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">&#x8D44;&#x6E90;&#x5BF9;&#x8C61;</td>
2018-06-29 17:15:16 +08:00
<td>Pod&#x3001;ReplicaSet&#x3001;ReplicationController&#x3001;Deployment&#x3001;StatefulSet&#x3001;DaemonSet&#x3001;Job&#x3001;CronJob&#x3001;HorizontalPodAutoscaler</td>
</tr>
<tr>
<td style="text-align:left">&#x914D;&#x7F6E;&#x5BF9;&#x8C61;</td>
2018-06-29 17:15:16 +08:00
<td>Node&#x3001;Namespace&#x3001;Service&#x3001;Secret&#x3001;ConfigMap&#x3001;Ingress&#x3001;Label&#x3001;CustomResourceDefinition&#x3001; ServiceAccount</td>
</tr>
<tr>
<td style="text-align:left">&#x5B58;&#x50A8;&#x5BF9;&#x8C61;</td>
<td>Volume&#x3001;Persistent Volume</td>
</tr>
<tr>
<td style="text-align:left">&#x7B56;&#x7565;&#x5BF9;&#x8C61;</td>
<td>SecurityContext&#x3001;ResourceQuota&#x3001;LimitRange</td>
</tr>
</tbody>
</table>
<p>&#x5728; Kubernetes &#x7CFB;&#x7EDF;&#x4E2D;&#xFF0C;<em>Kubernetes &#x5BF9;&#x8C61;</em> &#x662F;&#x6301;&#x4E45;&#x5316;&#x7684;&#x6761;&#x76EE;&#x3002;Kubernetes &#x4F7F;&#x7528;&#x8FD9;&#x4E9B;&#x6761;&#x76EE;&#x53BB;&#x8868;&#x793A;&#x6574;&#x4E2A;&#x96C6;&#x7FA4;&#x7684;&#x72B6;&#x6001;&#x3002;&#x7279;&#x522B;&#x5730;&#xFF0C;&#x5B83;&#x4EEC;&#x63CF;&#x8FF0;&#x4E86;&#x5982;&#x4E0B;&#x4FE1;&#x606F;&#xFF1A;</p>
<ul>
<li>&#x4EC0;&#x4E48;&#x5BB9;&#x5668;&#x5316;&#x5E94;&#x7528;&#x5728;&#x8FD0;&#x884C;&#xFF08;&#x4EE5;&#x53CA;&#x5728;&#x54EA;&#x4E2A; Node &#x4E0A;&#xFF09;</li>
<li>&#x53EF;&#x4EE5;&#x88AB;&#x5E94;&#x7528;&#x4F7F;&#x7528;&#x7684;&#x8D44;&#x6E90;</li>
<li>&#x5173;&#x4E8E;&#x5E94;&#x7528;&#x5982;&#x4F55;&#x8868;&#x73B0;&#x7684;&#x7B56;&#x7565;&#xFF0C;&#x6BD4;&#x5982;&#x91CD;&#x542F;&#x7B56;&#x7565;&#x3001;&#x5347;&#x7EA7;&#x7B56;&#x7565;&#xFF0C;&#x4EE5;&#x53CA;&#x5BB9;&#x9519;&#x7B56;&#x7565;</li>
</ul>
<p>Kubernetes &#x5BF9;&#x8C61;&#x662F; &#x201C;&#x76EE;&#x6807;&#x6027;&#x8BB0;&#x5F55;&#x201D; &#x2014;&#x2014; &#x4E00;&#x65E6;&#x521B;&#x5EFA;&#x5BF9;&#x8C61;&#xFF0C;Kubernetes &#x7CFB;&#x7EDF;&#x5C06;&#x6301;&#x7EED;&#x5DE5;&#x4F5C;&#x4EE5;&#x786E;&#x4FDD;&#x5BF9;&#x8C61;&#x5B58;&#x5728;&#x3002;&#x901A;&#x8FC7;&#x521B;&#x5EFA;&#x5BF9;&#x8C61;&#xFF0C;&#x53EF;&#x4EE5;&#x6709;&#x6548;&#x5730;&#x544A;&#x77E5; Kubernetes &#x7CFB;&#x7EDF;&#xFF0C;&#x6240;&#x9700;&#x8981;&#x7684;&#x96C6;&#x7FA4;&#x5DE5;&#x4F5C;&#x8D1F;&#x8F7D;&#x770B;&#x8D77;&#x6765;&#x662F;&#x4EC0;&#x4E48;&#x6837;&#x5B50;&#x7684;&#xFF0C;&#x8FD9;&#x5C31;&#x662F; Kubernetes &#x96C6;&#x7FA4;&#x7684; <strong> &#x671F;&#x671B;&#x72B6;&#x6001; </strong>&#x3002;</p>
<p>&#x8BE6;&#x89C1; <a href="https://jimmysong.io/kubernetes-handbook/concepts/objects.html" target="_blank">Kubernetes Handbook - Objects</a>&#x3002;</p>
<h3 id="&#x8D44;&#x6E90;&#x9650;&#x5236;&#x4E0E;&#x914D;&#x989D;">&#x8D44;&#x6E90;&#x9650;&#x5236;&#x4E0E;&#x914D;&#x989D;</h3>
<p>&#x4E24;&#x5C42;&#x7684;&#x8D44;&#x6E90;&#x9650;&#x5236;&#x4E0E;&#x914D;&#x7F6E;</p>
<ul>
<li>Pod &#x7EA7;&#x522B;&#xFF0C;&#x6700;&#x5C0F;&#x7684;&#x8D44;&#x6E90;&#x8C03;&#x5EA6;&#x5355;&#x4F4D;</li>
<li>Namespace &#x7EA7;&#x522B;&#xFF0C;&#x9650;&#x5236;&#x8D44;&#x6E90;&#x914D;&#x989D;&#x548C;&#x6BCF;&#x4E2A; Pod &#x7684;&#x8D44;&#x6E90;&#x4F7F;&#x7528;&#x533A;&#x95F4;</li>
</ul>
<p>&#x8BF7;&#x53C2;&#x8003; <a href="https://jimmysong.io/posts/kubernetes-resourcequota-limitrange-management/" target="_blank">Kubernetes &#x4E2D;&#x7684; ResourceQuota &#x548C; LimitRange &#x914D;&#x7F6E;&#x8D44;&#x6E90;&#x9650;&#x989D;</a></p>
<h2 id="&#x7BA1;&#x7406;-kubernetes-&#x96C6;&#x7FA4;">&#x7BA1;&#x7406; Kubernetes &#x96C6;&#x7FA4;</h2>
<p>&#x624B;&#x5DE5;&#x90E8;&#x7F72; Kubernetes &#x662F;&#x4E00;&#x4E2A;&#x5F88;&#x8270;&#x5DE8;&#x7684;&#x6D3B;&#xFF0C;&#x4F60;&#x9700;&#x8981;&#x4E86;&#x89E3;&#x7F51;&#x7EDC;&#x914D;&#x7F6E;&#x3001;Docker &#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x4F7F;&#x7528;&#x3001;&#x955C;&#x50CF;&#x4ED3;&#x5E93;&#x7684;&#x6784;&#x5EFA;&#x3001;&#x89D2;&#x8272;&#x8BC1;&#x4E66;&#x7684;&#x521B;&#x5EFA;&#x3001;Kubernetes &#x7684;&#x57FA;&#x672C;&#x539F;&#x7406;&#x548C;&#x6784;&#x6210;&#x3001;Kubernetes &#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7684; yaml &#x6587;&#x4EF6;&#x7F16;&#x5199;&#x7B49;&#x3002;</p>
<p>&#x6211;&#x7F16;&#x5199;&#x4E86;&#x4E00;&#x672C; <a href="https://jimmysong.io/kubernetes-handbook/" target="_blank">kubernetes-handbook</a> &#x53EF;&#x4F9B;&#x5927;&#x5BB6;&#x514D;&#x8D39;&#x9605;&#x8BFB;&#xFF0C;&#x8BE5;&#x4E66;&#x8BB0;&#x5F55;&#x4E86;&#x672C;&#x4EBA;&#x4ECE;&#x96F6;&#x5F00;&#x59CB;&#x5B66;&#x4E60;&#x548C;&#x4F7F;&#x7528; Kubernetes &#x7684;&#x5FC3;&#x8DEF;&#x5386;&#x7A0B;&#xFF0C;&#x7740;&#x91CD;&#x4E8E;&#x7ECF;&#x9A8C;&#x5206;&#x4EAB;&#x548C;&#x603B;&#x7ED3;&#xFF0C;&#x540C;&#x65F6;&#x4E5F;&#x4F1A;&#x6709;&#x76F8;&#x5173;&#x7684;&#x6982;&#x5FF5;&#x89E3;&#x6790;&#xFF0C;&#x5E0C;&#x671B;&#x80FD;&#x591F;&#x5E2E;&#x52A9;&#x5927;&#x5BB6;&#x5C11;&#x8E29;&#x5751;&#xFF0C;&#x5C11;&#x8D70;&#x5F2F;&#x8DEF;&#x3002;</p>
<h3 id="&#x90E8;&#x7F72;-kubernetes-&#x96C6;&#x7FA4;">&#x90E8;&#x7F72; Kubernetes &#x96C6;&#x7FA4;</h3>
<p>&#x4F7F;&#x7528;&#x4E8C;&#x8FDB;&#x5236;&#x90E8;&#x7F72; <code>kubernetes</code> &#x96C6;&#x7FA4;&#x7684;&#x6240;&#x6709;&#x7EC4;&#x4EF6;&#x548C;&#x63D2;&#x4EF6;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x4F7F;&#x7528; <code>kubeadm</code> &#x7B49;&#x81EA;&#x52A8;&#x5316;&#x65B9;&#x5F0F;&#x6765;&#x90E8;&#x7F72;&#x96C6;&#x7FA4;&#xFF0C;&#x540C;&#x65F6;&#x5F00;&#x542F;&#x4E86;&#x96C6;&#x7FA4;&#x7684; TLS &#x5B89;&#x5168;&#x8BA4;&#x8BC1;&#xFF0C;&#x8FD9;&#x6837;&#x53EF;&#x4EE5;&#x5E2E;&#x52A9;&#x6211;&#x4EEC;&#x4E86;&#x89E3;&#x7CFB;&#x7EDF;&#x5404;&#x7EC4;&#x4EF6;&#x7684;&#x4EA4;&#x4E92;&#x539F;&#x7406;&#xFF0C;&#x8FDB;&#x800C;&#x80FD;&#x5FEB;&#x901F;&#x89E3;&#x51B3;&#x5B9E;&#x9645;&#x95EE;&#x9898;&#x3002;&#x8BE6;&#x89C1; <a href="../practice/install-kubernetes-on-centos.html">&#x5728; CentOS &#x4E0A;&#x90E8;&#x7F72; Kubernetes &#x96C6;&#x7FA4;</a>&#x3002;</p>
<p><strong>&#x96C6;&#x7FA4;&#x8BE6;&#x60C5;</strong></p>
<ul>
<li>Kubernetes 1.6.0</li>
<li>Docker 1.12.5&#xFF08;&#x4F7F;&#x7528; yum &#x5B89;&#x88C5;&#xFF09;</li>
<li>Etcd 3.1.5</li>
<li>Flanneld 0.7 vxlan &#x7F51;&#x7EDC;</li>
<li>TLS &#x8BA4;&#x8BC1;&#x901A;&#x4FE1; (&#x6240;&#x6709;&#x7EC4;&#x4EF6;&#xFF0C;&#x5982; etcd&#x3001;kubernetes master &#x548C; node)</li>
<li>RBAC &#x6388;&#x6743;</li>
2018-06-29 17:15:16 +08:00
<li>kubelet TLS BootStrapping</li>
<li>kubedns&#x3001;dashboard&#x3001;heapster(influxdb&#x3001;grafana)&#x3001;EFK(elasticsearch&#x3001;fluentd&#x3001;kibana) &#x96C6;&#x7FA4;&#x63D2;&#x4EF6;</li>
<li>&#x79C1;&#x6709; Docker &#x955C;&#x50CF;&#x4ED3;&#x5E93; <a href="https://github.com/goharbor/harbor" target="_blank">Harbor</a>&#xFF08;&#x8BF7;&#x81EA;&#x884C;&#x90E8;&#x7F72;&#xFF0C;Harbor &#x63D0;&#x4F9B;&#x79BB;&#x7EBF;&#x5B89;&#x88C5;&#x5305;&#xFF0C;&#x76F4;&#x63A5;&#x4F7F;&#x7528; docker-compose &#x542F;&#x52A8;&#x5373;&#x53EF;&#xFF09;</li>
</ul>
<p><strong>&#x6B65;&#x9AA4;&#x4ECB;&#x7ECD;</strong></p>
2017-12-20 17:27:16 +08:00
<ol>
<li><a href="../practice/create-tls-and-secret-key.html">&#x521B;&#x5EFA; TLS &#x8BC1;&#x4E66;&#x548C;&#x79D8;&#x94A5;</a></li>
<li><a href="../practice/create-kubeconfig.html">&#x521B;&#x5EFA; kubeconfig &#x6587;&#x4EF6;</a></li>
<li><a href="../practice/etcd-cluster-installation.html">&#x521B;&#x5EFA;&#x9AD8;&#x53EF;&#x7528; etcd &#x96C6;&#x7FA4;</a></li>
<li><a href="../practice/kubectl-installation.html">&#x5B89;&#x88C5; kubectl &#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;</a></li>
<li><a href="../practice/master-installation.html">&#x90E8;&#x7F72; master &#x8282;&#x70B9;</a></li>
<li><a href="../practice/flannel-installation.html">&#x5B89;&#x88C5; flannel &#x7F51;&#x7EDC;&#x63D2;&#x4EF6;</a></li>
<li><a href="../practice/node-installation.html">&#x90E8;&#x7F72; node &#x8282;&#x70B9;</a></li>
<li><a href="../practice/kubedns-addon-installation.html">&#x5B89;&#x88C5; kubedns &#x63D2;&#x4EF6;</a></li>
<li><a href="../practice/dashboard-addon-installation.html">&#x5B89;&#x88C5; dashboard &#x63D2;&#x4EF6;</a></li>
<li><a href="../practice/heapster-addon-installation.html">&#x5B89;&#x88C5; heapster &#x63D2;&#x4EF6;</a></li>
<li><a href="../practice/efk-addon-installation.html">&#x5B89;&#x88C5; EFK &#x63D2;&#x4EF6;</a></li>
2017-12-20 17:27:16 +08:00
</ol>
<h3 id="&#x670D;&#x52A1;&#x53D1;&#x73B0;&#x4E0E;&#x8D1F;&#x8F7D;&#x5747;&#x8861;">&#x670D;&#x52A1;&#x53D1;&#x73B0;&#x4E0E;&#x8D1F;&#x8F7D;&#x5747;&#x8861;</h3>
<p>Kubernetes &#x5728;&#x8BBE;&#x8BA1;&#x4E4B;&#x521D;&#x5C31;&#x5145;&#x5206;&#x8003;&#x8651;&#x4E86;&#x9488;&#x5BF9;&#x5BB9;&#x5668;&#x7684;&#x670D;&#x52A1;&#x53D1;&#x73B0;&#x4E0E;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x673A;&#x5236;&#xFF0C;&#x63D0;&#x4F9B;&#x4E86; Service &#x8D44;&#x6E90;&#xFF0C;&#x5E76;&#x901A;&#x8FC7; kube-proxy &#x914D;&#x5408; cloud provider &#x6765;&#x9002;&#x5E94;&#x4E0D;&#x540C;&#x7684;&#x5E94;&#x7528;&#x573A;&#x666F;&#x3002;&#x968F;&#x7740; Kubernetes &#x7528;&#x6237;&#x7684;&#x6FC0;&#x589E;&#xFF0C;&#x7528;&#x6237;&#x573A;&#x666F;&#x7684;&#x4E0D;&#x65AD;&#x4E30;&#x5BCC;&#xFF0C;&#x53C8;&#x4EA7;&#x751F;&#x4E86;&#x4E00;&#x4E9B;&#x65B0;&#x7684;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x673A;&#x5236;&#x3002;&#x76EE;&#x524D;&#xFF0C;Kubernetes &#x4E2D;&#x7684;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x5927;&#x81F4;&#x53EF;&#x4EE5;&#x5206;&#x4E3A;&#x4EE5;&#x4E0B;&#x51E0;&#x79CD;&#x673A;&#x5236;&#xFF0C;&#x6BCF;&#x79CD;&#x673A;&#x5236;&#x90FD;&#x6709;&#x5176;&#x7279;&#x5B9A;&#x7684;&#x5E94;&#x7528;&#x573A;&#x666F;&#xFF1A;</p>
<ul>
<li><strong>Service</strong>&#xFF1A;&#x76F4;&#x63A5;&#x7528; Service &#x63D0;&#x4F9B; cluster &#x5185;&#x90E8;&#x7684;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#xFF0C;&#x5E76;&#x501F;&#x52A9; cloud provider &#x63D0;&#x4F9B;&#x7684; LB &#x63D0;&#x4F9B;&#x5916;&#x90E8;&#x8BBF;&#x95EE;</li>
<li><strong>Ingress</strong>&#xFF1A;&#x8FD8;&#x662F;&#x7528; Service &#x63D0;&#x4F9B; cluster &#x5185;&#x90E8;&#x7684;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#xFF0C;&#x4F46;&#x662F;&#x901A;&#x8FC7;&#x81EA;&#x5B9A;&#x4E49; LB &#x63D0;&#x4F9B;&#x5916;&#x90E8;&#x8BBF;&#x95EE;</li>
<li><strong>Service Load Balancer</strong>&#xFF1A;&#x628A; load balancer &#x76F4;&#x63A5;&#x8DD1;&#x5728;&#x5BB9;&#x5668;&#x4E2D;&#xFF0C;&#x5B9E;&#x73B0; Bare Metal &#x7684; Service Load Balancer</li>
<li><strong>Custom Load Balancer</strong>&#xFF1A;&#x81EA;&#x5B9A;&#x4E49;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#xFF0C;&#x5E76;&#x66FF;&#x4EE3; kube-proxy&#xFF0C;&#x4E00;&#x822C;&#x5728;&#x7269;&#x7406;&#x90E8;&#x7F72; Kubernetes &#x65F6;&#x4F7F;&#x7528;&#xFF0C;&#x65B9;&#x4FBF;&#x63A5;&#x5165;&#x516C;&#x53F8;&#x5DF2;&#x6709;&#x7684;&#x5916;&#x90E8;&#x670D;&#x52A1;</li>
</ul>
<p>&#x8BE6;&#x89C1; <a href="https://jimmysong.io/kubernetes-handbook/practice/service-discovery-and-loadbalancing.html" target="_blank">Kubernetes Handbook - &#x670D;&#x52A1;&#x53D1;&#x73B0;&#x4E0E;&#x8D1F;&#x8F7D;&#x5747;&#x8861;</a>&#x3002;</p>
<h3 id="&#x6301;&#x7EED;&#x96C6;&#x6210;&#x4E0E;&#x53D1;&#x5E03;">&#x6301;&#x7EED;&#x96C6;&#x6210;&#x4E0E;&#x53D1;&#x5E03;</h3>
<figure id="fig2.4.6"><a href="../images/kubernetes-jenkins-ci-cd.png" data-lightbox="5bd974d6-a807-4b1b-a803-a8ee8b5d045a" data-title="&#x4F7F;&#x7528; Jenkins &#x8FDB;&#x884C;&#x6301;&#x7EED;&#x96C6;&#x6210;&#x4E0E;&#x53D1;&#x5E03;&#x6D41;&#x7A0B;&#x56FE;"><img src="../images/kubernetes-jenkins-ci-cd.png" alt="&#x4F7F;&#x7528; Jenkins &#x8FDB;&#x884C;&#x6301;&#x7EED;&#x96C6;&#x6210;&#x4E0E;&#x53D1;&#x5E03;&#x6D41;&#x7A0B;&#x56FE;"></a><figcaption>&#x56FE; 2.4.6&#xFF1A;&#x4F7F;&#x7528; Jenkins &#x8FDB;&#x884C;&#x6301;&#x7EED;&#x96C6;&#x6210;&#x4E0E;&#x53D1;&#x5E03;&#x6D41;&#x7A0B;&#x56FE;</figcaption></figure>
<p>&#x5E94;&#x7528;&#x6784;&#x5EFA;&#x548C;&#x53D1;&#x5E03;&#x6D41;&#x7A0B;&#x8BF4;&#x660E;&#xFF1A;</p>
<ol>
<li>&#x7528;&#x6237;&#x5411; Gitlab &#x63D0;&#x4EA4;&#x4EE3;&#x7801;&#xFF0C;&#x4EE3;&#x7801;&#x4E2D;&#x5FC5;&#x987B;&#x5305;&#x542B; <code>Dockerfile</code></li>
<li>&#x5C06;&#x4EE3;&#x7801;&#x63D0;&#x4EA4;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</li>
<li>&#x7528;&#x6237;&#x5728;&#x53D1;&#x5E03;&#x5E94;&#x7528;&#x65F6;&#x9700;&#x8981;&#x586B;&#x5199; git &#x4ED3;&#x5E93;&#x5730;&#x5740;&#x548C;&#x5206;&#x652F;&#x3001;&#x670D;&#x52A1;&#x7C7B;&#x578B;&#x3001;&#x670D;&#x52A1;&#x540D;&#x79F0;&#x3001;&#x8D44;&#x6E90;&#x6570;&#x91CF;&#x3001;&#x5B9E;&#x4F8B;&#x4E2A;&#x6570;&#xFF0C;&#x786E;&#x5B9A;&#x540E;&#x89E6;&#x53D1; Jenkins &#x81EA;&#x52A8;&#x6784;&#x5EFA;</li>
<li>Jenkins &#x7684; CI &#x6D41;&#x6C34;&#x7EBF;&#x81EA;&#x52A8;&#x7F16;&#x8BD1;&#x4EE3;&#x7801;&#x5E76;&#x6253;&#x5305;&#x6210; Docker &#x955C;&#x50CF;&#x63A8;&#x9001;&#x5230; Harbor &#x955C;&#x50CF;&#x4ED3;&#x5E93;</li>
<li>Jenkins &#x7684; CI &#x6D41;&#x6C34;&#x7EBF;&#x4E2D;&#x5305;&#x62EC;&#x4E86;&#x81EA;&#x5B9A;&#x4E49;&#x811A;&#x672C;&#xFF0C;&#x6839;&#x636E;&#x6211;&#x4EEC;&#x5DF2;&#x51C6;&#x5907;&#x597D;&#x7684; Kubernetes &#x7684; YAML &#x6A21;&#x677F;&#xFF0C;&#x5C06;&#x5176;&#x4E2D;&#x7684;&#x53D8;&#x91CF;&#x66FF;&#x6362;&#x6210;&#x7528;&#x6237;&#x8F93;&#x5165;&#x7684;&#x9009;&#x9879;</li>
<li>&#x751F;&#x6210;&#x5E94;&#x7528;&#x7684; Kubernetes YAML &#x914D;&#x7F6E;&#x6587;&#x4EF6;</li>
<li>&#x66F4;&#x65B0; Ingress &#x7684;&#x914D;&#x7F6E;&#xFF0C;&#x6839;&#x636E;&#x65B0;&#x90E8;&#x7F72;&#x7684;&#x5E94;&#x7528;&#x7684;&#x540D;&#x79F0;&#xFF0C;&#x5728; Ingress &#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x589E;&#x52A0;&#x4E00;&#x6761;&#x8DEF;&#x7531;&#x4FE1;&#x606F;</li>
<li>&#x66F4;&#x65B0; PowerDNS&#xFF0C;&#x5411;&#x5176;&#x4E2D;&#x63D2;&#x5165;&#x4E00;&#x6761; DNS &#x8BB0;&#x5F55;&#xFF0C;IP &#x5730;&#x5740;&#x662F;&#x8FB9;&#x7F18;&#x8282;&#x70B9;&#x7684; IP &#x5730;&#x5740;&#x3002;&#x5173;&#x4E8E;&#x8FB9;&#x7F18;&#x8282;&#x70B9;&#xFF0C;&#x8BF7;&#x67E5;&#x770B; <a href="https://jimmysong.io/kubernetes-handbook/practice/edge-node-configuration.html" target="_blank">&#x8FB9;&#x7F18;&#x8282;&#x70B9;&#x914D;&#x7F6E;</a></li>
<li>Jenkins &#x8C03;&#x7528; Kubernetes &#x7684; API&#xFF0C;&#x90E8;&#x7F72;&#x5E94;&#x7528;</li>
</ol>
<h3 id="&#x65E5;&#x5FD7;&#x6536;&#x96C6;&#x4E0E;&#x76D1;&#x63A7;">&#x65E5;&#x5FD7;&#x6536;&#x96C6;&#x4E0E;&#x76D1;&#x63A7;</h3>
<p>&#x57FA;&#x4E8E;&#x73B0;&#x6709;&#x7684; ELK &#x65E5;&#x5FD7;&#x6536;&#x96C6;&#x65B9;&#x6848;&#xFF0C;&#x7A0D;&#x4F5C;&#x6539;&#x9020;&#xFF0C;&#x9009;&#x7528; <a href="https://www.elastic.co/products/beats/filebeat" target="_blank">filebeat</a> &#x6765;&#x6536;&#x96C6;&#x65E5;&#x5FD7;&#xFF0C;&#x53EF;&#x4EE5;&#x4F5C;&#x4E3A; <a href="../GLOSSARY.html#sidecar" class="glossary-term" title="Sidecar&#xFF0C;&#x5168;&#x79F0; Sidecar proxy&#xFF0C;&#x4E3A;&#x5728;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x65C1;&#x8FD0;&#x884C;&#x7684;&#x5355;&#x72EC;&#x7684;&#x8FDB;&#x7A0B;&#xFF0C;&#x5B83;&#x53EF;&#x4EE5;&#x4E3A;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x6DFB;&#x52A0;&#x8BB8;&#x591A;&#x529F;&#x80FD;&#xFF0C;&#x800C;&#x65E0;&#x9700;&#x5728;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x4E2D;&#x6DFB;&#x52A0;&#x989D;&#x5916;&#x7684;&#x7B2C;&#x4E09;&#x65B9;&#x7EC4;&#x4EF6;&#xFF0C;&#x6216;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7684;&#x4EE3;&#x7801;&#x6216;&#x914D;&#x7F6E;&#x3002;">sidecar</a> &#x7684;&#x5F62;&#x5F0F;&#x8DDF;&#x5E94;&#x7528;&#x8FD0;&#x884C;&#x5728;&#x540C;&#x4E00;&#x4E2A; Pod &#x4E2D;&#xFF0C;&#x6BD4;&#x8F83;&#x8F7B;&#x91CF;&#x7EA7;&#x6D88;&#x8017;&#x8D44;&#x6E90;&#x6BD4;&#x8F83;&#x5C11;&#x3002;</p>
<figure id="fig2.4.7"><a href="../images/filebeat-log-collector-arch.png" data-lightbox="e60a7a6d-0fb2-4f0e-b3c4-c5e438c8907b" data-title="filebeat &#x65E5;&#x5FD7;&#x6536;&#x96C6;&#x67B6;&#x6784;&#x56FE;"><img src="../images/filebeat-log-collector-arch.png" alt="filebeat &#x65E5;&#x5FD7;&#x6536;&#x96C6;&#x67B6;&#x6784;&#x56FE;"></a><figcaption>&#x56FE; 2.4.7&#xFF1A;filebeat &#x65E5;&#x5FD7;&#x6536;&#x96C6;&#x67B6;&#x6784;&#x56FE;</figcaption></figure>
<p>&#x8BE6;&#x89C1; <a href="https://jimmysong.io/kubernetes-handbook/practice/app-log-collection.html" target="_blank">Kubernetes Handbook - &#x5E94;&#x7528;&#x65E5;&#x5FD7;&#x6536;&#x96C6;</a>&#x3002;</p>
<h3 id="&#x5B89;&#x5168;&#x6027;&#x4E0E;&#x6743;&#x9650;&#x7BA1;&#x7406;">&#x5B89;&#x5168;&#x6027;&#x4E0E;&#x6743;&#x9650;&#x7BA1;&#x7406;</h3>
<p>Kubernetes &#x662F;&#x4E00;&#x4E2A;&#x591A;&#x79DF;&#x6237;&#x7684;&#x4E91;&#x5E73;&#x53F0;&#xFF0C;&#x56E0;&#x6B64;&#x5FC5;&#x987B;&#x5BF9;&#x7528;&#x6237;&#x7684;&#x6743;&#x9650;&#x52A0;&#x4EE5;&#x9650;&#x5236;&#xFF0C;&#x5BF9;&#x7528;&#x6237;&#x7A7A;&#x95F4;&#x8FDB;&#x884C;&#x9694;&#x79BB;&#x3002;Kubernetes &#x4E2D;&#x7684;&#x9694;&#x79BB;&#x4E3B;&#x8981;&#x5305;&#x62EC;&#x8FD9;&#x51E0;&#x79CD;&#xFF1A;</p>
<ul>
<li>&#x7F51;&#x7EDC;&#x9694;&#x79BB;&#xFF1A;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x7F51;&#x7EDC;&#x63D2;&#x4EF6;&#xFF0C;&#x6BD4;&#x5982; <a href="https://coreos.com/flannel/" target="_blank">flannel</a>, <a href="https://www.projectcalico.org/" target="_blank">calico</a>&#x3002;</li>
<li>&#x8D44;&#x6E90;&#x9694;&#x79BB;&#xFF1A;kubernetes &#x539F;&#x751F;&#x652F;&#x6301;&#x8D44;&#x6E90;&#x9694;&#x79BB;&#xFF0C;pod &#x5C31;&#x662F;&#x8D44;&#x6E90;&#x9694;&#x79BB;&#x548C;&#x8C03;&#x5EA6;&#x7684;&#x6700;&#x5C0F;&#x5355;&#x4F4D;&#xFF0C;&#x540C;&#x65F6;&#x4F7F;&#x7528; <a href="https://jimmysong.io/kubernetes-handbook/concepts/namespace.html" target="_blank">namespace</a> &#x9650;&#x5236;&#x7528;&#x6237;&#x7A7A;&#x95F4;&#x548C;&#x8D44;&#x6E90;&#x9650;&#x989D;&#x3002;</li>
<li>&#x8EAB;&#x4EFD;&#x9694;&#x79BB;&#xFF1A;&#x4F7F;&#x7528; <a href="https://jimmysong.io/kubernetes-handbook/guide/rbac.html" target="_blank">RBAC - &#x57FA;&#x4E8E;&#x89D2;&#x8272;&#x7684;&#x8BBF;&#x95EE;&#x63A7;&#x5236;</a>&#xFF0C;&#x591A;&#x79DF;&#x6237;&#x7684;&#x8EAB;&#x4EFD;&#x8BA4;&#x8BC1;&#x548C;&#x6743;&#x9650;&#x63A7;&#x5236;&#x3002;</li>
</ul>
<h2 id="&#x5982;&#x4F55;&#x5F00;&#x53D1;-kubernetes-&#x539F;&#x751F;&#x5E94;&#x7528;&#x6B65;&#x9AA4;&#x4ECB;&#x7ECD;">&#x5982;&#x4F55;&#x5F00;&#x53D1; Kubernetes &#x539F;&#x751F;&#x5E94;&#x7528;&#x6B65;&#x9AA4;&#x4ECB;&#x7ECD;</h2>
<p>&#x5F53;&#x6211;&#x4EEC;&#x6709;&#x4E86;&#x4E00;&#x4E2A; kubernetes &#x96C6;&#x7FA4;&#x540E;&#xFF0C;&#x5982;&#x4F55;&#x5728;&#x4E0A;&#x9762;&#x5F00;&#x53D1;&#x548C;&#x90E8;&#x7F72;&#x5E94;&#x7528;&#xFF0C;&#x5E94;&#x8BE5;&#x9075;&#x5FAA;&#x600E;&#x6837;&#x7684;&#x6D41;&#x7A0B;&#xFF1F;&#x4E0B;&#x9762;&#x6211;&#x5C06;&#x5C55;&#x793A;&#x5982;&#x4F55;&#x4F7F;&#x7528; go &#x8BED;&#x8A00;&#x5F00;&#x53D1;&#x548C;&#x90E8;&#x7F72;&#x4E00;&#x4E2A; Kubernetes native &#x5E94;&#x7528;&#xFF0C;&#x4F7F;&#x7528; wercker &#x8FDB;&#x884C;&#x6301;&#x7EED;&#x96C6;&#x6210;&#x4E0E;&#x6301;&#x7EED;&#x53D1;&#x5E03;&#xFF0C;&#x6211;&#x5C06;&#x4EE5;&#x4E00;&#x4E2A;&#x5F88;&#x7B80;&#x5355;&#x7684;&#x524D;&#x540E;&#x7AEF;&#x8BBF;&#x95EE;&#xFF0C;&#x83B7;&#x53D6;&#x4F2A;&#x9020;&#x6570;&#x636E;&#x5E76;&#x5C55;&#x793A;&#x7684;&#x4F8B;&#x5B50;&#x6765;&#x8BF4;&#x660E;&#x3002;</p>
<h3 id="&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x5F00;&#x53D1;&#x793A;&#x4F8B;">&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x5F00;&#x53D1;&#x793A;&#x4F8B;</h3>
<p>&#x6211;&#x4EEC;&#x5C06;&#x6309;&#x7167;&#x5982;&#x4E0B;&#x6B65;&#x9AA4;&#x6765;&#x5F00;&#x53D1;&#x90E8;&#x7F72;&#x4E00;&#x4E2A; Kubernetes &#x539F;&#x751F;&#x5E94;&#x7528;&#x5E76;&#x5C06;&#x5B83;&#x90E8;&#x7F72;&#x5230; Kubernetes &#x96C6;&#x7FA4;&#x4E0A;&#x5F00;&#x653E;&#x7ED9;&#x96C6;&#x7FA4;&#x5916;&#x8BBF;&#x95EE;&#xFF1A;</p>
<ol>
<li>&#x670D;&#x52A1; API &#x7684;&#x5B9A;&#x4E49;</li>
<li>&#x4F7F;&#x7528; Go &#x8BED;&#x8A00;&#x5F00;&#x53D1; Kubernetes &#x539F;&#x751F;&#x5E94;&#x7528;</li>
<li>&#x4E00;&#x4E2A;&#x6301;&#x7EED;&#x6784;&#x5EFA;&#x4E0E;&#x53D1;&#x5E03;&#x5DE5;&#x5177;&#x4E0E;&#x73AF;&#x5883;</li>
<li>&#x4F7F;&#x7528; traefik &#x548C; VIP &#x505A;&#x8FB9;&#x7F18;&#x8282;&#x70B9;&#x63D0;&#x4F9B;&#x5916;&#x90E8;&#x8BBF;&#x95EE;&#x8DEF;&#x7531;</li>
</ol>
<p>&#x6211;&#x5199;&#x4E86;&#x4E24;&#x4E2A;&#x793A;&#x4F8B;&#x7528;&#x4E8E;&#x6F14;&#x793A;&#xFF0C;&#x5F00;&#x53D1;&#x90E8;&#x7F72;&#x4E00;&#x4E2A;&#x4F2A;&#x9020;&#x7684; metric &#x5E76;&#x663E;&#x793A;&#x5728; web &#x9875;&#x9762;&#x4E0A;&#xFF0C;&#x5305;&#x62EC;&#x4E24;&#x4E2A; service&#xFF1A;</p>
<ul>
<li><a href="https://github.com/rootsongjc/k8s-app-monitor-test" target="_blank">k8s-app-monitor-test</a>&#xFF1A;&#x751F;&#x6210;&#x6A21;&#x62DF;&#x7684;&#x76D1;&#x63A7;&#x6570;&#x636E;&#xFF0C;&#x53D1;&#x9001; http &#x8BF7;&#x6C42;&#xFF0C;&#x83B7;&#x53D6; json &#x8FD4;&#x56DE;&#x503C;</li>
<li><a href="https://github.com/rootsongjc/k8s-app-monitor-agent" target="_blank">K8s-app-monitor-agent</a>&#xFF1A;&#x83B7;&#x53D6;&#x76D1;&#x63A7;&#x6570;&#x636E;&#x5E76;&#x7ED8;&#x56FE;&#xFF0C;&#x8BBF;&#x95EE;&#x6D4F;&#x89C8;&#x5668;&#x83B7;&#x53D6;&#x56FE;&#x8868;</li>
</ul>
<p><strong>&#x5B9A;&#x4E49; API &#x751F;&#x6210; API&#x6587;&#x6863; </strong></p>
<p>&#x4F7F;&#x7528; <code>API blueprint</code> &#x683C;&#x5F0F;&#xFF0C;&#x5B9A;&#x4E49; API &#x6587;&#x6863;&#xFF0C;&#x683C;&#x5F0F;&#x7C7B;&#x4F3C;&#x4E8E; markdown&#xFF0C;&#x518D;&#x4F7F;&#x7528; <a href="https://github.com/danielgtaylor/aglio" target="_blank">aglio</a> &#x751F;&#x6210; HTML &#x6587;&#x6863;&#x3002;</p>
<figure id="fig2.4.8"><a href="../images/k8s-app-monitor-test-api-doc.jpg" data-lightbox="0fff451c-7b38-4419-9b73-5703345b4314" data-title="API &#x6587;&#x6863;"><img src="../images/k8s-app-monitor-test-api-doc.jpg" alt="API &#x6587;&#x6863;"></a><figcaption>&#x56FE; 2.4.8&#xFF1A;API &#x6587;&#x6863;</figcaption></figure>
<p>&#x8BE6;&#x89C1;&#xFF1A;<a href="https://jimmysong.io/posts/creating-cloud-native-app-with-kubernetes/" target="_blank">&#x5982;&#x4F55;&#x5F00;&#x53D1;&#x90E8;&#x7F72; Kubernetes Native &#x5E94;&#x7528;</a>&#x3002;</p>
<h2 id="&#x5982;&#x4F55;&#x8FC1;&#x79FB;&#x5230;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x67B6;&#x6784;">&#x5982;&#x4F55;&#x8FC1;&#x79FB;&#x5230;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x67B6;&#x6784;</h2>
<p>Pivotal&#xFF08;&#x540E;&#x88AB; VMware &#x6536;&#x8D2D;&#xFF09;&#x662F;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x7684;&#x63D0;&#x51FA;&#x8005;&#xFF0C;&#x5E76;&#x63A8;&#x51FA;&#x4E86; Pivotal Cloud Foundry &#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x5E73;&#x53F0;&#x548C; <a href="https://spring.io/" target="_blank">Spring</a> &#x5F00;&#x6E90; Java &#x5F00;&#x53D1;&#x6846;&#x67B6;&#xFF0C;&#x6210;&#x4E3A;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x67B6;&#x6784;&#x4E2D;&#x5148;&#x9A71;&#x8005;&#x548C;&#x63A2;&#x8DEF;&#x8005;&#x3002;</p>
<p>&#x539F;&#x4E66;&#x4F5C;&#x4E8E; 2015 &#x5E74;&#xFF0C;&#x5176;&#x4E2D;&#x7684;&#x793A;&#x4F8B;&#x4E3B;&#x8981;&#x9488;&#x5BF9; Java &#x5E94;&#x7528;&#xFF0C;&#x5B9E;&#x9645;&#x4E0A;&#x4E5F;&#x9002;&#x7528;&#x4E8E;&#x4EFB;&#x4F55;&#x5E94;&#x7528;&#x7C7B;&#x578B;&#xFF0C;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x67B6;&#x6784;&#x9002;&#x7528;&#x4E8E;&#x5F02;&#x6784;&#x8BED;&#x8A00;&#x7684;&#x7A0B;&#x5E8F;&#x5F00;&#x53D1;&#xFF0C;&#x4E0D;&#x4EC5;&#x4EC5;&#x662F;&#x9488;&#x5BF9; Java &#x8BED;&#x8A00;&#x7684;&#x7A0B;&#x5E8F;&#x5F00;&#x53D1;&#x3002;&#x622A;&#x6B62;&#x5230;&#x672C;&#x4EBA;&#x7FFB;&#x8BD1;&#x672C;&#x4E66;&#x65F6;&#xFF0C;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x751F;&#x6001;&#x7CFB;&#x7EDF;&#x5DF2;&#x7ECF;&#x521D;&#x5177;&#x89C4;&#x6A21;&#xFF0C;<a href="https://cncf.io/" target="_blank">CNCF</a> &#x6210;&#x5458;&#x4E0D;&#x65AD;&#x53D1;&#x5C55;&#x58EE;&#x5927;&#xFF0C;&#x57FA;&#x4E8E;&#x4E91;&#x539F;&#x751F;&#x7684;&#x521B;&#x4E1A;&#x516C;&#x53F8;&#x4E0D;&#x65AD;&#x6D8C;&#x73B0;&#xFF0C;<a href="https://kubernetes.io/" target="_blank">Kubernetes</a> &#x5F15;&#x9886;&#x5BB9;&#x5668;&#x7F16;&#x6392;&#x6F6E;&#x6D41;&#xFF0C;&#x548C; Service Mesh &#x6280;&#x672F;&#xFF08;&#x5982; <a href="https://linkerd.io/" target="_blank">Linkerd</a> &#x548C; <a href="https://istio.io/" target="_blank">Istio</a>&#xFF09; &#x7684;&#x51FA;&#x73B0;&#xFF0C;Go &#x8BED;&#x8A00;&#x7684;&#x5174;&#x8D77;&#xFF08;&#x53C2;&#x8003;&#x53E6;&#x4E00;&#x672C;&#x4E66; <a href="http://rootsongjc.github.io/cloud-native-go" target="_blank">Cloud Native Go</a>&#xFF09;&#x7B49;&#x4E3A;&#x6211;&#x4EEC;&#x5C06;&#x5E94;&#x7528;&#x8FC1;&#x79FB;&#x5230;&#x4E91;&#x539F;&#x751F;&#x67B6;&#x6784;&#x7684;&#x63D0;&#x4F9B;&#x4E86;&#x66F4;&#x591A;&#x7684;&#x65B9;&#x6848;&#x9009;&#x62E9;&#x3002;</p>
<h3 id="&#x8FC1;&#x79FB;&#x5230;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x67B6;&#x6784;&#x6307;&#x5357;">&#x8FC1;&#x79FB;&#x5230;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x67B6;&#x6784;&#x6307;&#x5357;</h3>
<p>&#x6307;&#x51FA;&#x4E86;&#x8FC1;&#x79FB;&#x5230;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x67B6;&#x6784;&#x9700;&#x8981;&#x505A;&#x51FA;&#x7684;&#x4F01;&#x4E1A;&#x6587;&#x5316;&#x3001;&#x7EC4;&#x7EC7;&#x67B6;&#x6784;&#x548C;&#x6280;&#x672F;&#x53D8;&#x9769;&#xFF0C;&#x5E76;&#x7ED9;&#x51FA;&#x4E86;&#x8FC1;&#x79FB;&#x6307;&#x5357;&#x3002;</p>
<p>&#x4E3B;&#x8981;&#x8BA8;&#x8BBA;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x67B6;&#x6784;&#x5305;&#x62EC;&#xFF1A;</p>
<ul>
<li>&#x5341;&#x4E8C;&#x56E0;&#x7D20;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#xFF1A;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x67B6;&#x6784;&#x6A21;&#x5F0F;&#x7684;&#x96C6;&#x5408;</li>
<li>&#x5FAE;&#x670D;&#x52A1;&#xFF1A;&#x72EC;&#x7ACB;&#x90E8;&#x7F72;&#x7684;&#x670D;&#x52A1;&#xFF0C;&#x53EA;&#x505A;&#x4E00;&#x4EF6;&#x4E8B;&#x60C5;</li>
<li>&#x81EA;&#x52A9;&#x670D;&#x52A1;&#x7684;&#x654F;&#x6377;&#x57FA;&#x7840;&#x8BBE;&#x65BD;&#xFF1A;&#x5FEB;&#x901F;&#xFF0C;&#x53EF;&#x91CD;&#x590D;&#x548C;&#x4E00;&#x81F4;&#x5730;&#x63D0;&#x4F9B;&#x5E94;&#x7528;&#x73AF;&#x5883;&#x548C;&#x540E;&#x53F0;&#x670D;&#x52A1;&#x7684;&#x5E73;&#x53F0;</li>
<li>&#x57FA;&#x4E8E; API &#x7684;&#x534F;&#x4F5C;&#xFF1A;&#x53D1;&#x5E03;&#x548C;&#x7248;&#x672C;&#x5316;&#x7684; API&#xFF0C;&#x5141;&#x8BB8;&#x5728;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x67B6;&#x6784;&#x4E2D;&#x7684;&#x670D;&#x52A1;&#x4E4B;&#x95F4;&#x8FDB;&#x884C;&#x4EA4;&#x4E92;</li>
<li>&#x6297;&#x538B;&#x6027;&#xFF1A;&#x6839;&#x636E;&#x538B;&#x529B;&#x53D8;&#x5F3A;&#x7684;&#x7CFB;&#x7EDF;</li>
</ul>
<p>&#x8BE6;&#x89C1;&#xFF1A;<a href="https://jimmysong.io/migrating-to-cloud-native-application-architectures/" target="_blank">&#x8FC1;&#x79FB;&#x5230;&#x4E91;&#x539F;&#x751F;&#x5E94;&#x7528;&#x67B6;&#x6784;</a>&#x3002;</p>
<h3 id="&#x8FC1;&#x79FB;&#x6848;&#x4F8B;&#x89E3;&#x6790;">&#x8FC1;&#x79FB;&#x6848;&#x4F8B;&#x89E3;&#x6790;</h3>
<p>&#x8FC1;&#x79FB;&#x6B65;&#x9AA4;&#x793A;&#x610F;&#x56FE;&#x5982;&#x4E0B;&#xFF1A;</p>
<figure id="fig2.4.9"><a href="../images/migrating-hadoop-yarn-to-kubernetes.png" data-lightbox="92038911-b626-4499-b7b6-69d8bf63d95b" data-title="&#x8FC1;&#x79FB;&#x6B65;&#x9AA4;&#x793A;&#x610F;&#x56FE;"><img src="../images/migrating-hadoop-yarn-to-kubernetes.png" alt="&#x8FC1;&#x79FB;&#x6B65;&#x9AA4;&#x793A;&#x610F;&#x56FE;"></a><figcaption>&#x56FE; 2.4.9&#xFF1A;&#x8FC1;&#x79FB;&#x6B65;&#x9AA4;&#x793A;&#x610F;&#x56FE;</figcaption></figure>
<p>&#x6B65;&#x9AA4;&#x8BF4;&#x660E;&#xFF1A;</p>
<ol>
<li>&#x5C06;&#x539F;&#x6709;&#x5E94;&#x7528;&#x62C6;&#x89E3;&#x4E3A;&#x670D;&#x52A1;</li>
<li>&#x5B9A;&#x4E49;&#x670D;&#x52A1;&#x7684;&#x63A5;&#x53E3; / API &#x901A;&#x4FE1;&#x65B9;&#x5F0F;</li>
2018-09-27 22:16:53 +08:00
<li>&#x7F16;&#x5199;&#x542F;&#x52A8;&#x811A;&#x672C;&#x4F5C;&#x4E3A;&#x5BB9;&#x5668;&#x7684;&#x8FDB;&#x7A0B;&#x5165;&#x53E3;</li>
<li>&#x51C6;&#x5907;&#x5E94;&#x7528;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</li>
2018-09-27 22:16:53 +08:00
<li>&#x5BB9;&#x5668;&#x5316;&#x3001;&#x5236;&#x4F5C;&#x955C;&#x50CF;</li>
<li>&#x51C6;&#x5907; Kubernetes YAML &#x6587;&#x4EF6;</li>
<li>&#x5982;&#x679C;&#x6709;&#x5916;&#x7F6E;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x9700;&#x8981;&#x521B;&#x5EFA; ConfigMap &#x6216; Secret &#x5B58;&#x50A8;</li>
</ol>
<p>&#x8BE6;&#x89C1;&#xFF1A;<a href="https://jimmysong.io/posts/migrating-hadoop-yarn-to-kubernetes/" target="_blank">&#x8FC1;&#x79FB;&#x4F20;&#x7EDF;&#x5E94;&#x7528;&#x5230; Kubernetes &#x6B65;&#x9AA4;&#x8BE6;&#x89E3; &#x2014;&#x2014; &#x4EE5; Hadoop YARN &#x4E3A;&#x4F8B;</a>&#x3002;</p>
<h2 id="service-mesh-&#x57FA;&#x672C;&#x539F;&#x7406;&#x548C;&#x793A;&#x4F8B;&#x4ECB;&#x7ECD;">Service Mesh &#x57FA;&#x672C;&#x539F;&#x7406;&#x548C;&#x793A;&#x4F8B;&#x4ECB;&#x7ECD;</h2>
<p>Service Mesh &#x73B0;&#x5728;&#x4E00;&#x822C;&#x88AB;&#x7FFB;&#x8BD1;&#x4F5C;&#x670D;&#x52A1;&#x7F51;&#x683C;&#xFF0C;&#x76EE;&#x524D;&#x4E3B;&#x6D41;&#x7684; Service Mesh &#x6709;&#x5982;&#x4E0B;&#x51E0;&#x6B3E;&#xFF1A;</p>
<ul>
<li><a href="https://istio.io" target="_blank">Istio</a>&#xFF1A;IBM&#x3001;Google&#x3001;Lyft &#x5171;&#x540C;&#x5F00;&#x6E90;&#xFF0C;&#x8BE6;&#x7EC6;&#x6587;&#x6863;&#x89C1; <a href="https://istio.io" target="_blank">Istio &#x5B98;&#x65B9;&#x6587;&#x6863;</a></li>
<li><a href="https://linkerd.io" target="_blank">Linkerd</a>&#xFF1A;&#x539F; Twitter &#x5DE5;&#x7A0B;&#x5E08;&#x5F00;&#x53D1;&#xFF0C;&#x73B0;&#x4E3A; <a href="https://cncf.io" target="_blank">CNCF</a> &#x4E2D;&#x7684;&#x9879;&#x76EE;&#x4E4B;&#x4E00;</li>
<li><a href="https://www.envoyproxy.io/" target="_blank">Envoy</a>&#xFF1A;Lyft &#x5F00;&#x6E90;&#x7684;&#xFF0C;&#x53EF;&#x4EE5;&#x5728; Istio &#x4E2D;&#x4F7F;&#x7528; <a href="../GLOSSARY.html#sidecar" class="glossary-term" title="Sidecar&#xFF0C;&#x5168;&#x79F0; Sidecar proxy&#xFF0C;&#x4E3A;&#x5728;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x65C1;&#x8FD0;&#x884C;&#x7684;&#x5355;&#x72EC;&#x7684;&#x8FDB;&#x7A0B;&#xFF0C;&#x5B83;&#x53EF;&#x4EE5;&#x4E3A;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x6DFB;&#x52A0;&#x8BB8;&#x591A;&#x529F;&#x80FD;&#xFF0C;&#x800C;&#x65E0;&#x9700;&#x5728;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x4E2D;&#x6DFB;&#x52A0;&#x989D;&#x5916;&#x7684;&#x7B2C;&#x4E09;&#x65B9;&#x7EC4;&#x4EF6;&#xFF0C;&#x6216;&#x4FEE;&#x6539;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7684;&#x4EE3;&#x7801;&#x6216;&#x914D;&#x7F6E;&#x3002;">Sidecar</a> &#x6A21;&#x5F0F;&#x8FD0;&#x884C;</li>
</ul>
<p>&#x6B64;&#x5916;&#x8FD8;&#x6709;&#x5F88;&#x591A;&#x5176;&#x5B83;&#x7684; Service Mesh &#x9C7C;&#x8D2F;&#x800C;&#x51FA;&#xFF0C;&#x8BF7;&#x53C2;&#x8003; <a href="https://jimmysong.io/awesome-cloud-native" target="_blank">awesome-cloud-native</a>&#x3002;</p>
<h3 id="&#x4EC0;&#x4E48;&#x662F;-service-mesh">&#x4EC0;&#x4E48;&#x662F; Service Mesh</h3>
2018-08-06 20:34:10 +08:00
<p>&#x5982;&#x679C;&#x7528;&#x4E00;&#x53E5;&#x8BDD;&#x6765;&#x89E3;&#x91CA;&#x4EC0;&#x4E48;&#x662F; Service Mesh&#xFF0C;&#x53EF;&#x4EE5;&#x5C06;&#x5B83;&#x6BD4;&#x4F5C;&#x662F;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x6216;&#x8005;&#x8BF4;&#x5FAE;&#x670D;&#x52A1;&#x95F4;&#x7684; TCP/IP&#xFF0C;&#x8D1F;&#x8D23;&#x670D;&#x52A1;&#x4E4B;&#x95F4;&#x7684;&#x7F51;&#x7EDC;&#x8C03;&#x7528;&#x3001;&#x9650;&#x6D41;&#x3001;&#x7194;&#x65AD;&#x548C;&#x76D1;&#x63A7;&#x3002;&#x5BF9;&#x4E8E;&#x7F16;&#x5199;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x6765;&#x8BF4;&#x4E00;&#x822C;&#x65E0;&#x987B;&#x5173;&#x5FC3; TCP/IP &#x8FD9;&#x4E00;&#x5C42;&#xFF08;&#x6BD4;&#x5982;&#x901A;&#x8FC7; HTTP &#x534F;&#x8BAE;&#x7684; RESTful &#x5E94;&#x7528;&#xFF09;&#xFF0C;&#x540C;&#x6837;&#x4F7F;&#x7528; Service Mesh &#x4E5F;&#x5C31;&#x65E0;&#x987B;&#x5173;&#x5FC3;&#x670D;&#x52A1;&#x4E4B;&#x95F4;&#x7684;&#x90A3;&#x4E9B;&#x539F;&#x6765;&#x662F;&#x901A;&#x8FC7;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x6216;&#x8005;&#x5176;&#x4ED6;&#x6846;&#x67B6;&#x5B9E;&#x73B0;&#x7684;&#x4E8B;&#x60C5;&#xFF0C;&#x6BD4;&#x5982; Spring Cloud&#x3001;OSS&#xFF0C;&#x73B0;&#x5728;&#x53EA;&#x8981;&#x4EA4;&#x7ED9; Service Mesh &#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;</p>
<figure id="fig2.4.10"><a href="../images/serivce-mesh-control-plane.png" data-lightbox="6f4b8410-a767-4f17-a958-883d81b6c0ec" data-title="service mesh &#x67B6;&#x6784;&#x56FE;"><img src="../images/serivce-mesh-control-plane.png" alt="service mesh &#x67B6;&#x6784;&#x56FE;"></a><figcaption>&#x56FE; 2.4.10&#xFF1A;service mesh &#x67B6;&#x6784;&#x56FE;</figcaption></figure>
<p>&#x8BE6;&#x89C1; <a href="https://jimmysong.io/blog/what-is-a-service-mesh/" target="_blank">&#x4EC0;&#x4E48;&#x662F; Service Mesh - jimmysong.io</a>&#x3002;</p>
<h2 id="&#x4F7F;&#x7528;&#x6848;&#x4F8B;">&#x4F7F;&#x7528;&#x6848;&#x4F8B;</h2>
<p>Kubernetes &#x4F5C;&#x4E3A;&#x4E91;&#x539F;&#x751F;&#x8BA1;&#x7B97;&#x7684;&#x57FA;&#x672C;&#x7EC4;&#x4EF6;&#x4E4B;&#x4E00;&#xFF0C;&#x81EA;&#x5F00;&#x6E90;&#x4EE5;&#x6765;&#x70ED;&#x5EA6;&#x4E0E;&#x65E5;&#x4FF1;&#x589E;&#xFF0C;&#x5B83;&#x53EF;&#x4EE5;&#x8DDF;&#x6211;&#x4EEC;&#x7684;&#x751F;&#x4EA7;&#x7ED3;&#x5408;&#xFF0C;&#x64E6;&#x51FA;&#x5F88;&#x591A;&#x706B;&#x82B1;&#xFF0C;&#x6BD4;&#x5982; FaaS &#x548C; Serverless &#x7C7B;&#x5E94;&#x7528;&#xFF0C;&#x90FD;&#x5F88;&#x9002;&#x5408;&#x8FD0;&#x884C;&#x5728; Kubernetes &#x4E0A;&#x3002;</p>
<p>&#x5173;&#x4E8E; Cloud Native &#x5F00;&#x6E90;&#x8F6F;&#x4EF6;&#x751F;&#x6001;&#x8BF7;&#x53C2;&#x8003; <a href="https://jimmysong.io/awesome-cloud-native" target="_blank">Awesome Cloud Native - jimmysong.io</a>&#x3002;</p>
<h3 id="devops">DevOps</h3>
<p>&#x4E0B;&#x9762;&#x662F;&#x793E;&#x533A;&#x4E2D; Kubernetes &#x5F00;&#x6E90;&#x7231;&#x597D;&#x8005;&#x7684;&#x5206;&#x4EAB;&#x5185;&#x5BB9;&#xFF0C;&#x6211;&#x89C9;&#x5F97;&#x662F;&#x5BF9; Kubernetes &#x5728; DevOps &#x4E2D;&#x5E94;&#x7528;&#x7684;&#x5F88;&#x597D;&#x7684;&#x5F62;&#x5F0F;&#x503C;&#x5F97;&#x5927;&#x5BB6;&#x501F;&#x9274;&#x3002;</p>
<p>&#x771F;&#x6B63;&#x8DF5;&#x884C; DevOps&#xFF0C;&#x8BA9;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x5728;&#x638C;&#x63E1;&#x81EA;&#x5DF1;&#x7684;&#x5F00;&#x53D1;&#x548C;&#x6D4B;&#x8BD5;&#x73AF;&#x5883;&#xFF0C;&#x8BA9;&#x73AF;&#x5883;&#x4E00;&#x81F4;&#xFF0C;&#x8BA9;&#x5F00;&#x53D1;&#x6548;&#x7387;&#x63D0;&#x5347;&#xFF0C;&#x8BA9;&#x8FD0;&#x7EF4;&#x6CA1;&#x6709;&#x5806;&#x79EF;&#x5982;&#x5C71;&#x7684; tickets&#xFF0C;&#x8BA9;&#x76D1;&#x63A7;&#x66F4;&#x52A0;&#x7CBE;&#x51C6;&#xFF0C;&#x4ECE; Kubernetes &#x5E73;&#x53F0;&#x5F00;&#x59CB;&#x3002;</p>
<p><strong>&#x884C;&#x52A8;&#x6307;&#x5357;</strong></p>
<ol>
<li>&#x6839;&#x636E;&#x73AF;&#x5883;&#xFF08;&#x6BD4;&#x5982;&#x5F00;&#x53D1;&#x3001;&#x6D4B;&#x8BD5;&#x3001;&#x751F;&#x4EA7;&#xFF09;&#x5212;&#x5206; <code>namespace</code>&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x9879;&#x76EE;&#x6765;&#x5212;&#x5206;</li>
<li>&#x518D;&#x4E3A;&#x6BCF;&#x4E2A;&#x7528;&#x6237;&#x5212;&#x5206;&#x4E00;&#x4E2A; <code>namespace</code>&#x3001;&#x521B;&#x5EFA;&#x4E00;&#x4E2A; <code>serviceaccount</code> &#x548C; <code>kubeconfig</code> &#x6587;&#x4EF6;&#xFF0C;&#x4E0D;&#x540C; <code>namespace</code> &#x95F4;&#x7684;&#x8D44;&#x6E90;&#x9694;&#x79BB;&#xFF0C;&#x76EE;&#x524D;&#x4E0D;&#x9694;&#x79BB;&#x7F51;&#x7EDC;&#xFF0C;&#x4E0D;&#x540C; <code>namespace</code> &#x95F4;&#x7684;&#x670D;&#x52A1;&#x53EF;&#x4EE5;&#x4E92;&#x76F8;&#x8BBF;&#x95EE;</li>
<li>&#x521B;&#x5EFA; YAML &#x6A21;&#x677F;&#xFF0C;&#x964D;&#x4F4E;&#x7F16;&#x5199; Kubernetes YAML &#x6587;&#x4EF6;&#x7F16;&#x5199;&#x96BE;&#x5EA6;</li>
<li>&#x5728; <code>kubectl</code> &#x547D;&#x4EE4;&#x4E0A;&#x518D;&#x5C01;&#x88C5;&#x4E00;&#x5C42;&#xFF0C;&#x589E;&#x52A0;&#x7528;&#x6237;&#x8EAB;&#x4EFD;&#x8BBE;&#x7F6E;&#x548C;&#x73AF;&#x5883;&#x521D;&#x59CB;&#x5316;&#x64CD;&#x4F5C;&#xFF0C;&#x7B80;&#x5316; <code>kubectl</code> &#x547D;&#x4EE4;&#x548C;&#x5E38;&#x7528;&#x529F;&#x80FD;</li>
<li>&#x7BA1;&#x7406;&#x5458;&#x901A;&#x8FC7; dashboard &#x67E5;&#x770B;&#x4E0D;&#x540C; <code>namespace</code> &#x7684;&#x72B6;&#x6001;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x5B83;&#x6765;&#x4F7F;&#x64CD;&#x4F5C;&#x66F4;&#x4FBF;&#x6377;</li>
<li>&#x6240;&#x6709;&#x5E94;&#x7528;&#x7684;&#x65E5;&#x5FD7;&#x7EDF;&#x4E00;&#x6536;&#x96C6;&#x5230; ElasticSearch &#x4E2D;&#xFF0C;&#x7EDF;&#x4E00;&#x65E5;&#x5FD7;&#x8BBF;&#x95EE;&#x5165;&#x53E3;</li>
<li>&#x53EF;&#x4EE5;&#x901A;&#x8FC7; Grafana &#x67E5;&#x770B;&#x6240;&#x6709; namespace &#x4E2D;&#x7684;&#x5E94;&#x7528;&#x7684;&#x72B6;&#x6001;&#x548C; kubernetes &#x96C6;&#x7FA4;&#x672C;&#x8EAB;&#x7684;&#x72B6;&#x6001;</li>
<li>&#x9700;&#x8981;&#x6301;&#x4E45;&#x5316;&#x7684;&#x6570;&#x636E;&#x4FDD;&#x5B58;&#x5728;&#x5206;&#x5E03;&#x5F0F;&#x5B58;&#x50A8;&#x4E2D;&#xFF0C;&#x4F8B;&#x5982; GlusterFS &#x6216; Ceph &#x4E2D;</li>
</ol>
<p><strong>&#x4F7F;&#x7528; Kibana &#x67E5;&#x770B;&#x65E5;&#x5FD7;</strong></p>
<p>&#x65E5;&#x5FD7;&#x5B57;&#x6BB5;&#x4E2D;&#x5305;&#x62EC;&#x4E86;&#x5E94;&#x7528;&#x7684;&#x6807;&#x7B7E;&#x3001;&#x5BB9;&#x5668;&#x540D;&#x79F0;&#x3001;&#x4E3B;&#x673A;&#x540D;&#x79F0;&#x3001;&#x5BBF;&#x4E3B;&#x673A;&#x540D;&#x79F0;&#x3001;IP &#x5730;&#x5740;&#x3001;&#x65F6;&#x95F4;&#x3002;</p>
<figure id="fig2.4.11"><a href="../images/filebeat-docker-test.jpg" data-lightbox="e14f259e-ebf0-4c67-ba5e-31f386ae8a99" data-title="kibana &#x754C;&#x9762;"><img src="../images/filebeat-docker-test.jpg" alt="kibana &#x754C;&#x9762;"></a><figcaption>&#x56FE; 2.4.11&#xFF1A;kibana &#x754C;&#x9762;</figcaption></figure>
<p><strong>&#x4F7F;&#x7528; Grafana &#x67E5;&#x770B;&#x5E94;&#x7528;&#x72B6;&#x6001;</strong></p>
<p><strong>&#x6CE8;</strong>&#xFF1A;&#x4EE5;&#x4E0B;&#x76D1;&#x63A7;&#x56FE;&#x7247;&#x7531;&#x4E91;&#x539F;&#x751F;&#x793E;&#x533A;&#x6D82;&#x5C0F;&#x521A;&#x63D0;&#x4F9B;</p>
<p>&#x76D1;&#x63A7;&#x5206;&#x7C7B;&#x793A;&#x610F;&#x56FE;&#xFF1A;</p>
<figure id="fig2.4.12"><a href="../images/kubernetes-devops-example-grafana-1.png" data-lightbox="7d9ca185-f88d-496e-bf1a-92d4493e2b19" data-title="Kubernetes &#x96C6;&#x7FA4;&#x5168;&#x5C40;&#x76D1;&#x63A7;&#x56FE; 1"><img src="../images/kubernetes-devops-example-grafana-1.png" alt="Kubernetes &#x96C6;&#x7FA4;&#x5168;&#x5C40;&#x76D1;&#x63A7;&#x56FE; 1"></a><figcaption>&#x56FE; 2.4.12&#xFF1A;Kubernetes &#x96C6;&#x7FA4;&#x5168;&#x5C40;&#x76D1;&#x63A7;&#x56FE; 1</figcaption></figure>
<p>&#x8BE5;&#x76D1;&#x63A7;&#x56FE;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x96C6;&#x7FA4;&#x786C;&#x4EF6;&#x4F7F;&#x7528;&#x60C5;&#x51B5;&#x3002;</p>
<figure id="fig2.4.13"><a href="../images/kubernetes-devops-example-grafana-2.png" data-lightbox="38134ae0-ddea-4505-a656-e97100c98d23" data-title="Kubernetes &#x5168;&#x5C40;&#x76D1;&#x63A7;&#x56FE; 2"><img src="../images/kubernetes-devops-example-grafana-2.png" alt="Kubernetes &#x5168;&#x5C40;&#x76D1;&#x63A7;&#x56FE; 2"></a><figcaption>&#x56FE; 2.4.13&#xFF1A;Kubernetes &#x5168;&#x5C40;&#x76D1;&#x63A7;&#x56FE; 2</figcaption></figure>
<p>&#x8BE5;&#x76D1;&#x63A7;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x5355;&#x4E2A;&#x7528;&#x6237;&#x7684; namespace &#x4E0B;&#x7684;&#x6240;&#x6709;&#x8D44;&#x6E90;&#x7684;&#x4F7F;&#x7528;&#x60C5;&#x51B5;&#x3002;</p>
<figure id="fig2.4.14"><a href="../images/kubernetes-devops-example-grafana-3.png" data-lightbox="4e8abb7c-1f5e-45f2-943c-2dc882e82661" data-title="Grafana &#x754C;&#x9762;&#x793A;&#x610F;&#x56FE; 3"><img src="../images/kubernetes-devops-example-grafana-3.png" alt="Grafana &#x754C;&#x9762;&#x793A;&#x610F;&#x56FE; 3"></a><figcaption>&#x56FE; 2.4.14&#xFF1A;Grafana &#x754C;&#x9762;&#x793A;&#x610F;&#x56FE; 3</figcaption></figure>
<h3 id="spark-on-kubernetes">Spark on Kubernetes</h3>
<p>Spark &#x539F;&#x751F;&#x652F;&#x6301; Standalone&#x3001;Mesos &#x548C; YARN &#x8D44;&#x6E90;&#x8C03;&#x5EA6;&#xFF0C;&#x73B0;&#x5DF2;&#x652F;&#x6301; Kubernetes &#x539F;&#x751F;&#x8C03;&#x5EA6;&#xFF0C;&#x8BE6;&#x89C1; <a href="https://jimmysong.io/spark-on-k8s" target="_blank">Spark on Kubernetes</a>&#x3002;</p>
<p><strong>&#x4E3A;&#x4F55;&#x8981;&#x4F7F;&#x7528; Spark on Kubernetes</strong></p>
<p>&#x4F7F;&#x7528; Kubernetes &#x539F;&#x751F;&#x8C03;&#x5EA6;&#x7684; Spark on Kubernetes &#x662F;&#x5BF9;&#x539F;&#x5148;&#x7684; Spark on YARN &#x548C; YARN on Docker &#x7684;&#x6539;&#x53D8;&#x662F;&#x9769;&#x547D;&#x6027;&#x7684;&#xFF0C;&#x4E3B;&#x8981;&#x8868;&#x73B0;&#x5728;&#x4EE5;&#x4E0B;&#x51E0;&#x70B9;&#xFF1A;</p>
<ol>
<li><strong>Kubernetes &#x539F;&#x751F;&#x8C03;&#x5EA6; </strong>&#xFF1A;&#x4E0D;&#x518D;&#x9700;&#x8981;&#x4E8C;&#x5C42;&#x8C03;&#x5EA6;&#xFF0C;&#x76F4;&#x63A5;&#x4F7F;&#x7528; Kubernetes &#x7684;&#x8D44;&#x6E90;&#x8C03;&#x5EA6;&#x529F;&#x80FD;&#xFF0C;&#x8DDF;&#x5176;&#x4ED6;&#x5E94;&#x7528;&#x5171;&#x7528;&#x6574;&#x4E2A; Kubernetes &#x7BA1;&#x7406;&#x7684;&#x8D44;&#x6E90;&#x6C60;&#xFF1B;</li>
<li><strong>&#x8D44;&#x6E90;&#x9694;&#x79BB;&#xFF0C;&#x7C92;&#x5EA6;&#x66F4;&#x7EC6;</strong>&#xFF1A;&#x539F;&#x5148; YARN &#x4E2D;&#x7684; queue &#x5728; Spark on Kubernetes &#x4E2D;&#x5DF2;&#x4E0D;&#x5B58;&#x5728;&#xFF0C;&#x53D6;&#x800C;&#x4EE3;&#x4E4B;&#x7684;&#x662F; Kubernetes &#x4E2D;&#x539F;&#x751F;&#x7684; namespace&#xFF0C;&#x53EF;&#x4EE5;&#x4E3A;&#x6BCF;&#x4E2A;&#x7528;&#x6237;&#x5206;&#x522B;&#x6307;&#x5B9A;&#x4E00;&#x4E2A; namespace&#xFF0C;&#x9650;&#x5236;&#x7528;&#x6237;&#x7684;&#x8D44;&#x6E90; quota&#xFF1B;</li>
<li><strong>&#x7EC6;&#x7C92;&#x5EA6;&#x7684;&#x8D44;&#x6E90;&#x5206;&#x914D; </strong>&#xFF1A;&#x53EF;&#x4EE5;&#x7ED9;&#x6BCF;&#x4E2A; spark &#x4EFB;&#x52A1;&#x6307;&#x5B9A;&#x8D44;&#x6E90;&#x9650;&#x5236;&#xFF0C;&#x5B9E;&#x9645;&#x6307;&#x5B9A;&#x591A;&#x5C11;&#x8D44;&#x6E90;&#x5C31;&#x4F7F;&#x7528;&#x591A;&#x5C11;&#x8D44;&#x6E90;&#xFF0C;&#x56E0;&#x4E3A;&#x6CA1;&#x6709;&#x4E86;&#x50CF; YARN&#x90A3;&#x6837;&#x7684;&#x4E8C;&#x5C42;&#x8C03;&#x5EA6;&#xFF08;&#x5708;&#x5730;&#x5F0F;&#x7684;&#xFF09;&#xFF0C;&#x6240;&#x4EE5;&#x53EF;&#x4EE5;&#x66F4;&#x9AD8;&#x6548;&#x548C;&#x7EC6;&#x7C92;&#x5EA6;&#x7684;&#x4F7F;&#x7528;&#x8D44;&#x6E90;&#xFF1B;</li>
<li><strong>&#x76D1;&#x63A7;&#x7684;&#x53D8;&#x9769;</strong>&#xFF1A;&#x56E0;&#x4E3A;&#x505A;&#x5230;&#x4E86;&#x7EC6;&#x7C92;&#x5EA6;&#x7684;&#x8D44;&#x6E90;&#x5206;&#x914D;&#xFF0C;&#x6240;&#x4EE5;&#x53EF;&#x4EE5;&#x5BF9;&#x7528;&#x6237;&#x63D0;&#x4EA4;&#x7684;&#x6BCF;&#x4E00;&#x4E2A;&#x4EFB;&#x52A1;&#x505A;&#x5230;&#x8D44;&#x6E90;&#x4F7F;&#x7528;&#x7684;&#x76D1;&#x63A7;&#xFF0C;&#x4ECE;&#x800C;&#x5224;&#x65AD;&#x7528;&#x6237;&#x7684;&#x8D44;&#x6E90;&#x4F7F;&#x7528;&#x60C5;&#x51B5;&#xFF0C;&#x6240;&#x6709;&#x7684; metric &#x90FD;&#x8BB0;&#x5F55;&#x5728;&#x6570;&#x636E;&#x5E93;&#x4E2D;&#xFF0C;&#x751A;&#x81F3;&#x53EF;&#x4EE5;&#x4E3A;&#x6BCF;&#x4E2A;&#x7528;&#x6237;&#x7684;&#x6BCF;&#x6B21;&#x4EFB;&#x52A1;&#x63D0;&#x4EA4;&#x8BA1;&#x91CF;&#xFF1B;</li>
<li><strong>&#x65E5;&#x5FD7;&#x7684;&#x53D8;&#x9769;</strong>&#xFF1A;&#x7528;&#x6237;&#x4E0D;&#x518D;&#x901A;&#x8FC7; YARN &#x7684; web &#x9875;&#x9762;&#x6765;&#x67E5;&#x770B;&#x4EFB;&#x52A1;&#x72B6;&#x6001;&#xFF0C;&#x800C;&#x662F;&#x901A;&#x8FC7; pod &#x7684; log &#x6765;&#x67E5;&#x770B;&#xFF0C;&#x53EF;&#x5C06;&#x6240;&#x6709;&#x7684; Kuberentes &#x4E2D;&#x7684;&#x5E94;&#x7528;&#x7684;&#x65E5;&#x5FD7;&#x7B49;&#x540C;&#x770B;&#x5F85;&#x6536;&#x96C6;&#x8D77;&#x6765;&#xFF0C;&#x7136;&#x540E;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x6807;&#x7B7E;&#x67E5;&#x770B;&#x5BF9;&#x5E94;&#x5E94;&#x7528;&#x7684;&#x65E5;&#x5FD7;&#xFF1B;</li>
</ol>
<p><strong>&#x5982;&#x4F55;&#x63D0;&#x4EA4;&#x4EFB;&#x52A1;</strong></p>
<p>&#x4ECD;&#x7136;&#x4F7F;&#x7528; <code>spark-submit</code> &#x63D0;&#x4EA4; spark &#x4EFB;&#x52A1;&#xFF0C;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x6307;&#x5B9A; Kubernetes API server &#x5730;&#x5740;&#xFF0C;&#x4E0B;&#x9762;&#x7684;&#x547D;&#x4EE4;&#x63D0;&#x4EA4;&#x672C;&#x5730; jar &#x5305;&#x5230; Kubernetes &#x96C6;&#x7FA4;&#x4E0A;&#x8FD0;&#x884C;&#xFF0C;&#x540C;&#x65F6;&#x6307;&#x5B9A;&#x4E86;&#x8FD0;&#x884C;&#x4EFB;&#x52A1;&#x7684;&#x7528;&#x6237;&#x3001;&#x63D0;&#x4EA4;&#x547D;&#x540D;&#x7684;&#x7528;&#x6237;&#x3001;&#x8FD0;&#x884C;&#x7684; excutor &#x5B9E;&#x4F8B;&#x6570;&#x3001;driver &#x548C; executor &#x7684;&#x8D44;&#x6E90;&#x9650;&#x5236;&#x3001;&#x4F7F;&#x7528;&#x7684; spark &#x7248;&#x672C;&#x7B49;&#x4FE1;&#x606F;&#x3002;</p>
<p>&#x8BE6;&#x7EC6;&#x4F7F;&#x7528;&#x8BF4;&#x660E;&#x89C1; <a href="https://jimmysong.io/spark-on-k8s/user-guide.html" target="_blank">Apache Spark on Kubernetes &#x7528;&#x6237;&#x6307;&#x5357; - jimmysong.io</a>&#x3002;</p>
2019-10-08 09:57:05 +08:00
<pre class="language-"><code class="lang-bash">./spark-submit <span class="token punctuation">\</span>
--deploy-mode cluster <span class="token punctuation">\</span>
--class com.talkingdata.alluxio.hadooptest <span class="token punctuation">\</span>
--master k8s://https://172.20.0.113:6443 <span class="token punctuation">\</span>
--kubernetes-namespace spark-cluster <span class="token punctuation">\</span>
--conf spark.kubernetes.driverEnv.SPARK_USER<span class="token operator">=</span>hadoop <span class="token punctuation">\</span>
--conf spark.kubernetes.driverEnv.HADOOP_USER_NAME<span class="token operator">=</span>hadoop <span class="token punctuation">\</span>
--conf spark.executorEnv.HADOOP_USER_NAME<span class="token operator">=</span>hadoop <span class="token punctuation">\</span>
--conf spark.executorEnv.SPARK_USER<span class="token operator">=</span>hadoop <span class="token punctuation">\</span>
--conf spark.kubernetes.authenticate.driver.serviceAccountName<span class="token operator">=</span>spark <span class="token punctuation">\</span>
--conf spark.driver.memory<span class="token operator">=</span>100G <span class="token punctuation">\</span>
--conf spark.executor.memory<span class="token operator">=</span>10G <span class="token punctuation">\</span>
--conf spark.driver.cores<span class="token operator">=</span><span class="token number">30</span> <span class="token punctuation">\</span>
--conf spark.executor.cores<span class="token operator">=</span><span class="token number">2</span> <span class="token punctuation">\</span>
--conf spark.driver.maxResultSize<span class="token operator">=</span>10240m <span class="token punctuation">\</span>
--conf spark.kubernetes.driver.limit.cores<span class="token operator">=</span><span class="token number">32</span> <span class="token punctuation">\</span>
--conf spark.kubernetes.executor.limit.cores<span class="token operator">=</span><span class="token number">3</span> <span class="token punctuation">\</span>
--conf spark.kubernetes.executor.memoryOverhead<span class="token operator">=</span>2g <span class="token punctuation">\</span>
--conf spark.executor.instances<span class="token operator">=</span><span class="token number">5</span> <span class="token punctuation">\</span>
--conf spark.app.name<span class="token operator">=</span>spark-pi <span class="token punctuation">\</span>
--conf spark.kubernetes.driver.docker.image<span class="token operator">=</span>harbor-001.jimmysong.io/library/spark-driver:v2.1.0-kubernetes-0.3.1-1 <span class="token punctuation">\</span>
--conf spark.kubernetes.executor.docker.image<span class="token operator">=</span>harbor-001.jimmysong.io/library/spark-executor:v2.1.0-kubernetes-0.3.1-1 <span class="token punctuation">\</span>
--conf spark.kubernetes.initcontainer.docker.image<span class="token operator">=</span>harbor-001.jimmysong.io/library/spark-init:v2.1.0-kubernetes-0.3.1-1 <span class="token punctuation">\</span>
--conf spark.kubernetes.resourceStagingServer.uri<span class="token operator">=</span>http://172.20.0.114:31000 <span class="token punctuation">\</span>
~/Downloads/tendcloud_2.10-1.0.jar
</code></pre>
<p><strong>&#x76D1;&#x63A7;</strong></p>
<p>&#x4E0B;&#x56FE;&#x662F;&#x4ECE; Kubernetes dashboard &#x4E0A;&#x770B;&#x5230;&#x7684; spark-cluster &#x8FD9;&#x4E2A; namespace &#x4E0A;&#x8FD0;&#x884C;&#x7684;&#x5E94;&#x7528;&#x60C5;&#x51B5;&#x3002;</p>
<figure id="fig2.4.15"><a href="../images/spark-job-on-kubernetes-example-1.jpg" data-lightbox="c656f7b1-e99d-474c-ab8c-db2c88f4cc44" data-title="dashboard"><img src="../images/spark-job-on-kubernetes-example-1.jpg" alt="dashboard"></a><figcaption>&#x56FE; 2.4.15&#xFF1A;dashboard</figcaption></figure>
<p>&#x4E0B;&#x56FE;&#x662F;&#x4ECE; Grafana &#x76D1;&#x63A7;&#x9875;&#x9762;&#x4E0A;&#x67E5;&#x770B;&#x5230;&#x7684;&#x67D0;&#x4E2A; executor &#x8D44;&#x6E90;&#x5360;&#x7528;&#x60C5;&#x51B5;&#x3002;</p>
<figure id="fig2.4.16"><a href="../images/spark-job-on-kubernetes-example-2.jpg" data-lightbox="92a67d3f-7774-45a5-b138-c7f4db3fb862" data-title="Grafana"><img src="../images/spark-job-on-kubernetes-example-2.jpg" alt="Grafana"></a><figcaption>&#x56FE; 2.4.16&#xFF1A;Grafana</figcaption></figure>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; 2017-2022 | Distributed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" target="_blank">CC BY 4.0</a> | <a href="https://jimmysong.io" target="_blank">jimmysong.io</a> all right reserved.</span><span class="footer-modification"> Updated at
2022-09-07 09:21:27
</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-history.html" class="navigation navigation-prev " aria-label="Previous page: Kubernetes 的诞生">
<i class="fa fa-angle-left"></i>
</a>
<a href="from-kubernetes-to-cloud-native.html" 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() {
gitbook.page.hasChanged({"page":{"title":"Kubernetes 与云原生应用概览","level":"2.4","depth":1,"next":{"title":"云原生应用之路 —— 从 Kubernetes 到云原生","level":"2.5","depth":1,"path":"cloud-native/from-kubernetes-to-cloud-native.md","ref":"cloud-native/from-kubernetes-to-cloud-native.md","articles":[]},"previous":{"title":"Kubernetes 的诞生","level":"2.3","depth":1,"path":"cloud-native/kubernetes-history.md","ref":"cloud-native/kubernetes-history.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github","codesnippet","splitter","page-toc-button","image-captions","editlink","back-to-top-button","-lunr","-search","search-plus","github-buttons@2.1.0","favicon@^0.0.2","tbfed-pagefooter@^0.0.1","3-ba","theme-default","-highlight","prism","prism-themes","lightbox","ga","sitemap-general","hide-element","expandable-chapters-small","insert-logo","adsense"],"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © 2017-2022 | Distributed under <a href=https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh>CC BY 4.0</a> | <a href=https://jimmysong.io>jimmysong.io</a>","modify_label":" Updated at ","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-ghcolors.css"]},"github":{"url":"https://github.com/rootsongjc/kubernetes-handbook"},"editlink":{"label":"编辑本页","multilingual":false,"base":"https://github.com/rootsongjc/kubernetes-handbook/blob/master/"},"splitter":{},"adsense":{"client":"ca-pub-4029167986768912","slot":"2445941692","format":"auto","element":".page-inner section","position":"bottom"},"codesnippet":{},"sitemap-general":{"prefix":"https://jimmysong.io/kubernetes-handbook/"},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"lightbox":{"jquery":true,"sameUuid":false},"page-toc-button":{},"back-to-top-button":{},"prism-themes":{},"github-buttons":{"repo":"rootsongjc/kubernetes-handbook","types":["star"],"size":"small"},"3-ba":{"configuration":"auto","token":"11f7d254cfa4e0ca44b175c66d379ecc"},"expandable-chapters-small":{},"ga":{"configuration":"auto","token":"UA-93485976-1"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"showLevel":true,"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}},"insert-logo":{"style":"background: none; max-height: 100px; min-height: 30px","url":"https://jimmysong.io/images/logo-black-text.png"},"search-plus":{},"image-captions":{"caption":"图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER__CAPTION_","variable_name":"_pictures"}},"theme":"default","author":"宋净超Jimmy Song","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"_pictures":[{"backlink":"cloud-native/kubernetes-and-cloud-native-app-overview.html#fig2.4.1","level":"2.4","list_caption":"Figure: 云计算演进历程","alt":"云计算演进历程","nro":1,"url":"../images/cloud-computing-evolution-road.jpg","index":1,"caption_template":"图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER__CAPTION_","label":"云计算演进历程","attributes":{},"skip":false,"key":"2.4.1"},{"backlink":"cloud-native/kubernetes-and-cloud-native-app-overview.html#fig2.4.2","level":"2.4","list_caption":"Figure: 来自 Twitter @MarcWilczek","alt":"来自 Twitter @MarcWilczek","nro":2,"url":"../images/cloud-native-comes-of-age.jpg","index":2,"caption_template":"图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER__CAPTION_","label":
});
</script>
</div>
<script src="../gitbook/gitbook.js"></script>
<script src="../gitbook/theme.js"></script>
<script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
<script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-editlink/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
<script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
<script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-3-ba/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
2018-09-25 22:13:40 +08:00
2018-12-21 14:57:59 +08:00
<script src="../gitbook/gitbook-plugin-ga/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
<script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-adsense/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>