4818 lines
301 KiB
HTML
4818 lines
301 KiB
HTML
|
|
|||
|
<!DOCTYPE HTML>
|
|||
|
<html lang="zh-hans" >
|
|||
|
<head>
|
|||
|
<meta charset="UTF-8">
|
|||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
|||
|
<title>深入理解Istio中的Sidecar注入与流量劫持 · Kubernetes Handbook - Kubernetes中文指南/云原生应用架构实践手册 by Jimmy Song(宋净超)</title>
|
|||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|||
|
<meta name="description" content="">
|
|||
|
<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">
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-ghcolors.css">
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<meta name="HandheldFriendly" content="true"/>
|
|||
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|||
|
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
|
|||
|
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
|
|||
|
|
|||
|
|
|||
|
<link rel="next" href="linkerd.html" />
|
|||
|
|
|||
|
|
|||
|
<link rel="prev" href="istio-tutorials-collection.html" />
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<link rel="shortcut icon" href='../favicon.ico' type="image/x-icon">
|
|||
|
|
|||
|
|
|||
|
<link rel="bookmark" href='../favicon.ico' type="image/x-icon">
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<style>
|
|||
|
@media only screen and (max-width: 640px) {
|
|||
|
.book-header .hidden-mobile {
|
|||
|
display: none;
|
|||
|
}
|
|||
|
}
|
|||
|
</style>
|
|||
|
<script>
|
|||
|
window["gitbook-plugin-github-buttons"] = {"repo":"rootsongjc/kubernetes-handbook","types":["star"],"size":"small"};
|
|||
|
</script>
|
|||
|
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
|
|||
|
<div class="book">
|
|||
|
<div class="book-summary">
|
|||
|
|
|||
|
|
|||
|
<div id="book-search-input" role="search">
|
|||
|
<input type="text" placeholder="输入并搜索" />
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<nav role="navigation">
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="summary">
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li>
|
|||
|
<a href="https://jimmysong.io" target="_blank" class="custom-link">Jimmy Song</a>
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
<li>
|
|||
|
<a href="https://jimmysong.io/awesome-cloud-native" target="_blank" class="custom-link">Awesome Cloud Native</a>
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
<li>
|
|||
|
<a href="http://www.servicemesher.com" target="_blank" class="custom-link">ServiceMesher</a>
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
<li>
|
|||
|
<a href="http://www.servicemesher.com/awesome-servicemesh" target="_blank" class="custom-link">Awesome Service Mesh</a>
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
<li>
|
|||
|
<a href="https://jimmysong.io/posts/cloud-native-go" target="_blank" class="custom-link">Cloud Native Go - 基于Go和React的web云原生应用构建指南</a>
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
<li>
|
|||
|
<a href="https://jimmysong.io/posts/cloud-native-python" target="_blank" class="custom-link">Cloud Native Python(Python云原生) - 使用Python和React构建云原生应用</a>
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
<li>
|
|||
|
<a href="https://jimmysong.io/posts/cloud-native-java" target="_blank" class="custom-link">Cloud Native Java(云原生Java)- Spring Boot、Spring Cloud与Cloud Foundry弹性系统设计</a>
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="divider"></li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="header">前言</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="1.1" data-path="../">
|
|||
|
|
|||
|
<a href="../">
|
|||
|
|
|||
|
|
|||
|
<b>1.1.</b>
|
|||
|
|
|||
|
序言
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="header">云原生</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="2.1" data-path="../cloud-native/cloud-native-definition.html">
|
|||
|
|
|||
|
<a href="../cloud-native/cloud-native-definition.html">
|
|||
|
|
|||
|
|
|||
|
<b>2.1.</b>
|
|||
|
|
|||
|
云原生的定义
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="2.2" data-path="../cloud-native/cncf.html">
|
|||
|
|
|||
|
<a href="../cloud-native/cncf.html">
|
|||
|
|
|||
|
|
|||
|
<b>2.2.</b>
|
|||
|
|
|||
|
CNCF - 云原生计算基金会简介
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="2.3" data-path="../cloud-native/cncf-charter.html">
|
|||
|
|
|||
|
<a href="../cloud-native/cncf-charter.html">
|
|||
|
|
|||
|
|
|||
|
<b>2.3.</b>
|
|||
|
|
|||
|
CNCF章程
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="2.4" data-path="../cloud-native/play-with-kubernetes.html">
|
|||
|
|
|||
|
<a href="../cloud-native/play-with-kubernetes.html">
|
|||
|
|
|||
|
|
|||
|
<b>2.4.</b>
|
|||
|
|
|||
|
Play with Kubernetes
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="2.5" data-path="../cloud-native/cloud-native-local-quick-start.html">
|
|||
|
|
|||
|
<a href="../cloud-native/cloud-native-local-quick-start.html">
|
|||
|
|
|||
|
|
|||
|
<b>2.5.</b>
|
|||
|
|
|||
|
快速部署一个云原生本地实验环境
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="2.6" data-path="../cloud-native/kubernetes-and-cloud-native-app-overview.html">
|
|||
|
|
|||
|
<a href="../cloud-native/kubernetes-and-cloud-native-app-overview.html">
|
|||
|
|
|||
|
|
|||
|
<b>2.6.</b>
|
|||
|
|
|||
|
Kubernetes与云原生应用概览
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="2.7" data-path="../cloud-native/from-kubernetes-to-cloud-native.html">
|
|||
|
|
|||
|
<a href="../cloud-native/from-kubernetes-to-cloud-native.html">
|
|||
|
|
|||
|
|
|||
|
<b>2.7.</b>
|
|||
|
|
|||
|
云原生应用之路——从Kubernetes到Cloud Native
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="2.8" data-path="../cloud-native/cloud-native-programming-languages.html">
|
|||
|
|
|||
|
<a href="../cloud-native/cloud-native-programming-languages.html">
|
|||
|
|
|||
|
|
|||
|
<b>2.8.</b>
|
|||
|
|
|||
|
云原生编程语言
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="2.8.1" data-path="../cloud-native/cloud-native-programming-language-ballerina.html">
|
|||
|
|
|||
|
<a href="../cloud-native/cloud-native-programming-language-ballerina.html">
|
|||
|
|
|||
|
|
|||
|
<b>2.8.1.</b>
|
|||
|
|
|||
|
云原生编程语言Ballerina
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="2.8.2" data-path="../cloud-native/cloud-native-programming-language-pulumi.html">
|
|||
|
|
|||
|
<a href="../cloud-native/cloud-native-programming-language-pulumi.html">
|
|||
|
|
|||
|
|
|||
|
<b>2.8.2.</b>
|
|||
|
|
|||
|
云原生编程语言Pulumi
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="2.9" data-path="../cloud-native/the-future-of-cloud-native.html">
|
|||
|
|
|||
|
<a href="../cloud-native/the-future-of-cloud-native.html">
|
|||
|
|
|||
|
|
|||
|
<b>2.9.</b>
|
|||
|
|
|||
|
云原生的未来
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="header">概念与原理</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.1" data-path="../concepts/">
|
|||
|
|
|||
|
<a href="../concepts/">
|
|||
|
|
|||
|
|
|||
|
<b>3.1.</b>
|
|||
|
|
|||
|
Kubernetes架构
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.1.1" data-path="../concepts/concepts.html">
|
|||
|
|
|||
|
<a href="../concepts/concepts.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.1.1.</b>
|
|||
|
|
|||
|
设计理念
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.1.2" data-path="../concepts/etcd.html">
|
|||
|
|
|||
|
<a href="../concepts/etcd.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.1.2.</b>
|
|||
|
|
|||
|
Etcd解析
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.1.3" data-path="../concepts/open-interfaces.html">
|
|||
|
|
|||
|
<a href="../concepts/open-interfaces.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.1.3.</b>
|
|||
|
|
|||
|
开放接口
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.1.3.1" data-path="../concepts/cri.html">
|
|||
|
|
|||
|
<a href="../concepts/cri.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.1.3.1.</b>
|
|||
|
|
|||
|
CRI - Container Runtime Interface(容器运行时接口)
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.1.3.2" data-path="../concepts/cni.html">
|
|||
|
|
|||
|
<a href="../concepts/cni.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.1.3.2.</b>
|
|||
|
|
|||
|
CNI - Container Network Interface(容器网络接口)
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.1.3.3" data-path="../concepts/csi.html">
|
|||
|
|
|||
|
<a href="../concepts/csi.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.1.3.3.</b>
|
|||
|
|
|||
|
CSI - Container Storage Interface(容器存储接口)
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.2" data-path="../concepts/networking.html">
|
|||
|
|
|||
|
<a href="../concepts/networking.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.2.</b>
|
|||
|
|
|||
|
Kubernetes中的网络
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.2.1" data-path="../concepts/flannel.html">
|
|||
|
|
|||
|
<a href="../concepts/flannel.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.2.1.</b>
|
|||
|
|
|||
|
Kubernetes中的网络解析——以flannel为例
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.2.2" data-path="../concepts/calico.html">
|
|||
|
|
|||
|
<a href="../concepts/calico.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.2.2.</b>
|
|||
|
|
|||
|
Kubernetes中的网络解析——以calico为例
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.3" data-path="../concepts/objects.html">
|
|||
|
|
|||
|
<a href="../concepts/objects.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.3.</b>
|
|||
|
|
|||
|
资源对象与基本概念解析
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.4" data-path="../concepts/pod-state-and-lifecycle.html">
|
|||
|
|
|||
|
<a href="../concepts/pod-state-and-lifecycle.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.4.</b>
|
|||
|
|
|||
|
Pod状态与生命周期管理
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.4.1" data-path="../concepts/pod-overview.html">
|
|||
|
|
|||
|
<a href="../concepts/pod-overview.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.4.1.</b>
|
|||
|
|
|||
|
Pod概览
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.4.2" data-path="../concepts/pod.html">
|
|||
|
|
|||
|
<a href="../concepts/pod.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.4.2.</b>
|
|||
|
|
|||
|
Pod解析
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.4.3" data-path="../concepts/init-containers.html">
|
|||
|
|
|||
|
<a href="../concepts/init-containers.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.4.3.</b>
|
|||
|
|
|||
|
Init容器
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.4.4" data-path="../concepts/pause-container.html">
|
|||
|
|
|||
|
<a href="../concepts/pause-container.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.4.4.</b>
|
|||
|
|
|||
|
Pause容器
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.4.5" data-path="../concepts/pod-security-policy.html">
|
|||
|
|
|||
|
<a href="../concepts/pod-security-policy.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.4.5.</b>
|
|||
|
|
|||
|
Pod安全策略
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.4.6" data-path="../concepts/pod-lifecycle.html">
|
|||
|
|
|||
|
<a href="../concepts/pod-lifecycle.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.4.6.</b>
|
|||
|
|
|||
|
Pod的生命周期
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.4.7" data-path="../concepts/pod-hook.html">
|
|||
|
|
|||
|
<a href="../concepts/pod-hook.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.4.7.</b>
|
|||
|
|
|||
|
Pod Hook
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.4.8" data-path="../concepts/pod-preset.html">
|
|||
|
|
|||
|
<a href="../concepts/pod-preset.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.4.8.</b>
|
|||
|
|
|||
|
Pod Preset
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.4.9" data-path="../concepts/pod-disruption-budget.html">
|
|||
|
|
|||
|
<a href="../concepts/pod-disruption-budget.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.4.9.</b>
|
|||
|
|
|||
|
Pod中断与PDB(Pod中断预算)
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.5" data-path="../concepts/cluster.html">
|
|||
|
|
|||
|
<a href="../concepts/cluster.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.5.</b>
|
|||
|
|
|||
|
集群资源管理
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.5.1" data-path="../concepts/node.html">
|
|||
|
|
|||
|
<a href="../concepts/node.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.5.1.</b>
|
|||
|
|
|||
|
Node
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.5.2" data-path="../concepts/namespace.html">
|
|||
|
|
|||
|
<a href="../concepts/namespace.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.5.2.</b>
|
|||
|
|
|||
|
Namespace
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.5.3" data-path="../concepts/label.html">
|
|||
|
|
|||
|
<a href="../concepts/label.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.5.3.</b>
|
|||
|
|
|||
|
Label
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.5.4" data-path="../concepts/annotation.html">
|
|||
|
|
|||
|
<a href="../concepts/annotation.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.5.4.</b>
|
|||
|
|
|||
|
Annotation
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.5.5" data-path="../concepts/taint-and-toleration.html">
|
|||
|
|
|||
|
<a href="../concepts/taint-and-toleration.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.5.5.</b>
|
|||
|
|
|||
|
Taint和Toleration(污点和容忍)
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.5.6" data-path="../concepts/garbage-collection.html">
|
|||
|
|
|||
|
<a href="../concepts/garbage-collection.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.5.6.</b>
|
|||
|
|
|||
|
垃圾收集
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.6" data-path="../concepts/controllers.html">
|
|||
|
|
|||
|
<a href="../concepts/controllers.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.6.</b>
|
|||
|
|
|||
|
控制器
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.6.1" data-path="../concepts/deployment.html">
|
|||
|
|
|||
|
<a href="../concepts/deployment.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.6.1.</b>
|
|||
|
|
|||
|
Deployment
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.6.2" data-path="../concepts/statefulset.html">
|
|||
|
|
|||
|
<a href="../concepts/statefulset.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.6.2.</b>
|
|||
|
|
|||
|
StatefulSet
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.6.3" data-path="../concepts/daemonset.html">
|
|||
|
|
|||
|
<a href="../concepts/daemonset.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.6.3.</b>
|
|||
|
|
|||
|
DaemonSet
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.6.4" data-path="../concepts/replicaset.html">
|
|||
|
|
|||
|
<a href="../concepts/replicaset.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.6.4.</b>
|
|||
|
|
|||
|
ReplicationController和ReplicaSet
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.6.5" data-path="../concepts/job.html">
|
|||
|
|
|||
|
<a href="../concepts/job.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.6.5.</b>
|
|||
|
|
|||
|
Job
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.6.6" data-path="../concepts/cronjob.html">
|
|||
|
|
|||
|
<a href="../concepts/cronjob.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.6.6.</b>
|
|||
|
|
|||
|
CronJob
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.6.7" data-path="../concepts/horizontal-pod-autoscaling.html">
|
|||
|
|
|||
|
<a href="../concepts/horizontal-pod-autoscaling.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.6.7.</b>
|
|||
|
|
|||
|
Horizontal Pod Autoscaling
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.6.7.1" data-path="../concepts/custom-metrics-hpa.html">
|
|||
|
|
|||
|
<a href="../concepts/custom-metrics-hpa.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.6.7.1.</b>
|
|||
|
|
|||
|
自定义指标HPA
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.7" data-path="../concepts/service-discovery.html">
|
|||
|
|
|||
|
<a href="../concepts/service-discovery.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.7.</b>
|
|||
|
|
|||
|
服务发现
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.7.1" data-path="../concepts/service.html">
|
|||
|
|
|||
|
<a href="../concepts/service.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.7.1.</b>
|
|||
|
|
|||
|
Service
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.7.2" data-path="../concepts/ingress.html">
|
|||
|
|
|||
|
<a href="../concepts/ingress.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.7.2.</b>
|
|||
|
|
|||
|
Ingress
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.7.2.1" data-path="../concepts/traefik-ingress-controller.html">
|
|||
|
|
|||
|
<a href="../concepts/traefik-ingress-controller.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.7.2.1.</b>
|
|||
|
|
|||
|
Traefik Ingress Controller
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.8" data-path="../concepts/authentication-and-permission.html">
|
|||
|
|
|||
|
<a href="../concepts/authentication-and-permission.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.8.</b>
|
|||
|
|
|||
|
身份与权限控制
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.8.1" data-path="../concepts/serviceaccount.html">
|
|||
|
|
|||
|
<a href="../concepts/serviceaccount.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.8.1.</b>
|
|||
|
|
|||
|
ServiceAccount
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.8.2" data-path="../concepts/rbac.html">
|
|||
|
|
|||
|
<a href="../concepts/rbac.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.8.2.</b>
|
|||
|
|
|||
|
RBAC——基于角色的访问控制
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.8.3" data-path="../concepts/network-policy.html">
|
|||
|
|
|||
|
<a href="../concepts/network-policy.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.8.3.</b>
|
|||
|
|
|||
|
NetworkPolicy
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.9" data-path="../concepts/storage.html">
|
|||
|
|
|||
|
<a href="../concepts/storage.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.9.</b>
|
|||
|
|
|||
|
存储
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.9.1" data-path="../concepts/secret.html">
|
|||
|
|
|||
|
<a href="../concepts/secret.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.9.1.</b>
|
|||
|
|
|||
|
Secret
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.9.2" data-path="../concepts/configmap.html">
|
|||
|
|
|||
|
<a href="../concepts/configmap.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.9.2.</b>
|
|||
|
|
|||
|
ConfigMap
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.9.2.1" data-path="../concepts/configmap-hot-update.html">
|
|||
|
|
|||
|
<a href="../concepts/configmap-hot-update.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.9.2.1.</b>
|
|||
|
|
|||
|
ConfigMap的热更新
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.9.3" data-path="../concepts/volume.html">
|
|||
|
|
|||
|
<a href="../concepts/volume.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.9.3.</b>
|
|||
|
|
|||
|
Volume
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.9.4" data-path="../concepts/persistent-volume.html">
|
|||
|
|
|||
|
<a href="../concepts/persistent-volume.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.9.4.</b>
|
|||
|
|
|||
|
Persistent Volume(持久化卷)
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.9.5" data-path="../concepts/storageclass.html">
|
|||
|
|
|||
|
<a href="../concepts/storageclass.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.9.5.</b>
|
|||
|
|
|||
|
Storage Class
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.9.6" data-path="../concepts/local-persistent-storage.html">
|
|||
|
|
|||
|
<a href="../concepts/local-persistent-storage.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.9.6.</b>
|
|||
|
|
|||
|
本地持久化存储
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.10" data-path="../concepts/extension.html">
|
|||
|
|
|||
|
<a href="../concepts/extension.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.10.</b>
|
|||
|
|
|||
|
集群扩展
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="3.10.1" data-path="../concepts/custom-resource.html">
|
|||
|
|
|||
|
<a href="../concepts/custom-resource.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.10.1.</b>
|
|||
|
|
|||
|
使用自定义资源扩展API
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.10.2" data-path="../concepts/aggregated-api-server.html">
|
|||
|
|
|||
|
<a href="../concepts/aggregated-api-server.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.10.2.</b>
|
|||
|
|
|||
|
Aggregated API Server
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.10.3" data-path="../concepts/apiservice.html">
|
|||
|
|
|||
|
<a href="../concepts/apiservice.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.10.3.</b>
|
|||
|
|
|||
|
APIService
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.10.4" data-path="../concepts/service-catalog.html">
|
|||
|
|
|||
|
<a href="../concepts/service-catalog.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.10.4.</b>
|
|||
|
|
|||
|
Service Catalog
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="3.11" data-path="../concepts/scheduling.html">
|
|||
|
|
|||
|
<a href="../concepts/scheduling.html">
|
|||
|
|
|||
|
|
|||
|
<b>3.11.</b>
|
|||
|
|
|||
|
资源调度
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="header">用户指南</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="4.1" data-path="../guide/">
|
|||
|
|
|||
|
<a href="../guide/">
|
|||
|
|
|||
|
|
|||
|
<b>4.1.</b>
|
|||
|
|
|||
|
用户指南
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.2" data-path="../guide/resource-configuration.html">
|
|||
|
|
|||
|
<a href="../guide/resource-configuration.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.2.</b>
|
|||
|
|
|||
|
资源对象配置
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="4.2.1" data-path="../guide/configure-liveness-readiness-probes.html">
|
|||
|
|
|||
|
<a href="../guide/configure-liveness-readiness-probes.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.2.1.</b>
|
|||
|
|
|||
|
配置Pod的liveness和readiness探针
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.2.2" data-path="../guide/configure-pod-service-account.html">
|
|||
|
|
|||
|
<a href="../guide/configure-pod-service-account.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.2.2.</b>
|
|||
|
|
|||
|
配置Pod的Service Account
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.2.3" data-path="../guide/secret-configuration.html">
|
|||
|
|
|||
|
<a href="../guide/secret-configuration.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.2.3.</b>
|
|||
|
|
|||
|
Secret配置
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.2.4" data-path="../guide/resource-quota-management.html">
|
|||
|
|
|||
|
<a href="../guide/resource-quota-management.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.2.4.</b>
|
|||
|
|
|||
|
管理namespace中的资源配额
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.3" data-path="../guide/command-usage.html">
|
|||
|
|
|||
|
<a href="../guide/command-usage.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.3.</b>
|
|||
|
|
|||
|
命令使用
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="4.3.1" data-path="../guide/docker-cli-to-kubectl.html">
|
|||
|
|
|||
|
<a href="../guide/docker-cli-to-kubectl.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.3.1.</b>
|
|||
|
|
|||
|
docker用户过度到kubectl命令行指南
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.3.2" data-path="../guide/using-kubectl.html">
|
|||
|
|
|||
|
<a href="../guide/using-kubectl.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.3.2.</b>
|
|||
|
|
|||
|
kubectl命令概览
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.3.3" data-path="../guide/kubectl-cheatsheet.html">
|
|||
|
|
|||
|
<a href="../guide/kubectl-cheatsheet.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.3.3.</b>
|
|||
|
|
|||
|
kubectl命令技巧大全
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.3.4" data-path="../guide/using-etcdctl-to-access-kubernetes-data.html">
|
|||
|
|
|||
|
<a href="../guide/using-etcdctl-to-access-kubernetes-data.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.3.4.</b>
|
|||
|
|
|||
|
使用etcdctl访问kubernetes数据
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.4" data-path="../guide/cluster-security-management.html">
|
|||
|
|
|||
|
<a href="../guide/cluster-security-management.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.4.</b>
|
|||
|
|
|||
|
集群安全性管理
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="4.4.1" data-path="../guide/managing-tls-in-a-cluster.html">
|
|||
|
|
|||
|
<a href="../guide/managing-tls-in-a-cluster.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.4.1.</b>
|
|||
|
|
|||
|
管理集群中的TLS
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.4.2" data-path="../guide/kubelet-authentication-authorization.html">
|
|||
|
|
|||
|
<a href="../guide/kubelet-authentication-authorization.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.4.2.</b>
|
|||
|
|
|||
|
kubelet的认证授权
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.4.3" data-path="../guide/tls-bootstrapping.html">
|
|||
|
|
|||
|
<a href="../guide/tls-bootstrapping.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.4.3.</b>
|
|||
|
|
|||
|
TLS bootstrap
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.4.4" data-path="../guide/kubectl-user-authentication-authorization.html">
|
|||
|
|
|||
|
<a href="../guide/kubectl-user-authentication-authorization.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.4.4.</b>
|
|||
|
|
|||
|
创建用户认证授权的kubeconfig文件
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.4.5" data-path="../guide/ip-masq-agent.html">
|
|||
|
|
|||
|
<a href="../guide/ip-masq-agent.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.4.5.</b>
|
|||
|
|
|||
|
IP伪装代理
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.4.6" data-path="../guide/auth-with-kubeconfig-or-token.html">
|
|||
|
|
|||
|
<a href="../guide/auth-with-kubeconfig-or-token.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.4.6.</b>
|
|||
|
|
|||
|
使用kubeconfig或token进行用户身份认证
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.4.7" data-path="../guide/authentication.html">
|
|||
|
|
|||
|
<a href="../guide/authentication.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.4.7.</b>
|
|||
|
|
|||
|
Kubernetes中的用户与身份认证授权
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.4.8" data-path="../guide/kubernetes-security-best-practice.html">
|
|||
|
|
|||
|
<a href="../guide/kubernetes-security-best-practice.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.4.8.</b>
|
|||
|
|
|||
|
Kubernetes集群安全性配置最佳实践
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.5" data-path="../guide/access-kubernetes-cluster.html">
|
|||
|
|
|||
|
<a href="../guide/access-kubernetes-cluster.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.5.</b>
|
|||
|
|
|||
|
访问Kubernetes集群
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="4.5.1" data-path="../guide/access-cluster.html">
|
|||
|
|
|||
|
<a href="../guide/access-cluster.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.5.1.</b>
|
|||
|
|
|||
|
访问集群
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.5.2" data-path="../guide/authenticate-across-clusters-kubeconfig.html">
|
|||
|
|
|||
|
<a href="../guide/authenticate-across-clusters-kubeconfig.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.5.2.</b>
|
|||
|
|
|||
|
使用kubeconfig文件配置跨集群认证
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.5.3" data-path="../guide/connecting-to-applications-port-forward.html">
|
|||
|
|
|||
|
<a href="../guide/connecting-to-applications-port-forward.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.5.3.</b>
|
|||
|
|
|||
|
通过端口转发访问集群中的应用程序
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.5.4" data-path="../guide/service-access-application-cluster.html">
|
|||
|
|
|||
|
<a href="../guide/service-access-application-cluster.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.5.4.</b>
|
|||
|
|
|||
|
使用service访问群集中的应用程序
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.5.5" data-path="../guide/accessing-kubernetes-pods-from-outside-of-the-cluster.html">
|
|||
|
|
|||
|
<a href="../guide/accessing-kubernetes-pods-from-outside-of-the-cluster.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.5.5.</b>
|
|||
|
|
|||
|
从外部访问Kubernetes中的Pod
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.5.6" data-path="../guide/cabin-mobile-dashboard-for-kubernetes.html">
|
|||
|
|
|||
|
<a href="../guide/cabin-mobile-dashboard-for-kubernetes.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.5.6.</b>
|
|||
|
|
|||
|
Cabin - Kubernetes手机客户端
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.5.7" data-path="../guide/kubernetes-desktop-client.html">
|
|||
|
|
|||
|
<a href="../guide/kubernetes-desktop-client.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.5.7.</b>
|
|||
|
|
|||
|
Kubernetic - Kubernetes桌面客户端
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.5.8" data-path="../guide/kubernator-kubernetes-ui.html">
|
|||
|
|
|||
|
<a href="../guide/kubernator-kubernetes-ui.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.5.8.</b>
|
|||
|
|
|||
|
Kubernator - 更底层的Kubernetes UI
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.6" data-path="../guide/application-development-deployment-flow.html">
|
|||
|
|
|||
|
<a href="../guide/application-development-deployment-flow.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.6.</b>
|
|||
|
|
|||
|
在Kubernetes中开发部署应用
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="4.6.1" data-path="../guide/deploy-applications-in-kubernetes.html">
|
|||
|
|
|||
|
<a href="../guide/deploy-applications-in-kubernetes.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.6.1.</b>
|
|||
|
|
|||
|
适用于kubernetes的应用开发部署流程
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.6.2" data-path="../guide/migrating-hadoop-yarn-to-kubernetes.html">
|
|||
|
|
|||
|
<a href="../guide/migrating-hadoop-yarn-to-kubernetes.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.6.2.</b>
|
|||
|
|
|||
|
迁移传统应用到Kubernetes中——以Hadoop YARN为例
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="4.6.3" data-path="../guide/using-statefulset.html">
|
|||
|
|
|||
|
<a href="../guide/using-statefulset.html">
|
|||
|
|
|||
|
|
|||
|
<b>4.6.3.</b>
|
|||
|
|
|||
|
使用StatefulSet部署用状态应用
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="header">最佳实践</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.1" data-path="../practice/">
|
|||
|
|
|||
|
<a href="../practice/">
|
|||
|
|
|||
|
|
|||
|
<b>5.1.</b>
|
|||
|
|
|||
|
最佳实践概览
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2" data-path="../practice/install-kubernetes-on-centos.html">
|
|||
|
|
|||
|
<a href="../practice/install-kubernetes-on-centos.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.</b>
|
|||
|
|
|||
|
在CentOS上部署Kubernetes集群
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2.1" data-path="../practice/create-tls-and-secret-key.html">
|
|||
|
|
|||
|
<a href="../practice/create-tls-and-secret-key.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.1.</b>
|
|||
|
|
|||
|
创建TLS证书和秘钥
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2.2" data-path="../practice/create-kubeconfig.html">
|
|||
|
|
|||
|
<a href="../practice/create-kubeconfig.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.2.</b>
|
|||
|
|
|||
|
创建kubeconfig文件
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2.3" data-path="../practice/etcd-cluster-installation.html">
|
|||
|
|
|||
|
<a href="../practice/etcd-cluster-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.3.</b>
|
|||
|
|
|||
|
创建高可用etcd集群
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2.4" data-path="../practice/kubectl-installation.html">
|
|||
|
|
|||
|
<a href="../practice/kubectl-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.4.</b>
|
|||
|
|
|||
|
安装kubectl命令行工具
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2.5" data-path="../practice/master-installation.html">
|
|||
|
|
|||
|
<a href="../practice/master-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.5.</b>
|
|||
|
|
|||
|
部署master节点
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2.6" data-path="../practice/flannel-installation.html">
|
|||
|
|
|||
|
<a href="../practice/flannel-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.6.</b>
|
|||
|
|
|||
|
安装flannel网络插件
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2.7" data-path="../practice/node-installation.html">
|
|||
|
|
|||
|
<a href="../practice/node-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.7.</b>
|
|||
|
|
|||
|
部署node节点
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2.8" data-path="../practice/kubedns-addon-installation.html">
|
|||
|
|
|||
|
<a href="../practice/kubedns-addon-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.8.</b>
|
|||
|
|
|||
|
安装kubedns插件
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2.9" data-path="../practice/dashboard-addon-installation.html">
|
|||
|
|
|||
|
<a href="../practice/dashboard-addon-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.9.</b>
|
|||
|
|
|||
|
安装dashboard插件
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2.10" data-path="../practice/heapster-addon-installation.html">
|
|||
|
|
|||
|
<a href="../practice/heapster-addon-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.10.</b>
|
|||
|
|
|||
|
安装heapster插件
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.2.11" data-path="../practice/efk-addon-installation.html">
|
|||
|
|
|||
|
<a href="../practice/efk-addon-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.2.11.</b>
|
|||
|
|
|||
|
安装EFK插件
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.3" data-path="../practice/install-kubernetes-with-kubeadm.html">
|
|||
|
|
|||
|
<a href="../practice/install-kubernetes-with-kubeadm.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.3.</b>
|
|||
|
|
|||
|
使用kubeadm快速构建测试集群
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.3.1" data-path="../practice/install-kubernetes-on-ubuntu-server-16.04-with-kubeadm.html">
|
|||
|
|
|||
|
<a href="../practice/install-kubernetes-on-ubuntu-server-16.04-with-kubeadm.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.3.1.</b>
|
|||
|
|
|||
|
使用kubeadm在Ubuntu Server 16.04上快速构建测试集群
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.4" data-path="../practice/service-discovery-and-loadbalancing.html">
|
|||
|
|
|||
|
<a href="../practice/service-discovery-and-loadbalancing.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.4.</b>
|
|||
|
|
|||
|
服务发现与负载均衡
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.4.1" data-path="../practice/traefik-ingress-installation.html">
|
|||
|
|
|||
|
<a href="../practice/traefik-ingress-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.4.1.</b>
|
|||
|
|
|||
|
安装Traefik ingress
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.4.2" data-path="../practice/distributed-load-test.html">
|
|||
|
|
|||
|
<a href="../practice/distributed-load-test.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.4.2.</b>
|
|||
|
|
|||
|
分布式负载测试
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.4.3" data-path="../practice/network-and-cluster-perfermance-test.html">
|
|||
|
|
|||
|
<a href="../practice/network-and-cluster-perfermance-test.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.4.3.</b>
|
|||
|
|
|||
|
网络和集群性能测试
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.4.4" data-path="../practice/edge-node-configuration.html">
|
|||
|
|
|||
|
<a href="../practice/edge-node-configuration.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.4.4.</b>
|
|||
|
|
|||
|
边缘节点配置
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.4.5" data-path="../practice/nginx-ingress-installation.html">
|
|||
|
|
|||
|
<a href="../practice/nginx-ingress-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.4.5.</b>
|
|||
|
|
|||
|
安装Nginx ingress
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.4.6" data-path="../practice/dns-installation.html">
|
|||
|
|
|||
|
<a href="../practice/dns-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.4.6.</b>
|
|||
|
|
|||
|
安装配置DNS
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.4.6.1" data-path="../practice/configuring-dns.html">
|
|||
|
|
|||
|
<a href="../practice/configuring-dns.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.4.6.1.</b>
|
|||
|
|
|||
|
安装配置Kube-dns
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.4.6.2" data-path="../practice/coredns.html">
|
|||
|
|
|||
|
<a href="../practice/coredns.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.4.6.2.</b>
|
|||
|
|
|||
|
安装配置CoreDNS
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.5" data-path="../practice/operation.html">
|
|||
|
|
|||
|
<a href="../practice/operation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.5.</b>
|
|||
|
|
|||
|
运维管理
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.5.1" data-path="../practice/master-ha.html">
|
|||
|
|
|||
|
<a href="../practice/master-ha.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.5.1.</b>
|
|||
|
|
|||
|
Master节点高可用
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.5.2" data-path="../practice/service-rolling-update.html">
|
|||
|
|
|||
|
<a href="../practice/service-rolling-update.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.5.2.</b>
|
|||
|
|
|||
|
服务滚动升级
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.5.3" data-path="../practice/app-log-collection.html">
|
|||
|
|
|||
|
<a href="../practice/app-log-collection.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.5.3.</b>
|
|||
|
|
|||
|
应用日志收集
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.5.4" data-path="../practice/configuration-best-practice.html">
|
|||
|
|
|||
|
<a href="../practice/configuration-best-practice.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.5.4.</b>
|
|||
|
|
|||
|
配置最佳实践
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.5.5" data-path="../practice/monitor.html">
|
|||
|
|
|||
|
<a href="../practice/monitor.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.5.5.</b>
|
|||
|
|
|||
|
集群及应用监控
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.5.6" data-path="../practice/data-persistence-problem.html">
|
|||
|
|
|||
|
<a href="../practice/data-persistence-problem.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.5.6.</b>
|
|||
|
|
|||
|
数据持久化问题
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.5.7" data-path="../practice/manage-compute-resources-container.html">
|
|||
|
|
|||
|
<a href="../practice/manage-compute-resources-container.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.5.7.</b>
|
|||
|
|
|||
|
管理容器的计算资源
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.5.8" data-path="../practice/federation.html">
|
|||
|
|
|||
|
<a href="../practice/federation.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.5.8.</b>
|
|||
|
|
|||
|
集群联邦
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6" data-path="../practice/storage.html">
|
|||
|
|
|||
|
<a href="../practice/storage.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.</b>
|
|||
|
|
|||
|
存储管理
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.1" data-path="../practice/glusterfs.html">
|
|||
|
|
|||
|
<a href="../practice/glusterfs.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.1.</b>
|
|||
|
|
|||
|
GlusterFS
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.1.1" data-path="../practice/using-glusterfs-for-persistent-storage.html">
|
|||
|
|
|||
|
<a href="../practice/using-glusterfs-for-persistent-storage.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.1.1.</b>
|
|||
|
|
|||
|
使用GlusterFS做持久化存储
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.1.2" data-path="../practice/using-heketi-gluster-for-persistent-storage.html">
|
|||
|
|
|||
|
<a href="../practice/using-heketi-gluster-for-persistent-storage.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.1.2.</b>
|
|||
|
|
|||
|
使用Heketi作为kubernetes的持久存储GlusterFS的external provisioner
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.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>5.6.1.3.</b>
|
|||
|
|
|||
|
在OpenShift中使用GlusterFS做持久化存储
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.2" data-path="../practice/glusterd-2.0.html">
|
|||
|
|
|||
|
<a href="../practice/glusterd-2.0.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.2.</b>
|
|||
|
|
|||
|
GlusterD-2.0
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.3" data-path="../practice/ceph.html">
|
|||
|
|
|||
|
<a href="../practice/ceph.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.3.</b>
|
|||
|
|
|||
|
Ceph
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.3.1" data-path="../practice/ceph-helm-install-guide-zh.html">
|
|||
|
|
|||
|
<a href="../practice/ceph-helm-install-guide-zh.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.3.1.</b>
|
|||
|
|
|||
|
用Helm托管安装Ceph集群并提供后端存储
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.3.2" data-path="../practice/using-ceph-for-persistent-storage.html">
|
|||
|
|
|||
|
<a href="../practice/using-ceph-for-persistent-storage.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.3.2.</b>
|
|||
|
|
|||
|
使用Ceph做持久化存储
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.4" data-path="../practice/openebs.html">
|
|||
|
|
|||
|
<a href="../practice/openebs.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.4.</b>
|
|||
|
|
|||
|
OpenEBS
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.4.1" data-path="../practice/using-openebs-for-persistent-storage.html">
|
|||
|
|
|||
|
<a href="../practice/using-openebs-for-persistent-storage.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.4.1.</b>
|
|||
|
|
|||
|
使用OpenEBS做持久化存储
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.5" data-path="../practice/rook.html">
|
|||
|
|
|||
|
<a href="../practice/rook.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.5.</b>
|
|||
|
|
|||
|
Rook
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.6" data-path="../practice/nfs.html">
|
|||
|
|
|||
|
<a href="../practice/nfs.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.6.</b>
|
|||
|
|
|||
|
NFS
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.6.6.1" data-path="../practice/using-nfs-for-persistent-storage.html">
|
|||
|
|
|||
|
<a href="../practice/using-nfs-for-persistent-storage.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.6.6.1.</b>
|
|||
|
|
|||
|
利用NFS动态提供Kubernetes后端存储卷
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.7" data-path="../practice/monitoring.html">
|
|||
|
|
|||
|
<a href="../practice/monitoring.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.7.</b>
|
|||
|
|
|||
|
集群与应用监控
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.7.1" data-path="../practice/heapster.html">
|
|||
|
|
|||
|
<a href="../practice/heapster.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.7.1.</b>
|
|||
|
|
|||
|
Heapster
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.7.1.1" data-path="../practice/using-heapster-to-get-object-metrics.html">
|
|||
|
|
|||
|
<a href="../practice/using-heapster-to-get-object-metrics.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.7.1.1.</b>
|
|||
|
|
|||
|
使用Heapster获取集群和对象的metric数据
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.7.2" data-path="../practice/prometheus.html">
|
|||
|
|
|||
|
<a href="../practice/prometheus.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.7.2.</b>
|
|||
|
|
|||
|
Prometheus
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.7.2.1" data-path="../practice/using-prometheus-to-monitor-kuberentes-cluster.html">
|
|||
|
|
|||
|
<a href="../practice/using-prometheus-to-monitor-kuberentes-cluster.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.7.2.1.</b>
|
|||
|
|
|||
|
使用Prometheus监控kubernetes集群
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.7.3" data-path="../practice/vistio-visualize-your-istio-mesh.html">
|
|||
|
|
|||
|
<a href="../practice/vistio-visualize-your-istio-mesh.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.7.3.</b>
|
|||
|
|
|||
|
使用Vistio监控Istio服务网格中的流量
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.8" data-path="../practice/services-management-tool.html">
|
|||
|
|
|||
|
<a href="../practice/services-management-tool.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.8.</b>
|
|||
|
|
|||
|
服务编排管理
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.8.1" data-path="../practice/helm.html">
|
|||
|
|
|||
|
<a href="../practice/helm.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.8.1.</b>
|
|||
|
|
|||
|
使用Helm管理kubernetes应用
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.8.2" data-path="../practice/create-private-charts-repo.html">
|
|||
|
|
|||
|
<a href="../practice/create-private-charts-repo.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.8.2.</b>
|
|||
|
|
|||
|
构建私有Chart仓库
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.9" data-path="../practice/ci-cd.html">
|
|||
|
|
|||
|
<a href="../practice/ci-cd.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.9.</b>
|
|||
|
|
|||
|
持续集成与发布
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.9.1" data-path="../practice/jenkins-ci-cd.html">
|
|||
|
|
|||
|
<a href="../practice/jenkins-ci-cd.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.9.1.</b>
|
|||
|
|
|||
|
使用Jenkins进行持续集成与发布
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.9.2" data-path="../practice/drone-ci-cd.html">
|
|||
|
|
|||
|
<a href="../practice/drone-ci-cd.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.9.2.</b>
|
|||
|
|
|||
|
使用Drone进行持续集成与发布
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.10" data-path="../practice/update-and-upgrade.html">
|
|||
|
|
|||
|
<a href="../practice/update-and-upgrade.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.10.</b>
|
|||
|
|
|||
|
更新与升级
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="5.10.1" data-path="../practice/manually-upgrade.html">
|
|||
|
|
|||
|
<a href="../practice/manually-upgrade.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.10.1.</b>
|
|||
|
|
|||
|
手动升级Kubernetes集群
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="5.10.2" data-path="../practice/dashboard-upgrade.html">
|
|||
|
|
|||
|
<a href="../practice/dashboard-upgrade.html">
|
|||
|
|
|||
|
|
|||
|
<b>5.10.2.</b>
|
|||
|
|
|||
|
升级dashboard
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="header">领域应用</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.1" data-path="./">
|
|||
|
|
|||
|
<a href="./">
|
|||
|
|
|||
|
|
|||
|
<b>6.1.</b>
|
|||
|
|
|||
|
领域应用概览
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.2" data-path="microservices.html">
|
|||
|
|
|||
|
<a href="microservices.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.2.</b>
|
|||
|
|
|||
|
微服务架构
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.2.1" data-path="service-discovery-in-microservices.html">
|
|||
|
|
|||
|
<a href="service-discovery-in-microservices.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.2.1.</b>
|
|||
|
|
|||
|
微服务中的服务发现
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.2.2" data-path="microservices-for-java-developers.html">
|
|||
|
|
|||
|
<a href="microservices-for-java-developers.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.2.2.</b>
|
|||
|
|
|||
|
使用Java构建微服务并发布到Kubernetes平台
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.2.2.1" data-path="spring-boot-quick-start-guide.html">
|
|||
|
|
|||
|
<a href="spring-boot-quick-start-guide.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.2.2.1.</b>
|
|||
|
|
|||
|
Spring Boot快速开始指南
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3" data-path="service-mesh.html">
|
|||
|
|
|||
|
<a href="service-mesh.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.</b>
|
|||
|
|
|||
|
Service Mesh 服务网格
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.1" data-path="the-enterprise-path-to-service-mesh-architectures.html">
|
|||
|
|
|||
|
<a href="the-enterprise-path-to-service-mesh-architectures.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.1.</b>
|
|||
|
|
|||
|
企业级服务网格架构
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.1.1" data-path="service-mesh-fundamental.html">
|
|||
|
|
|||
|
<a href="service-mesh-fundamental.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.1.1.</b>
|
|||
|
|
|||
|
Service Mesh基础
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.1.2" data-path="comparing-service-mesh-technologies.html">
|
|||
|
|
|||
|
<a href="comparing-service-mesh-technologies.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.1.2.</b>
|
|||
|
|
|||
|
Service Mesh技术对比
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.1.3" data-path="service-mesh-adoption-and-evolution.html">
|
|||
|
|
|||
|
<a href="service-mesh-adoption-and-evolution.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.1.3.</b>
|
|||
|
|
|||
|
采纳和演进
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.1.4" data-path="service-mesh-customization-and-integration.html">
|
|||
|
|
|||
|
<a href="service-mesh-customization-and-integration.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.1.4.</b>
|
|||
|
|
|||
|
定制和集成
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.1.5" data-path="service-mesh-conclusion.html">
|
|||
|
|
|||
|
<a href="service-mesh-conclusion.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.1.5.</b>
|
|||
|
|
|||
|
总结
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.2" data-path="istio.html">
|
|||
|
|
|||
|
<a href="istio.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.2.</b>
|
|||
|
|
|||
|
Istio
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.2.1" data-path="istio-installation.html">
|
|||
|
|
|||
|
<a href="istio-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.2.1.</b>
|
|||
|
|
|||
|
安装并试用Istio service mesh
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.2.2" data-path="configuring-request-routing.html">
|
|||
|
|
|||
|
<a href="configuring-request-routing.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.2.2.</b>
|
|||
|
|
|||
|
配置请求的路由规则
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.2.3" data-path="install-and-expand-istio-mesh.html">
|
|||
|
|
|||
|
<a href="install-and-expand-istio-mesh.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.2.3.</b>
|
|||
|
|
|||
|
安装和拓展Istio service mesh
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.2.4" data-path="integrating-vms.html">
|
|||
|
|
|||
|
<a href="integrating-vms.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.2.4.</b>
|
|||
|
|
|||
|
集成虚拟机
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.2.5" data-path="sidecar-spec-in-istio.html">
|
|||
|
|
|||
|
<a href="sidecar-spec-in-istio.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.2.5.</b>
|
|||
|
|
|||
|
Istio中sidecar的注入规范及示例
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.2.6" data-path="istio-community-tips.html">
|
|||
|
|
|||
|
<a href="istio-community-tips.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.2.6.</b>
|
|||
|
|
|||
|
如何参与Istio社区及注意事项
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.2.7" data-path="istio-tutorial.html">
|
|||
|
|
|||
|
<a href="istio-tutorial.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.2.7.</b>
|
|||
|
|
|||
|
Istio教程
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.2.8" data-path="istio-tutorials-collection.html">
|
|||
|
|
|||
|
<a href="istio-tutorials-collection.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.2.8.</b>
|
|||
|
|
|||
|
Istio免费学习资源汇总
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter active" data-level="6.3.2.9" data-path="understand-sidecar-injection-and-traffic-hijack-in-istio-service-mesh.html">
|
|||
|
|
|||
|
<a href="understand-sidecar-injection-and-traffic-hijack-in-istio-service-mesh.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.2.9.</b>
|
|||
|
|
|||
|
深入理解Istio中的Sidecar注入与流量劫持
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.3" data-path="linkerd.html">
|
|||
|
|
|||
|
<a href="linkerd.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.3.</b>
|
|||
|
|
|||
|
Linkerd
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.3.1" data-path="linkerd-user-guide.html">
|
|||
|
|
|||
|
<a href="linkerd-user-guide.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.3.1.</b>
|
|||
|
|
|||
|
Linkerd 使用指南
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.4" data-path="conduit.html">
|
|||
|
|
|||
|
<a href="conduit.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.4.</b>
|
|||
|
|
|||
|
Conduit
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.4.1" data-path="conduit-overview.html">
|
|||
|
|
|||
|
<a href="conduit-overview.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.4.1.</b>
|
|||
|
|
|||
|
Condiut概览
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.4.2" data-path="conduit-installation.html">
|
|||
|
|
|||
|
<a href="conduit-installation.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.4.2.</b>
|
|||
|
|
|||
|
安装Conduit
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.5" data-path="envoy.html">
|
|||
|
|
|||
|
<a href="envoy.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.5.</b>
|
|||
|
|
|||
|
Envoy
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.5.1" data-path="envoy-terminology.html">
|
|||
|
|
|||
|
<a href="envoy-terminology.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.5.1.</b>
|
|||
|
|
|||
|
Envoy的架构与基本术语
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.5.2" data-path="envoy-front-proxy.html">
|
|||
|
|
|||
|
<a href="envoy-front-proxy.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.5.2.</b>
|
|||
|
|
|||
|
Envoy作为前端代理
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.5.3" data-path="envoy-mesh-in-kubernetes-tutorial.html">
|
|||
|
|
|||
|
<a href="envoy-mesh-in-kubernetes-tutorial.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.5.3.</b>
|
|||
|
|
|||
|
Envoy mesh教程
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.3.6" data-path="sofamesh.html">
|
|||
|
|
|||
|
<a href="sofamesh.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.3.6.</b>
|
|||
|
|
|||
|
SOFAMesh
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.4" data-path="big-data.html">
|
|||
|
|
|||
|
<a href="big-data.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.4.</b>
|
|||
|
|
|||
|
大数据
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.4.1" data-path="spark-standalone-on-kubernetes.html">
|
|||
|
|
|||
|
<a href="spark-standalone-on-kubernetes.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.4.1.</b>
|
|||
|
|
|||
|
Spark standalone on Kubernetes
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.4.2" data-path="running-spark-with-kubernetes-native-scheduler.html">
|
|||
|
|
|||
|
<a href="running-spark-with-kubernetes-native-scheduler.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.4.2.</b>
|
|||
|
|
|||
|
运行支持Kubernetes原生调度的Spark程序
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.5" data-path="serverless.html">
|
|||
|
|
|||
|
<a href="serverless.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.5.</b>
|
|||
|
|
|||
|
Serverless架构
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.5.1" data-path="understanding-serverless.html">
|
|||
|
|
|||
|
<a href="understanding-serverless.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.5.1.</b>
|
|||
|
|
|||
|
理解Serverless
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.5.2" data-path="faas.html">
|
|||
|
|
|||
|
<a href="faas.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.5.2.</b>
|
|||
|
|
|||
|
FaaS-函数即服务
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="6.5.2.1" data-path="openfaas-quick-start.html">
|
|||
|
|
|||
|
<a href="openfaas-quick-start.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.5.2.1.</b>
|
|||
|
|
|||
|
OpenFaaS快速入门指南
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.6" data-path="edge-computing.html">
|
|||
|
|
|||
|
<a href="edge-computing.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.6.</b>
|
|||
|
|
|||
|
边缘计算
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="6.7" data-path="ai.html">
|
|||
|
|
|||
|
<a href="ai.html">
|
|||
|
|
|||
|
|
|||
|
<b>6.7.</b>
|
|||
|
|
|||
|
人工智能
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="header">开发指南</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="7.1" data-path="../develop/">
|
|||
|
|
|||
|
<a href="../develop/">
|
|||
|
|
|||
|
|
|||
|
<b>7.1.</b>
|
|||
|
|
|||
|
开发指南概览
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="7.2" data-path="../develop/sigs-and-working-group.html">
|
|||
|
|
|||
|
<a href="../develop/sigs-and-working-group.html">
|
|||
|
|
|||
|
|
|||
|
<b>7.2.</b>
|
|||
|
|
|||
|
SIG和工作组
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="7.3" data-path="../develop/developing-environment.html">
|
|||
|
|
|||
|
<a href="../develop/developing-environment.html">
|
|||
|
|
|||
|
|
|||
|
<b>7.3.</b>
|
|||
|
|
|||
|
开发环境搭建
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="7.4" data-path="../develop/using-vagrant-and-virtualbox-for-development.html">
|
|||
|
|
|||
|
<a href="../develop/using-vagrant-and-virtualbox-for-development.html">
|
|||
|
|
|||
|
|
|||
|
<b>7.4.</b>
|
|||
|
|
|||
|
本地分布式开发环境搭建(使用Vagrant和Virtualbox)
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="7.5" data-path="../develop/testing.html">
|
|||
|
|
|||
|
<a href="../develop/testing.html">
|
|||
|
|
|||
|
|
|||
|
<b>7.5.</b>
|
|||
|
|
|||
|
单元测试和集成测试
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="7.6" data-path="../develop/client-go-sample.html">
|
|||
|
|
|||
|
<a href="../develop/client-go-sample.html">
|
|||
|
|
|||
|
|
|||
|
<b>7.6.</b>
|
|||
|
|
|||
|
client-go示例
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="7.7" data-path="../develop/operator.html">
|
|||
|
|
|||
|
<a href="../develop/operator.html">
|
|||
|
|
|||
|
|
|||
|
<b>7.7.</b>
|
|||
|
|
|||
|
Operator
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="7.8" data-path="../develop/operator-sdk.html">
|
|||
|
|
|||
|
<a href="../develop/operator-sdk.html">
|
|||
|
|
|||
|
|
|||
|
<b>7.8.</b>
|
|||
|
|
|||
|
operator-sdk
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="7.9" data-path="../develop/advance-developer.html">
|
|||
|
|
|||
|
<a href="../develop/advance-developer.html">
|
|||
|
|
|||
|
|
|||
|
<b>7.9.</b>
|
|||
|
|
|||
|
高级开发指南
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="7.10" data-path="../develop/contribute.html">
|
|||
|
|
|||
|
<a href="../develop/contribute.html">
|
|||
|
|
|||
|
|
|||
|
<b>7.10.</b>
|
|||
|
|
|||
|
社区贡献
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="7.11" data-path="../develop/minikube.html">
|
|||
|
|
|||
|
<a href="../develop/minikube.html">
|
|||
|
|
|||
|
|
|||
|
<b>7.11.</b>
|
|||
|
|
|||
|
Minikube
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="header">附录</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="8.1" data-path="../appendix/">
|
|||
|
|
|||
|
<a href="../appendix/">
|
|||
|
|
|||
|
|
|||
|
<b>8.1.</b>
|
|||
|
|
|||
|
附录说明
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.2" data-path="../appendix/debug-kubernetes-services.html">
|
|||
|
|
|||
|
<a href="../appendix/debug-kubernetes-services.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.2.</b>
|
|||
|
|
|||
|
Kubernetes中的应用故障排查
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.3" data-path="../appendix/material-share.html">
|
|||
|
|
|||
|
<a href="../appendix/material-share.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.3.</b>
|
|||
|
|
|||
|
Kubernetes相关资讯和情报链接
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.4" data-path="../appendix/docker-best-practice.html">
|
|||
|
|
|||
|
<a href="../appendix/docker-best-practice.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.4.</b>
|
|||
|
|
|||
|
Docker最佳实践
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.5" data-path="../appendix/tricks.html">
|
|||
|
|
|||
|
<a href="../appendix/tricks.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.5.</b>
|
|||
|
|
|||
|
使用技巧
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.6" data-path="../appendix/issues.html">
|
|||
|
|
|||
|
<a href="../appendix/issues.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.6.</b>
|
|||
|
|
|||
|
问题记录
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.7" data-path="../appendix/kubernetes-changelog.html">
|
|||
|
|
|||
|
<a href="../appendix/kubernetes-changelog.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.7.</b>
|
|||
|
|
|||
|
Kubernetes版本更新日志
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="8.7.1" data-path="../appendix/kubernetes-1.7-changelog.html">
|
|||
|
|
|||
|
<a href="../appendix/kubernetes-1.7-changelog.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.7.1.</b>
|
|||
|
|
|||
|
Kubernetes1.7更新日志
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.7.2" data-path="../appendix/kubernetes-1.8-changelog.html">
|
|||
|
|
|||
|
<a href="../appendix/kubernetes-1.8-changelog.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.7.2.</b>
|
|||
|
|
|||
|
Kubernetes1.8更新日志
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.7.3" data-path="../appendix/kubernetes-1.9-changelog.html">
|
|||
|
|
|||
|
<a href="../appendix/kubernetes-1.9-changelog.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.7.3.</b>
|
|||
|
|
|||
|
Kubernetes1.9更新日志
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.7.4" data-path="../appendix/kubernetes-1.10-changelog.html">
|
|||
|
|
|||
|
<a href="../appendix/kubernetes-1.10-changelog.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.7.4.</b>
|
|||
|
|
|||
|
Kubernetes1.10更新日志
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.7.5" data-path="../appendix/kubernetes-1.11-changelog.html">
|
|||
|
|
|||
|
<a href="../appendix/kubernetes-1.11-changelog.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.7.5.</b>
|
|||
|
|
|||
|
Kubernetes1.11更新日志
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.8" data-path="../appendix/summary-and-outlook.html">
|
|||
|
|
|||
|
<a href="../appendix/summary-and-outlook.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.8.</b>
|
|||
|
|
|||
|
Kubernetes及云原生年度总结及展望
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<ul class="articles">
|
|||
|
|
|||
|
|
|||
|
<li class="chapter " data-level="8.8.1" data-path="../appendix/kubernetes-and-cloud-native-summary-in-2017-and-outlook-for-2018.html">
|
|||
|
|
|||
|
<a href="../appendix/kubernetes-and-cloud-native-summary-in-2017-and-outlook-for-2018.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.8.1.</b>
|
|||
|
|
|||
|
Kubernetes与云原生2017年年终总结及2018年展望
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
</ul>
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.9" data-path="../appendix/about-kcsp.html">
|
|||
|
|
|||
|
<a href="../appendix/about-kcsp.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.9.</b>
|
|||
|
|
|||
|
Kubernetes认证服务提供商(KCSP)说明
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
<li class="chapter " data-level="8.10" data-path="../appendix/about-cka-candidate.html">
|
|||
|
|
|||
|
<a href="../appendix/about-cka-candidate.html">
|
|||
|
|
|||
|
|
|||
|
<b>8.10.</b>
|
|||
|
|
|||
|
认证Kubernetes管理员(CKA)说明
|
|||
|
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</li>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<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=".." >深入理解Istio中的Sidecar注入与流量劫持</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">
|
|||
|
|
|||
|
<h2 id="深入理解-istio中的sidecar注入与流量劫持">深入理解 Istio中的Sidecar注入与流量劫持</h2>
|
|||
|
<p>在讲解 Istio 如何将 Envoy 代理注入到应用程序 Pod 中之前,我们需要先了解以下几个概念:</p>
|
|||
|
<ul>
|
|||
|
<li>Sidecar 模式:容器应用模式之一,Service Mesh 架构的一种实现方式。</li>
|
|||
|
<li>Init 容器:Pod 中的一种专用的容器,在应用程序容器启动之前运行,用来包含一些应用镜像中不存在的实用工具或安装脚本。</li>
|
|||
|
<li>iptables:流量劫持是通过 iptables 转发实现的。</li>
|
|||
|
</ul>
|
|||
|
<p>查看目前 <code>productpage-v1-745ffc55b7-2l2lw</code> Pod 中运行的容器:</p>
|
|||
|
<pre class="language-"><code class="lang-bash">$ kubectl -n default get pod productpage-v1-745ffc55b7-2l2lw -o<span class="token operator">=</span>jsonpath<span class="token operator">=</span><span class="token string">'{..spec.containers[*].name}'</span>
|
|||
|
productpage istio-proxy
|
|||
|
</code></pre>
|
|||
|
<p><code>productpage</code> 即应用容器,<code>istio-proxy</code> 即 Envoy 代理的 sidecar 容器。另外该 Pod 中实际上还运行过一个 Init 容器,因为它执行结束就自动终止了,所以我们看不到该容器的存在。关注 <code>jsonpath</code> 的用法请参考 <a href="https://kubernetes.io/docs/reference/kubectl/jsonpath/" target="_blank">JSONPath Support</a>。</p>
|
|||
|
<h2 id="sidecar-模式">Sidecar 模式</h2>
|
|||
|
<p>在了解 Istio 使用 Sidecar 注入之前,需要先说明下什么是 Sidecar 模式。Sidecar 是容器应用模式的一种,也是在 Service Mesh 中发扬光大的一种模式,详见 <a href="http://www.servicemesher.com/blog/service-mesh-architectures/" target="_blank">Service Mesh 架构解析</a>,其中详细描述了<strong>节点代理</strong>和 <strong>Sidecar</strong> 模式的 Service Mesh 架构。</p>
|
|||
|
<p>使用 Sidecar 模式部署服务网格时,无需在节点上运行代理(因此您不需要基础结构的协作),但是集群中将运行多个相同的 Sidecar 副本。从另一个角度看:我可以为一组微服务部署到一个服务网格中,你也可以部署一个有特定实现的服务网格。在 Sidecar 部署方式中,你会为每个应用的容器部署一个伴生容器。Sidecar 接管进出应用容器的所有流量。在 Kubernetes 的 Pod 中,在原有的应用容器旁边运行一个 Sidecar 容器,可以理解为两个容器共享存储、网络等资源,可以广义的将这个注入了 Sidecar 容器的 Pod 理解为一台主机,两个容器共享主机资源。</p>
|
|||
|
<p>例如下图 <a href="https://jimmysong.io/posts/sofamesh-and-mosn-proxy-sidecar-service-mesh-by-ant-financial/" target="_blank">SOFAMesh & SOFA MOSN—基于Istio构建的用于应对大规模流量的Service Mesh解决方案</a>的架构图中描述的,MOSN 作为 Sidecar 的方式和应用运行在同一个 Pod 中,拦截所有进出应用容器的流量,<a href="https://github.com/alipay/sofa-mesh" target="_blank">SOFAMesh</a> 兼容 Istio,其中使用 Go 语言开发的 <a href="https://github.com/alipay/sofa-mosn" target="_blank">SOFAMosn</a> 替换了 Envoy。</p>
|
|||
|
<figure id="fig6.3.2.9.1"><img src="https://ws4.sinaimg.cn/large/006tNbRwgy1fuyr4vizzwj31kw1biq98.jpg" alt="SOFAMesh架构图"><figcaption>图片 - SOFAMesh架构图</figcaption></figure>
|
|||
|
<p><strong>注意</strong>:下文中所指的 Sidecar 都是指的 Envoy 代理容器。</p>
|
|||
|
<h2 id="init-容器">Init 容器</h2>
|
|||
|
<p>Init 容器是一种专用容器,它在应用程序容器启动之前运行,用来包含一些应用镜像中不存在的实用工具或安装脚本。</p>
|
|||
|
<p>一个 Pod 中可以指定多个 Init 容器,如果指定了多个,那么 Init 容器将会按顺序依次运行。只有当前面的 Init 容器必须运行成功后,才可以运行下一个 Init 容器。当所有的 Init 容器运行完成后,Kubernetes 才初始化 Pod 和运行应用容器。</p>
|
|||
|
<p>Init 容器使用 Linux Namespace,所以相对应用程序容器来说具有不同的文件系统视图。因此,它们能够具有访问 Secret 的权限,而应用程序容器则不能。</p>
|
|||
|
<p>在 Pod 启动过程中,Init 容器会按顺序在网络和数据卷初始化之后启动。每个容器必须在下一个容器启动之前成功退出。如果由于运行时或失败退出,将导致容器启动失败,它会根据 Pod 的 <code>restartPolicy</code> 指定的策略进行重试。然而,如果 Pod 的 <code>restartPolicy</code> 设置为 Always,Init 容器失败时会使用 <code>RestartPolicy</code> 策略。</p>
|
|||
|
<p>在所有的 Init 容器没有成功之前,Pod 将不会变成 <code>Ready</code> 状态。Init 容器的端口将不会在 Service 中进行聚集。 正在初始化中的 Pod 处于 <code>Pending</code> 状态,但应该会将 <code>Initializing</code> 状态设置为 true。Init 容器运行完成以后就会自动终止。</p>
|
|||
|
<p>关于 Init 容器的详细信息请参考 <a href="https://jimmysong.io/kubernetes-handbook/concepts/init-containers.html" target="_blank">Init 容器 - Kubernetes 中文指南/云原生应用架构实践手册</a>。</p>
|
|||
|
<h2 id="sidecar-注入示例分析">Sidecar 注入示例分析</h2>
|
|||
|
<p>我们看下 Istio 官方示例 <code>bookinfo</code> 中 <code>productpage</code> 的 YAML 配置,关于 <code>bookinfo</code> 应用的详细 YAML 配置请参考 <a href="https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/blob/master/yaml/istio-bookinfo/bookinfo.yaml" target="_blank">bookinfo.yaml</a>。</p>
|
|||
|
<pre class="language-"><code class="lang-yaml"><span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> v1
|
|||
|
<span class="token key atrule">kind</span><span class="token punctuation">:</span> Service
|
|||
|
<span class="token key atrule">metadata</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> productpage
|
|||
|
<span class="token key atrule">labels</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">app</span><span class="token punctuation">:</span> productpage
|
|||
|
<span class="token key atrule">spec</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">ports</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">port</span><span class="token punctuation">:</span> <span class="token number">9080</span>
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> http
|
|||
|
<span class="token key atrule">selector</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">app</span><span class="token punctuation">:</span> productpage
|
|||
|
<span class="token punctuation">---</span>
|
|||
|
<span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> extensions/v1beta1
|
|||
|
<span class="token key atrule">kind</span><span class="token punctuation">:</span> Deployment
|
|||
|
<span class="token key atrule">metadata</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> productpage<span class="token punctuation">-</span>v1
|
|||
|
<span class="token key atrule">spec</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">replicas</span><span class="token punctuation">:</span> <span class="token number">1</span>
|
|||
|
<span class="token key atrule">template</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">metadata</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">labels</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">app</span><span class="token punctuation">:</span> productpage
|
|||
|
<span class="token key atrule">version</span><span class="token punctuation">:</span> v1
|
|||
|
<span class="token key atrule">spec</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">containers</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> productpage
|
|||
|
<span class="token key atrule">image</span><span class="token punctuation">:</span> istio/examples<span class="token punctuation">-</span>bookinfo<span class="token punctuation">-</span>productpage<span class="token punctuation">-</span>v1<span class="token punctuation">:</span>1.8.0
|
|||
|
<span class="token key atrule">imagePullPolicy</span><span class="token punctuation">:</span> IfNotPresent
|
|||
|
<span class="token key atrule">ports</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">containerPort</span><span class="token punctuation">:</span> <span class="token number">9080</span>
|
|||
|
</code></pre>
|
|||
|
<p>再查看下 <code>productpage</code> 容器的 <a href="https://github.com/istio/istio/blob/master/samples/bookinfo/src/productpage/Dockerfile" target="_blank">Dockerfile</a>。</p>
|
|||
|
<pre class="language-"><code class="lang-dockerfile">FROM python:2.7-slim
|
|||
|
|
|||
|
COPY requirements.txt ./
|
|||
|
RUN pip install --no-cache-dir -r requirements.txt
|
|||
|
|
|||
|
COPY productpage.py /opt/microservices/
|
|||
|
COPY templates /opt/microservices/templates
|
|||
|
COPY requirements.txt /opt/microservices/
|
|||
|
EXPOSE 9080
|
|||
|
WORKDIR /opt/microservices
|
|||
|
CMD python productpage.py 9080
|
|||
|
</code></pre>
|
|||
|
<p>我们看到 <code>Dockerfile</code> 中没有配置 <code>ENTRYPOINT</code>,所以 <code>CMD</code> 的配置 <code>python productpage.py 9080</code> 将作为默认的 <code>ENTRYPOINT</code>,记住这一点,再看下注入 sidecar 之后的配置。</p>
|
|||
|
<pre class="language-"><code class="lang-bash">$ istioctl kube-inject -f yaml/istio-bookinfo/bookinfo.yaml
|
|||
|
</code></pre>
|
|||
|
<p>我们只截取其中与 <code>productpage</code> 相关的 <code>Service</code> 和 <code>Deployment</code> 配置部分。</p>
|
|||
|
<pre class="language-"><code class="lang-yaml"><span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> v1
|
|||
|
<span class="token key atrule">kind</span><span class="token punctuation">:</span> Service
|
|||
|
<span class="token key atrule">metadata</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> productpage
|
|||
|
<span class="token key atrule">labels</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">app</span><span class="token punctuation">:</span> productpage
|
|||
|
<span class="token key atrule">spec</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">ports</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">port</span><span class="token punctuation">:</span> <span class="token number">9080</span>
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> http
|
|||
|
<span class="token key atrule">selector</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">app</span><span class="token punctuation">:</span> productpage
|
|||
|
<span class="token punctuation">---</span>
|
|||
|
<span class="token key atrule">apiVersion</span><span class="token punctuation">:</span> extensions/v1beta1
|
|||
|
<span class="token key atrule">kind</span><span class="token punctuation">:</span> Deployment
|
|||
|
<span class="token key atrule">metadata</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">creationTimestamp</span><span class="token punctuation">:</span> <span class="token null important">null</span>
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> productpage<span class="token punctuation">-</span>v1
|
|||
|
<span class="token key atrule">spec</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">replicas</span><span class="token punctuation">:</span> <span class="token number">1</span>
|
|||
|
<span class="token key atrule">strategy</span><span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
|
|||
|
<span class="token key atrule">template</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">metadata</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">annotations</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">sidecar.istio.io/status</span><span class="token punctuation">:</span> '<span class="token punctuation">{</span>"version"<span class="token punctuation">:</span><span class="token string">"fde14299e2ae804b95be08e0f2d171d466f47983391c00519bbf01392d9ad6bb"</span><span class="token punctuation">,</span>"initContainers"<span class="token punctuation">:</span><span class="token punctuation">[</span><span class="token string">"istio-init"</span><span class="token punctuation">]</span><span class="token punctuation">,</span>"containers"<span class="token punctuation">:</span><span class="token punctuation">[</span><span class="token string">"istio-proxy"</span><span class="token punctuation">]</span><span class="token punctuation">,</span>"volumes"<span class="token punctuation">:</span><span class="token punctuation">[</span><span class="token string">"istio-envoy"</span><span class="token punctuation">,</span><span class="token string">"istio-certs"</span><span class="token punctuation">]</span><span class="token punctuation">,</span>"imagePullSecrets"<span class="token punctuation">:</span><span class="token null important">null</span><span class="token punctuation">}</span>'
|
|||
|
<span class="token key atrule">creationTimestamp</span><span class="token punctuation">:</span> <span class="token null important">null</span>
|
|||
|
<span class="token key atrule">labels</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">app</span><span class="token punctuation">:</span> productpage
|
|||
|
<span class="token key atrule">version</span><span class="token punctuation">:</span> v1
|
|||
|
<span class="token key atrule">spec</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">containers</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">image</span><span class="token punctuation">:</span> istio/examples<span class="token punctuation">-</span>bookinfo<span class="token punctuation">-</span>productpage<span class="token punctuation">-</span>v1<span class="token punctuation">:</span>1.8.0
|
|||
|
<span class="token key atrule">imagePullPolicy</span><span class="token punctuation">:</span> IfNotPresent
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> productpage
|
|||
|
<span class="token key atrule">ports</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">containerPort</span><span class="token punctuation">:</span> <span class="token number">9080</span>
|
|||
|
<span class="token key atrule">resources</span><span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">args</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> proxy
|
|||
|
<span class="token punctuation">-</span> sidecar
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>configPath
|
|||
|
<span class="token punctuation">-</span> /etc/istio/proxy
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>binaryPath
|
|||
|
<span class="token punctuation">-</span> /usr/local/bin/envoy
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>serviceCluster
|
|||
|
<span class="token punctuation">-</span> productpage
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>drainDuration
|
|||
|
<span class="token punctuation">-</span> 45s
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>parentShutdownDuration
|
|||
|
<span class="token punctuation">-</span> 1m0s
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>discoveryAddress
|
|||
|
<span class="token punctuation">-</span> istio<span class="token punctuation">-</span>pilot.istio<span class="token punctuation">-</span>system<span class="token punctuation">:</span><span class="token number">15007</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>discoveryRefreshDelay
|
|||
|
<span class="token punctuation">-</span> 1s
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>zipkinAddress
|
|||
|
<span class="token punctuation">-</span> zipkin.istio<span class="token punctuation">-</span>system<span class="token punctuation">:</span><span class="token number">9411</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>connectTimeout
|
|||
|
<span class="token punctuation">-</span> 10s
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>statsdUdpAddress
|
|||
|
<span class="token punctuation">-</span> istio<span class="token punctuation">-</span>statsd<span class="token punctuation">-</span>prom<span class="token punctuation">-</span>bridge.istio<span class="token punctuation">-</span>system<span class="token punctuation">:</span><span class="token number">9125</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>proxyAdminPort
|
|||
|
<span class="token punctuation">-</span> <span class="token string">"15000"</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span><span class="token punctuation">-</span>controlPlaneAuthPolicy
|
|||
|
<span class="token punctuation">-</span> NONE
|
|||
|
<span class="token key atrule">env</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> POD_NAME
|
|||
|
<span class="token key atrule">valueFrom</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">fieldRef</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">fieldPath</span><span class="token punctuation">:</span> metadata.name
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> POD_NAMESPACE
|
|||
|
<span class="token key atrule">valueFrom</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">fieldRef</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">fieldPath</span><span class="token punctuation">:</span> metadata.namespace
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> INSTANCE_IP
|
|||
|
<span class="token key atrule">valueFrom</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">fieldRef</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">fieldPath</span><span class="token punctuation">:</span> status.podIP
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> ISTIO_META_POD_NAME
|
|||
|
<span class="token key atrule">valueFrom</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">fieldRef</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">fieldPath</span><span class="token punctuation">:</span> metadata.name
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> ISTIO_META_INTERCEPTION_MODE
|
|||
|
<span class="token key atrule">value</span><span class="token punctuation">:</span> REDIRECT
|
|||
|
<span class="token key atrule">image</span><span class="token punctuation">:</span> jimmysong/istio<span class="token punctuation">-</span>release<span class="token punctuation">-</span>proxyv2<span class="token punctuation">:</span>1.0.0
|
|||
|
<span class="token key atrule">imagePullPolicy</span><span class="token punctuation">:</span> IfNotPresent
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> istio<span class="token punctuation">-</span>proxy
|
|||
|
<span class="token key atrule">resources</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">requests</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">cpu</span><span class="token punctuation">:</span> 10m
|
|||
|
<span class="token key atrule">securityContext</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">privileged</span><span class="token punctuation">:</span> <span class="token boolean important">false</span>
|
|||
|
<span class="token key atrule">readOnlyRootFilesystem</span><span class="token punctuation">:</span> <span class="token boolean important">true</span>
|
|||
|
<span class="token key atrule">runAsUser</span><span class="token punctuation">:</span> <span class="token number">1337</span>
|
|||
|
<span class="token key atrule">volumeMounts</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">mountPath</span><span class="token punctuation">:</span> /etc/istio/proxy
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> istio<span class="token punctuation">-</span>envoy
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">mountPath</span><span class="token punctuation">:</span> /etc/certs/
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> istio<span class="token punctuation">-</span>certs
|
|||
|
<span class="token key atrule">readOnly</span><span class="token punctuation">:</span> <span class="token boolean important">true</span>
|
|||
|
<span class="token key atrule">initContainers</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">args</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span>p
|
|||
|
<span class="token punctuation">-</span> <span class="token string">"15001"</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span>u
|
|||
|
<span class="token punctuation">-</span> <span class="token string">"1337"</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span>m
|
|||
|
<span class="token punctuation">-</span> REDIRECT
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span>i
|
|||
|
<span class="token punctuation">-</span> <span class="token string">'*'</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span>x
|
|||
|
<span class="token punctuation">-</span> <span class="token string">""</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span>b
|
|||
|
<span class="token punctuation">-</span> <span class="token number">9080</span><span class="token punctuation">,</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token punctuation">-</span>d
|
|||
|
<span class="token punctuation">-</span> <span class="token string">""</span>
|
|||
|
<span class="token key atrule">image</span><span class="token punctuation">:</span> jimmysong/istio<span class="token punctuation">-</span>release<span class="token punctuation">-</span>proxy_init<span class="token punctuation">:</span>1.0.0
|
|||
|
<span class="token key atrule">imagePullPolicy</span><span class="token punctuation">:</span> IfNotPresent
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> istio<span class="token punctuation">-</span>init
|
|||
|
<span class="token key atrule">resources</span><span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
|
|||
|
<span class="token key atrule">securityContext</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">capabilities</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">add</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> NET_ADMIN
|
|||
|
<span class="token key atrule">privileged</span><span class="token punctuation">:</span> <span class="token boolean important">true</span>
|
|||
|
<span class="token key atrule">volumes</span><span class="token punctuation">:</span>
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">emptyDir</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">medium</span><span class="token punctuation">:</span> Memory
|
|||
|
<span class="token key atrule">name</span><span class="token punctuation">:</span> istio<span class="token punctuation">-</span>envoy
|
|||
|
<span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> istio<span class="token punctuation">-</span>certs
|
|||
|
<span class="token key atrule">secret</span><span class="token punctuation">:</span>
|
|||
|
<span class="token key atrule">optional</span><span class="token punctuation">:</span> <span class="token boolean important">true</span>
|
|||
|
<span class="token key atrule">secretName</span><span class="token punctuation">:</span> istio.default
|
|||
|
<span class="token key atrule">status</span><span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
|
|||
|
</code></pre>
|
|||
|
<p>我们看到 Service 的配置没有变化,所有的变化都在 <code>Deployment</code> 里,Istio 给应用 Pod 注入的配置主要包括:</p>
|
|||
|
<ul>
|
|||
|
<li>Init 容器 <code>istio-init</code>:用于给 Sidecar 容器即 Envoy 代理做初始化,设置 iptables 端口转发</li>
|
|||
|
<li>Envoy sidecar 容器 <code>istio-proxy</code>:运行 Envoy 代理</li>
|
|||
|
</ul>
|
|||
|
<p>接下来将分别解析下这两个容器。</p>
|
|||
|
<h3 id="init-容器解析">Init 容器解析</h3>
|
|||
|
<p>Istio 在 Pod 中注入的 Init 容器名为 <code>istio-init</code>,我们在上面 Istio 注入完成后的 YAML 文件中看到了该容器的启动参数:</p>
|
|||
|
<pre class="language-"><code class="lang-bash">-p 15001 -u 1337 -m REDIRECT -i <span class="token string">'*'</span> -x <span class="token string">""</span> -b 9080 -d <span class="token string">""</span>
|
|||
|
</code></pre>
|
|||
|
<p>我们再检查下该容器的 <a href="https://github.com/istio/istio/blob/master/pilot/docker/Dockerfile.proxy_init" target="_blank">Dockerfile</a> 看看 <code>ENTRYPOINT</code> 是什么以确定启动时执行的命令。</p>
|
|||
|
<pre class="language-"><code class="lang-dockerfile">FROM ubuntu:xenial
|
|||
|
RUN apt-get update && apt-get install -y \
|
|||
|
iproute2 \
|
|||
|
iptables \
|
|||
|
&& rm -rf /var/lib/apt/lists/*
|
|||
|
|
|||
|
ADD istio-iptables.sh /usr/local/bin/
|
|||
|
ENTRYPOINT ["/usr/local/bin/istio-iptables.sh"]
|
|||
|
</code></pre>
|
|||
|
<p>我们看到 <code>istio-init</code> 容器的入口是 <code>/usr/local/bin/istio-iptables.sh</code> 脚本,再按图索骥看看这个脚本里到底写的什么,该脚本的位置在 Istio 源码仓库的 <a href="https://github.com/istio/istio/blob/master/tools/deb/istio-iptables.sh" target="_blank">tools/deb/istio-iptables.sh</a>,一共 300 多行,就不贴在这里了。下面我们就来解析下这个启动脚本。</p>
|
|||
|
<h3 id="init-容器启动入口">Init 容器启动入口</h3>
|
|||
|
<p>Init 容器的启动入口是 <code>/usr/local/bin/istio-iptables.sh</code> 脚本,该脚本的用法如下:</p>
|
|||
|
<pre class="language-"><code class="lang-bash">$ istio-iptables.sh -p PORT -u UID -g GID <span class="token punctuation">[</span>-m mode<span class="token punctuation">]</span> <span class="token punctuation">[</span>-b ports<span class="token punctuation">]</span> <span class="token punctuation">[</span>-d ports<span class="token punctuation">]</span> <span class="token punctuation">[</span>-i CIDR<span class="token punctuation">]</span> <span class="token punctuation">[</span>-x CIDR<span class="token punctuation">]</span> <span class="token punctuation">[</span>-h<span class="token punctuation">]</span>
|
|||
|
-p: 指定重定向所有 TCP 流量的 Envoy 端口(默认为 <span class="token variable">$ENVOY_PORT</span> <span class="token operator">=</span> 15001)
|
|||
|
-u: 指定未应用重定向的用户的 UID。通常,这是代理容器的 UID(默认为 <span class="token variable">$ENVOY_USER</span> 的 uid,istio_proxy 的 uid 或 1337)
|
|||
|
-g: 指定未应用重定向的用户的 GID。(与 -u param 相同的默认值)
|
|||
|
-m: 指定入站连接重定向到 Envoy 的模式,“REDIRECT” 或 “TPROXY”(默认为 <span class="token variable">$ISTIO_INBOUND_INTERCEPTION_MODE</span><span class="token punctuation">)</span>
|
|||
|
-b: 逗号分隔的入站端口列表,其流量将重定向到 Envoy(可选)。使用通配符 “*” 表示重定向所有端口。为空时表示禁用所有入站重定向(默认为 <span class="token variable">$ISTIO_INBOUND_PORTS</span>)
|
|||
|
-d: 指定要从重定向到 Envoy 中排除(可选)的入站端口列表,以逗号格式分隔。使用通配符“*” 表示重定向所有入站流量(默认为 <span class="token variable">$ISTIO_LOCAL_EXCLUDE_PORTS</span>)
|
|||
|
-i: 指定重定向到 Envoy(可选)的 IP 地址范围,以逗号分隔的 CIDR 格式列表。使用通配符 “*” 表示重定向所有出站流量。空列表将禁用所有出站重定向(默认为 <span class="token variable">$ISTIO_SERVICE_CIDR</span>)
|
|||
|
-x: 指定将从重定向中排除的 IP 地址范围,以逗号分隔的 CIDR 格式列表。使用通配符 “*” 表示重定向所有出站流量(默认为 <span class="token variable">$ISTIO_SERVICE_EXCLUDE_CIDR</span>)。
|
|||
|
|
|||
|
环境变量位于 <span class="token variable">$ISTIO_SIDECAR_CONFIG</span>(默认在:/var/lib/istio/envoy/sidecar.env)
|
|||
|
</code></pre>
|
|||
|
<p>通过查看该脚本你将看到,以上传入的参数都会重新组装成 <a href="https://wangchujiang.com/linux-command/c/iptables.html" target="_blank"><code>iptables</code> 命令</a>的参数。</p>
|
|||
|
<p>再参考 <code>istio-init</code> 容器的启动参数,完整的启动命令如下:</p>
|
|||
|
<pre class="language-"><code class="lang-bash">$ /usr/local/bin/istio-iptables.sh -p 15001 -u 1337 -m REDIRECT -i <span class="token string">'*'</span> -x <span class="token string">""</span> -b 9080 -d <span class="token string">""</span>
|
|||
|
</code></pre>
|
|||
|
<p>该容器存在的意义就是让 Envoy 代理可以拦截所有的进出 Pod 的流量,即将入站流量重定向到 Sidecar,再拦截应用容器的出站流量经过 Sidecar 处理后再出站。</p>
|
|||
|
<p><strong>命令解析</strong></p>
|
|||
|
<p>这条启动命令的作用是:</p>
|
|||
|
<ul>
|
|||
|
<li>将应用容器的所有流量都转发到 Envoy 的 15001 端口。</li>
|
|||
|
<li>使用 <code>istio-proxy</code> 用户身份运行, UID 为 1337,即 Envoy 所处的用户空间,这也是 <code>istio-proxy</code> 容器默认使用的用户,见 YAML 配置中的 <code>runAsUser</code> 字段。</li>
|
|||
|
<li>使用默认的 <code>REDIRECT</code> 模式来重定向流量。</li>
|
|||
|
<li>将所有出站流量都重定向到 Envoy 代理。</li>
|
|||
|
<li>将所有访问 9080 端口(即应用容器 <code>productpage</code> 的端口)的流量重定向到 Envoy 代理。</li>
|
|||
|
</ul>
|
|||
|
<p>因为 Init 容器初始化完毕后就会自动终止,因为我们无法登陆到容器中查看 iptables 信息,但是 Init 容器初始化结果会保留到应用容器和 Sidecar 容器中。</p>
|
|||
|
<h3 id="istio-proxy-容器解析">istio-proxy 容器解析</h3>
|
|||
|
<p>为了查看 iptables 配置,我们需要登陆到 Sidecar 容器中使用 root 用户来查看,因为 <code>kubectl</code> 无法使用特权模式来远程操作 docker 容器,所以我们需要登陆到 <code>productpage</code> Pod 所在的主机上使用 <code>docker</code> 命令登陆容器中查看。</p>
|
|||
|
<p>查看 <code>productpage</code> Pod 所在的主机。</p>
|
|||
|
<pre class="language-"><code class="lang-bash">$ kubectl -n default get pod -l app<span class="token operator">=</span>productpage -o wide
|
|||
|
NAME READY STATUS RESTARTS AGE IP NODE
|
|||
|
productpage-v1-745ffc55b7-2l2lw 2/2 Running 0 1d 172.33.78.10 node3
|
|||
|
</code></pre>
|
|||
|
<p>从输出结果中可以看到该 Pod 运行在 <code>node3</code> 上,使用 <code>vagrant</code> 命令登陆到 <code>node3</code> 主机中并切换为 root 用户。</p>
|
|||
|
<pre class="language-"><code class="lang-bash">$ vagrant <span class="token function">ssh</span> node3
|
|||
|
$ <span class="token function">sudo</span> -i
|
|||
|
</code></pre>
|
|||
|
<p>查看 iptables 配置,列出 NAT(网络地址转换)表的所有规则,因为在 Init 容器启动的时候选择给 <code>istio-iptables.sh</code> 传递的参数中指定将入站流量重定向到 Envoy 的模式为 “REDIRECT”,因此在 iptables 中将只有 NAT 表的规格配置,如果选择 <code>TPROXY</code> 还会有 <code>mangle</code> 表配置。<code>iptables</code> 命令的详细用法请参考 <a href="https://wangchujiang.com/linux-command/c/iptables.html" target="_blank">iptables</a>,规则配置请参考 <a href="http://www.zsythink.net/archives/1517" target="_blank">iptables 规则配置</a>。</p>
|
|||
|
<h2 id="理解-iptables">理解 iptables</h2>
|
|||
|
<p><code>iptables</code> 是 Linux 内核中的防火墙软件 netfilter 的管理工具,位于用户空间,同时也是 netfilter 的一部分。Netfilter 位于内核空间,不仅有网络地址转换的功能,也具备数据包内容修改、以及数据包过滤等防火墙功能。</p>
|
|||
|
<p>在了解 Init 容器初始化的 iptables 之前,我们先来了解下 iptables 和规则配置。</p>
|
|||
|
<p>下图展示了 iptables 调用链。</p>
|
|||
|
<figure id="fig6.3.2.9.2"><img src="https://ws4.sinaimg.cn/large/0069RVTdly1fv5hukl647j30k6145gnt.jpg" alt="iptables 调用链"><figcaption>图片 - iptables 调用链</figcaption></figure>
|
|||
|
<h3 id="iptables-中的表">iptables 中的表</h3>
|
|||
|
<p>Init 容器中使用的的 iptables 版本是 <code>v1.6.0</code>,共包含 5 张表:</p>
|
|||
|
<ol>
|
|||
|
<li><code>raw</code> 用于配置数据包,<code>raw</code> 中的数据包不会被系统跟踪。</li>
|
|||
|
<li><code>filter</code> 是用于存放所有与防火墙相关操作的默认表。</li>
|
|||
|
<li><code>nat</code> 用于 <a href="https://en.wikipedia.org/wiki/Network_address_translation" target="_blank">网络地址转换</a>(例如:端口转发)。</li>
|
|||
|
<li><code>mangle</code> 用于对特定数据包的修改(参考<a href="https://en.wikipedia.org/wiki/Mangled_packet" target="_blank">损坏数据包</a>)。</li>
|
|||
|
<li><code>security</code> 用于<a href="https://wiki.archlinux.org/index.php/Security#Mandatory_access_control" target="_blank">强制访问控制</a> 网络规则。</li>
|
|||
|
</ol>
|
|||
|
<p><strong>注</strong>:在本示例中只用到了 <code>nat</code> 表。</p>
|
|||
|
<p>不同的表中的具有的链类型如下表所示:</p>
|
|||
|
<table>
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>规则名称</th>
|
|||
|
<th>raw</th>
|
|||
|
<th>filter</th>
|
|||
|
<th>nat</th>
|
|||
|
<th>mangle</th>
|
|||
|
<th>security</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td>PREROUTING</td>
|
|||
|
<td>✓</td>
|
|||
|
<td></td>
|
|||
|
<td>✓</td>
|
|||
|
<td>✓</td>
|
|||
|
<td></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>INPUT</td>
|
|||
|
<td></td>
|
|||
|
<td>✓</td>
|
|||
|
<td>✓</td>
|
|||
|
<td>✓</td>
|
|||
|
<td>✓</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>OUTPUT</td>
|
|||
|
<td></td>
|
|||
|
<td>✓</td>
|
|||
|
<td>✓</td>
|
|||
|
<td>✓</td>
|
|||
|
<td>✓</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>POSTROUTING</td>
|
|||
|
<td></td>
|
|||
|
<td></td>
|
|||
|
<td>✓</td>
|
|||
|
<td>✓</td>
|
|||
|
<td></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>FORWARD</td>
|
|||
|
<td>✓</td>
|
|||
|
<td>✓</td>
|
|||
|
<td></td>
|
|||
|
<td>✓</td>
|
|||
|
<td>✓</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<p>下图是 iptables 的调用链顺序。</p>
|
|||
|
<figure id="fig6.3.2.9.3"><img src="https://ws1.sinaimg.cn/large/0069RVTdgy1fv5dq2bptdj31110begnl.jpg" alt="iptables 调用链"><figcaption>图片 - iptables 调用链</figcaption></figure>
|
|||
|
<p>关于 iptables 的详细介绍请参考<a href="https://www.aliang.org/Linux/iptables.html" target="_blank">常见 iptables 使用规则场景整理</a>。</p>
|
|||
|
<h3 id="iptables-命令">iptables 命令</h3>
|
|||
|
<p><code>iptables</code> 命令的主要用途是修改这些表中的规则。<code>iptables</code> 命令格式如下:</p>
|
|||
|
<pre class="language-"><code class="lang-bash">$ iptables <span class="token punctuation">[</span>-t 表名<span class="token punctuation">]</span> 命令选项[链名<span class="token punctuation">]</span>[条件匹配]<span class="token punctuation">[</span>-j 目标动作或跳转]
|
|||
|
</code></pre>
|
|||
|
<p>Init 容器中的 <code>/istio-iptables.sh</code> 启动入口脚本就是执行 iptables 初始化的。</p>
|
|||
|
<h3 id="理解-iptables-规则">理解 iptables 规则</h3>
|
|||
|
<p>查看 <code>istio-proxy</code> 容器中的默认的 iptables 规则,默认查看的是 filter 表中的规则。</p>
|
|||
|
<pre class="language-"><code class="lang-bash">$ iptables -L -v
|
|||
|
Chain INPUT <span class="token punctuation">(</span>policy ACCEPT 350K packets, 63M bytes<span class="token punctuation">)</span>
|
|||
|
pkts bytes target prot opt <span class="token keyword">in</span> out <span class="token function">source</span> destination
|
|||
|
|
|||
|
Chain FORWARD <span class="token punctuation">(</span>policy ACCEPT 0 packets, 0 bytes<span class="token punctuation">)</span>
|
|||
|
pkts bytes target prot opt <span class="token keyword">in</span> out <span class="token function">source</span> destination
|
|||
|
|
|||
|
Chain OUTPUT <span class="token punctuation">(</span>policy ACCEPT 18M packets, 1916M bytes<span class="token punctuation">)</span>
|
|||
|
pkts bytes target prot opt <span class="token keyword">in</span> out <span class="token function">source</span> destination
|
|||
|
</code></pre>
|
|||
|
<p>我们看到三个默认的链,分别是 INPUT、FORWARD 和 OUTPUT,每个链中的第一行输出表示链名称(在本例中为INPUT/FORWARD/OUTPUT),后跟默认策略(ACCEPT)。</p>
|
|||
|
<p>下图是 iptables 的建议结构图,流量在经过 INPUT 链之后就进入了上层协议栈,比如</p>
|
|||
|
<figure id="fig6.3.2.9.4"><img src="https://ws4.sinaimg.cn/large/0069RVTdgy1fv5dm4a9ygj30w50czdi3.jpg" alt="iptables结构图"><figcaption>图片 - iptables结构图</figcaption></figure>
|
|||
|
<p>图片来自<a href="https://www.aliang.org/Linux/iptables.html" target="_blank">常见 iptables 使用规则场景整理</a></p>
|
|||
|
<p>每条链中都可以添加多条规则,规则是按照顺序从前到后执行的。我们来看下规则的表头定义。</p>
|
|||
|
<ul>
|
|||
|
<li><strong>pkts</strong>:处理过的匹配的报文数量</li>
|
|||
|
<li><strong>bytes</strong>:累计处理的报文大小(字节数)</li>
|
|||
|
<li><strong>target</strong>:如果报文与规则匹配,指定目标就会被执行。</li>
|
|||
|
<li><strong>prot</strong>:协议,例如 <code>tdp</code>、<code>udp</code>、<code>icmp</code> 和 <code>all</code>。 </li>
|
|||
|
<li><strong>opt</strong>:很少使用,这一列用于显示 IP 选项。</li>
|
|||
|
<li><strong>in</strong>:入站网卡。</li>
|
|||
|
<li><strong>out</strong>:出站网卡。</li>
|
|||
|
<li><strong>source</strong>:流量的源 IP 地址或子网,后者是 <code>anywhere</code>。</li>
|
|||
|
<li><strong>destination</strong>:流量的目的地 IP 地址或子网,或者是 <code>anywhere</code>。</li>
|
|||
|
</ul>
|
|||
|
<p>还有一列没有表头,显示在最后,表示规则的选项,作为规则的扩展匹配条件,用来补充前面的几列中的配置。<code>prot</code>、<code>opt</code>、<code>in</code>、<code>out</code>、<code>source</code> 和 <code>destination</code> 和显示在 <code>destination</code> 后面的没有表头的一列扩展条件共同组成匹配规则。当流量匹配这些规则后就会执行 <code>target</code>。</p>
|
|||
|
<p>关于 iptables 规则请参考<a href="https://www.aliang.org/Linux/iptables.html" target="_blank">常见iptables使用规则场景整理</a>。</p>
|
|||
|
<p><strong>target 支持的类型</strong></p>
|
|||
|
<p><code>target</code> 类型包括 ACCEPT<code>、REJECT</code>、<code>DROP</code>、<code>LOG</code> 、<code>SNAT</code>、<code>MASQUERADE</code>、<code>DNAT</code>、<code>REDIRECT</code>、<code>RETURN</code> 或者跳转到其他规则等。只要执行到某一条链中只有按照顺序有一条规则匹配后就可以确定报文的去向了,除了 <code>RETURN</code> 类型,类似编程语言中的 <code>return</code> 语句,返回到它的调用点,继续执行下一条规则。<code>target</code> 支持的配置详解请参考 <a href="http://www.zsythink.net/archives/1199" target="_blank">iptables 详解(1):iptables 概念</a>。</p>
|
|||
|
<p>从输出结果中可以看到 Init 容器没有在 iptables 的默认链路中创建任何规则,而是创建了新的链路。</p>
|
|||
|
<h2 id="查看-iptables-nat-表中注入的规则">查看 iptables nat 表中注入的规则</h2>
|
|||
|
<p>Init 容器通过向 iptables nat 表中注入转发规则来劫持流量的,下图显示的是 productpage 服务中的 iptables 流量劫持的详细过程。</p>
|
|||
|
<figure id="fig6.3.2.9.5"><img src="https://ws1.sinaimg.cn/large/0069RVTdgy1fv5doj8fuij31kw0ytn7h.jpg" alt="Envoy sidecar 流量劫持 Istio iptables 宋净超 Jimmy Song 服务网格 Service Mesh"><figcaption>图片 - Envoy sidecar 流量劫持 Istio iptables 宋净超 Jimmy Song 服务网格 Service Mesh</figcaption></figure>
|
|||
|
<p>Init 容器启动时命令行参数中指定了 <code>REDIRECT</code> 模式,因此只创建了 NAT 表规则,接下来我们查看下 NAT 表中创建的规则,这是全文中的<strong>重点部分</strong>,前面讲了那么多都是为它做铺垫的。下面是查看 nat 表中的规则,其中链的名字中包含 <code>ISTIO</code> 前缀的是由 Init 容器注入的,规则匹配是根据下面显示的顺序来执行的,其中会有多次跳转。</p>
|
|||
|
<pre class="language-"><code class="lang-bash"><span class="token comment" spellcheck="true"># 查看 NAT 表中规则配置的详细信息</span>
|
|||
|
$ iptables -t nat -L -v
|
|||
|
<span class="token comment" spellcheck="true"># PREROUTING 链:用于目标地址转换(DNAT),将所有入站 TCP 流量跳转到 ISTIO_INBOUND 链上</span>
|
|||
|
Chain PREROUTING <span class="token punctuation">(</span>policy ACCEPT 0 packets, 0 bytes<span class="token punctuation">)</span>
|
|||
|
pkts bytes target prot opt <span class="token keyword">in</span> out <span class="token function">source</span> destination
|
|||
|
2 120 ISTIO_INBOUND tcp -- any any anywhere anywhere
|
|||
|
|
|||
|
<span class="token comment" spellcheck="true"># INPUT 链:处理输入数据包,非 TCP 流量将继续 OUTPUT 链</span>
|
|||
|
Chain INPUT <span class="token punctuation">(</span>policy ACCEPT 2 packets, 120 bytes<span class="token punctuation">)</span>
|
|||
|
pkts bytes target prot opt <span class="token keyword">in</span> out <span class="token function">source</span> destination
|
|||
|
|
|||
|
<span class="token comment" spellcheck="true"># OUTPUT 链:将所有出站数据包跳转到 ISTIO_OUTPUT 链上</span>
|
|||
|
Chain OUTPUT <span class="token punctuation">(</span>policy ACCEPT 41146 packets, 3845K bytes<span class="token punctuation">)</span>
|
|||
|
pkts bytes target prot opt <span class="token keyword">in</span> out <span class="token function">source</span> destination
|
|||
|
93 5580 ISTIO_OUTPUT tcp -- any any anywhere anywhere
|
|||
|
|
|||
|
<span class="token comment" spellcheck="true"># POSTROUTING 链:所有数据包流出网卡时都要先进入POSTROUTING 链,内核根据数据包目的地判断是否需要转发出去,我们看到此处未做任何处理</span>
|
|||
|
Chain POSTROUTING <span class="token punctuation">(</span>policy ACCEPT 41199 packets, 3848K bytes<span class="token punctuation">)</span>
|
|||
|
pkts bytes target prot opt <span class="token keyword">in</span> out <span class="token function">source</span> destination
|
|||
|
|
|||
|
<span class="token comment" spellcheck="true"># ISTIO_INBOUND 链:将所有目的地为 9080 端口的入站流量重定向到 ISTIO_IN_REDIRECT 链上</span>
|
|||
|
Chain ISTIO_INBOUND <span class="token punctuation">(</span>1 references<span class="token punctuation">)</span>
|
|||
|
pkts bytes target prot opt <span class="token keyword">in</span> out <span class="token function">source</span> destination
|
|||
|
2 120 ISTIO_IN_REDIRECT tcp -- any any anywhere anywhere tcp dpt:9080
|
|||
|
|
|||
|
<span class="token comment" spellcheck="true"># ISTIO_IN_REDIRECT 链:将所有的入站流量跳转到本地的 15001 端口,至此成功的拦截了流量到 Envoy </span>
|
|||
|
Chain ISTIO_IN_REDIRECT <span class="token punctuation">(</span>1 references<span class="token punctuation">)</span>
|
|||
|
pkts bytes target prot opt <span class="token keyword">in</span> out <span class="token function">source</span> destination
|
|||
|
2 120 REDIRECT tcp -- any any anywhere anywhere redir ports 15001
|
|||
|
|
|||
|
<span class="token comment" spellcheck="true"># ISTIO_OUTPUT 链:选择需要重定向到 Envoy(即本地) 的出站流量,所有非 localhost 的流量全部转发到 ISTIO_REDIRECT。为了避免流量在该 Pod 中无限循环,所有到 istio-proxy 用户空间的流量都返回到它的调用点中的下一条规则,本例中即 OUTPUT 链,因为跳出 ISTIO_OUTPUT 规则之后就进入下一条链 POSTROUTING。如果目的地非 localhost 就跳转到 ISTIO_REDIRECT;如果流量是来自 istio-proxy 用户空间的,那么就跳出该链,返回它的调用链继续执行下一条规则(OUPT 的下一条规则,无需对流量进行处理);所有的非 istio-proxy 用户空间的目的地是 localhost 的流量就跳转到 ISTIO_REDIRECT</span>
|
|||
|
Chain ISTIO_OUTPUT <span class="token punctuation">(</span>1 references<span class="token punctuation">)</span>
|
|||
|
pkts bytes target prot opt <span class="token keyword">in</span> out <span class="token function">source</span> destination
|
|||
|
0 0 ISTIO_REDIRECT all -- any lo anywhere <span class="token operator">!</span>localhost
|
|||
|
40 2400 RETURN all -- any any anywhere anywhere owner UID match istio-proxy
|
|||
|
0 0 RETURN all -- any any anywhere anywhere owner GID match istio-proxy
|
|||
|
0 0 RETURN all -- any any anywhere localhost
|
|||
|
53 3180 ISTIO_REDIRECT all -- any any anywhere anywhere
|
|||
|
|
|||
|
<span class="token comment" spellcheck="true"># ISTIO_REDIRECT 链:将所有流量重定向到 Envoy(即本地) 的 15001 端口</span>
|
|||
|
Chain ISTIO_REDIRECT <span class="token punctuation">(</span>2 references<span class="token punctuation">)</span>
|
|||
|
pkts bytes target prot opt <span class="token keyword">in</span> out <span class="token function">source</span> destination
|
|||
|
53 3180 REDIRECT tcp -- any any anywhere anywhere redir ports 15001
|
|||
|
</code></pre>
|
|||
|
<p><code>iptables</code> 显示的链的顺序,即流量规则匹配的顺序。其中要特别注意 <code>ISTIO_OUTPUT</code> 链中的规则配置。为了避免流量一直在 Pod 中无限循环,所有到 istio-proxy 用户空间的流量都返回到它的调用点中的下一条规则,本例中即 OUTPUT 链,因为跳出 <code>ISTIO_OUTPUT</code> 规则之后就进入下一条链 <code>POSTROUTING</code>。</p>
|
|||
|
<p><code>ISTIO_OUTPUT</code> 链规则匹配的详细过程如下:</p>
|
|||
|
<ul>
|
|||
|
<li>如果目的地非 localhost 就跳转到 ISTIO_REDIRECT 链</li>
|
|||
|
<li>所有来自 istio-proxy 用户空间的流量跳转到它的调用点 <code>OUTPUT</code> 继续执行 <code>OUTPUT</code> 链的下一条规则,因为 <code>OUTPUT</code> 链中没有下一条规则了,所以会继续执行 <code>POSTROUTING</code> 链然后跳出 iptables,直接访问目的地</li>
|
|||
|
<li>如果目的地是 localhost 但是流量又不是来自 istio-proxy 用户空间的就跳转到 <code>ISTIO_REDIRECT</code> 链</li>
|
|||
|
</ul>
|
|||
|
<p>以上 iptables 规则都是 Init 容器启动的时使用 <a href="https://github.com/istio/istio/blob/master/tools/deb/istio-iptables.sh" target="_blank">istio-iptables.sh</a> 脚本生成的,详细过程可以查看该脚本。</p>
|
|||
|
<h2 id="查看-envoy-运行状态">查看 Envoy 运行状态</h2>
|
|||
|
<p>首先查看 <code>proxyv2</code> 镜像的 <a href="https://github.com/istio/istio/blob/master/pilot/docker/Dockerfile.proxyv2" target="_blank">Dockerfile</a>。</p>
|
|||
|
<pre class="language-"><code class="lang-dockerfile">FROM istionightly/base_debug
|
|||
|
ARG proxy_version
|
|||
|
ARG istio_version
|
|||
|
|
|||
|
# 安装 Envoy
|
|||
|
ADD envoy /usr/local/bin/envoy
|
|||
|
|
|||
|
# 使用环境变量的方式明文指定 proxy 的版本/功能
|
|||
|
ENV ISTIO_META_ISTIO_PROXY_VERSION "1.1.0"
|
|||
|
# 使用环境变量的方式明文指定 proxy 明确的 sha,用于指定版本的配置和调试
|
|||
|
ENV ISTIO_META_ISTIO_PROXY_SHA $proxy_version
|
|||
|
# 环境变量,指定明确的构建号,用于调试
|
|||
|
ENV ISTIO_META_ISTIO_VERSION $istio_version
|
|||
|
|
|||
|
ADD pilot-agent /usr/local/bin/pilot-agent
|
|||
|
|
|||
|
ADD envoy_pilot.yaml.tmpl /etc/istio/proxy/envoy_pilot.yaml.tmpl
|
|||
|
ADD envoy_policy.yaml.tmpl /etc/istio/proxy/envoy_policy.yaml.tmpl
|
|||
|
ADD envoy_telemetry.yaml.tmpl /etc/istio/proxy/envoy_telemetry.yaml.tmpl
|
|||
|
ADD istio-iptables.sh /usr/local/bin/istio-iptables.sh
|
|||
|
|
|||
|
COPY envoy_bootstrap_v2.json /var/lib/istio/envoy/envoy_bootstrap_tmpl.json
|
|||
|
|
|||
|
RUN chmod 755 /usr/local/bin/envoy /usr/local/bin/pilot-agent
|
|||
|
|
|||
|
# 将 istio-proxy 用户加入 sudo 权限以允许执行 tcpdump 和其他调试命令
|
|||
|
RUN useradd -m --uid 1337 istio-proxy && \
|
|||
|
echo "istio-proxy ALL=NOPASSWD: ALL" >> /etc/sudoers && \
|
|||
|
chown -R istio-proxy /var/lib/istio
|
|||
|
|
|||
|
# 使用 pilot-agent 来启动 Envoy
|
|||
|
ENTRYPOINT ["/usr/local/bin/pilot-agent"]
|
|||
|
</code></pre>
|
|||
|
<p>该容器的启动入口是 <code>pilot-agent</code> 命令,根据 YAML 配置中传递的参数,详细的启动命令入下:</p>
|
|||
|
<pre class="language-"><code class="lang-bash">/usr/local/bin/pilot-agent proxy sidecar --configPath /etc/istio/proxy --binaryPath /usr/local/bin/envoy --serviceCluster productpage --drainDuration 45s --parentShutdownDuration 1m0s --discoveryAddress istio-pilot.istio-system:15007 --discoveryRefreshDelay 1s --zipkinAddress zipkin.istio-system:9411 --connectTimeout 10s --statsdUdpAddress istio-statsd-prom-bridge.istio-system:9125 --proxyAdminPort 15000 --controlPlaneAuthPolicy NONE
|
|||
|
</code></pre>
|
|||
|
<p>主要配置了 Envoy 二进制文件的位置、服务发现地址、服务集群名、监控指标上报地址、Envoy 的管理端口、热重启时间等,详细用法请参考 <a href="https://istio.io/docs/reference/commands/pilot-agent/" target="_blank">Istio官方文档 pilot-agent 的用法</a>。</p>
|
|||
|
<p><code>pilot-agent</code> 是容器中 PID 为 1 的启动进程,它启动时又创建了一个 Envoy 进程,如下:</p>
|
|||
|
<pre class="language-"><code class="lang-bash">/usr/local/bin/envoy -c /etc/istio/proxy/envoy-rev0.json --restart-epoch 0 --drain-time-s 45 --parent-shutdown-time-s 60 --service-cluster productpage --service-node sidecar~172.33.78.10~productpage-v1-745ffc55b7-2l2lw.default~default.svc.cluster.local --max-obj-name-len 189 -l warn --v2-config-only
|
|||
|
</code></pre>
|
|||
|
<p>我们分别解释下以上配置的意义。</p>
|
|||
|
<ul>
|
|||
|
<li><code>-c /etc/istio/proxy/envoy-rev0.json</code>:配置文件,支持 <code>.json</code>、<code>.yaml</code>、<code>.pb</code> 和 <code>.pb_text</code> 格式,<code>pilot-agent</code> 启动的时候读取了容器的环境变量后创建的。</li>
|
|||
|
<li><code>--restart-epoch 0</code>:Envoy 热重启周期,第一次启动默认为 0,每热重启一次该值加 1。</li>
|
|||
|
<li><code>--drain-time-s 45</code>:热重启期间 Envoy 将耗尽连接的时间。</li>
|
|||
|
<li><code>--parent-shutdown-time-s 60</code>: Envoy 在热重启时关闭父进程之前等待的时间。</li>
|
|||
|
<li><code>--service-cluster productpage</code>:Envoy 运行的本地服务集群的名字。</li>
|
|||
|
<li><code>--service-node sidecar~172.33.78.10~productpage-v1-745ffc55b7-2l2lw.default~default.svc.cluster.local</code>:定义 Envoy 运行的本地服务节点名称,其中包含了该 Pod 的名称、IP、DNS 域等信息,根据容器的环境变量拼出来的。</li>
|
|||
|
<li><code>-max-obj-name-len 189</code>:cluster/route_config/listener 中名称字段的最大长度(以字节为单位)</li>
|
|||
|
<li><code>-l warn</code>:日志级别</li>
|
|||
|
<li><code>--v2-config-only</code>:只解析 v2 引导配置文件</li>
|
|||
|
</ul>
|
|||
|
<p>详细配置请参考 <a href="http://www.servicemesher.com/envoy/operations/cli.html" target="_blank">Envoy 的命令行选项</a>。</p>
|
|||
|
<p>查看 Envoy 的配置文件 <code>/etc/istio/proxy/envoy-rev0.json</code>。</p>
|
|||
|
<pre class="language-"><code class="lang-json"><span class="token punctuation">{</span>
|
|||
|
<span class="token property">"node"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"id"</span><span class="token operator">:</span> <span class="token string">"sidecar~172.33.78.10~productpage-v1-745ffc55b7-2l2lw.default~default.svc.cluster.local"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"cluster"</span><span class="token operator">:</span> <span class="token string">"productpage"</span><span class="token punctuation">,</span>
|
|||
|
|
|||
|
<span class="token property">"metadata"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"INTERCEPTION_MODE"</span><span class="token operator">:</span> <span class="token string">"REDIRECT"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"ISTIO_PROXY_SHA"</span><span class="token operator">:</span> <span class="token string">"istio-proxy:6166ae7ebac7f630206b2fe4e6767516bf198313"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"ISTIO_PROXY_VERSION"</span><span class="token operator">:</span> <span class="token string">"1.0.0"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"ISTIO_VERSION"</span><span class="token operator">:</span> <span class="token string">"1.0.0"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"POD_NAME"</span><span class="token operator">:</span> <span class="token string">"productpage-v1-745ffc55b7-2l2lw"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"istio"</span><span class="token operator">:</span> <span class="token string">"sidecar"</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"stats_config"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"use_all_default_tags"</span><span class="token operator">:</span> <span class="token boolean">false</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"admin"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"access_log_path"</span><span class="token operator">:</span> <span class="token string">"/dev/stdout"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"address"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"socket_address"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"127.0.0.1"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"port_value"</span><span class="token operator">:</span> <span class="token number">15000</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"dynamic_resources"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"lds_config"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"ads"</span><span class="token operator">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"cds_config"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"ads"</span><span class="token operator">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"ads_config"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"api_type"</span><span class="token operator">:</span> <span class="token string">"GRPC"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"refresh_delay"</span><span class="token operator">:</span> <span class="token punctuation">{</span><span class="token property">"seconds"</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">"nanos"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"grpc_services"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
|
|||
|
<span class="token punctuation">{</span>
|
|||
|
<span class="token property">"envoy_grpc"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"cluster_name"</span><span class="token operator">:</span> <span class="token string">"xds-grpc"</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">]</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"static_resources"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"clusters"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
|
|||
|
<span class="token punctuation">{</span>
|
|||
|
<span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"xds-grpc"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"type"</span><span class="token operator">:</span> <span class="token string">"STRICT_DNS"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"connect_timeout"</span><span class="token operator">:</span> <span class="token punctuation">{</span><span class="token property">"seconds"</span><span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> <span class="token property">"nanos"</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"lb_policy"</span><span class="token operator">:</span> <span class="token string">"ROUND_ROBIN"</span><span class="token punctuation">,</span>
|
|||
|
|
|||
|
<span class="token property">"hosts"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
|
|||
|
<span class="token punctuation">{</span>
|
|||
|
<span class="token property">"socket_address"</span><span class="token operator">:</span> <span class="token punctuation">{</span><span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"istio-pilot.istio-system"</span><span class="token punctuation">,</span> <span class="token property">"port_value"</span><span class="token operator">:</span> <span class="token number">15010</span><span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">]</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"circuit_breakers"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"thresholds"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
|
|||
|
<span class="token punctuation">{</span>
|
|||
|
<span class="token property">"priority"</span><span class="token operator">:</span> <span class="token string">"default"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"max_connections"</span><span class="token operator">:</span> <span class="token string">"100000"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"max_pending_requests"</span><span class="token operator">:</span> <span class="token string">"100000"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"max_requests"</span><span class="token operator">:</span> <span class="token string">"100000"</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token punctuation">{</span>
|
|||
|
<span class="token property">"priority"</span><span class="token operator">:</span> <span class="token string">"high"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"max_connections"</span><span class="token operator">:</span> <span class="token string">"100000"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"max_pending_requests"</span><span class="token operator">:</span> <span class="token string">"100000"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"max_requests"</span><span class="token operator">:</span> <span class="token string">"100000"</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">]</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"upstream_connection_options"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"tcp_keepalive"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"keepalive_time"</span><span class="token operator">:</span> <span class="token number">300</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"http2_protocol_options"</span><span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
|
|||
|
|
|||
|
<span class="token punctuation">,</span>
|
|||
|
<span class="token punctuation">{</span>
|
|||
|
<span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"zipkin"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"type"</span><span class="token operator">:</span> <span class="token string">"STRICT_DNS"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"connect_timeout"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"seconds"</span><span class="token operator">:</span> <span class="token number">1</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"lb_policy"</span><span class="token operator">:</span> <span class="token string">"ROUND_ROBIN"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"hosts"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
|
|||
|
<span class="token punctuation">{</span>
|
|||
|
<span class="token property">"socket_address"</span><span class="token operator">:</span> <span class="token punctuation">{</span><span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"zipkin.istio-system"</span><span class="token punctuation">,</span> <span class="token property">"port_value"</span><span class="token operator">:</span> <span class="token number">9411</span><span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">]</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
|
|||
|
<span class="token punctuation">]</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
|
|||
|
<span class="token property">"tracing"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"http"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"envoy.zipkin"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"config"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"collector_cluster"</span><span class="token operator">:</span> <span class="token string">"zipkin"</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span><span class="token punctuation">,</span>
|
|||
|
|
|||
|
|
|||
|
<span class="token property">"stats_sinks"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
|
|||
|
<span class="token punctuation">{</span>
|
|||
|
<span class="token property">"name"</span><span class="token operator">:</span> <span class="token string">"envoy.statsd"</span><span class="token punctuation">,</span>
|
|||
|
<span class="token property">"config"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"address"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
|
|||
|
<span class="token property">"socket_address"</span><span class="token operator">:</span> <span class="token punctuation">{</span><span class="token property">"address"</span><span class="token operator">:</span> <span class="token string">"10.254.109.175"</span><span class="token punctuation">,</span> <span class="token property">"port_value"</span><span class="token operator">:</span> <span class="token number">9125</span><span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
<span class="token punctuation">]</span>
|
|||
|
|
|||
|
<span class="token punctuation">}</span>
|
|||
|
</code></pre>
|
|||
|
<p>下图是使用 Istio 管理的 bookinfo 示例的访问请求路径图。</p>
|
|||
|
<figure id="fig6.3.2.9.6"><img src="https://ws3.sinaimg.cn/large/0069RVTdgy1fv5df9lq1aj317o0o6wia.jpg" alt="Istio bookinfo"><figcaption>图片 - Istio bookinfo</figcaption></figure>
|
|||
|
<p>图片来自 <a href="https://istio.io/zh/docs/examples/bookinfo/" target="_blank">Istio 官方网站</a></p>
|
|||
|
<p>对照 bookinfo 示例的 productpage 的查看建立的连接。在 <code>productpage-v1-745ffc55b7-2l2lw</code> Pod 的 <code>istio-proxy</code> 容器中使用 root 用户查看打开的端口。</p>
|
|||
|
<pre class="language-"><code class="lang-bash">$ <span class="token function">lsof</span> -i
|
|||
|
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
|
|||
|
envoy 11 istio-proxy 9u IPv4 73951 0t0 TCP localhost:15000 <span class="token punctuation">(</span>LISTEN<span class="token punctuation">)</span> <span class="token comment" spellcheck="true"># Envoy admin 端口</span>
|
|||
|
envoy 11 istio-proxy 17u IPv4 74320 0t0 TCP productpage-v1-745ffc55b7-2l2lw:46862-<span class="token operator">></span>istio-pilot.istio-system.svc.cluster.local:15010 <span class="token punctuation">(</span>ESTABLISHED<span class="token punctuation">)</span> <span class="token comment" spellcheck="true"># 15010:istio-pilot 的 grcp-xds 端口</span>
|
|||
|
envoy 11 istio-proxy 18u IPv4 73986 0t0 UDP productpage-v1-745ffc55b7-2l2lw:44332-<span class="token operator">></span>istio-statsd-prom-bridge.istio-system.svc.cluster.local:9125 <span class="token comment" spellcheck="true"># 给 Promethues 发送 metric 的端口</span>
|
|||
|
envoy 11 istio-proxy 52u IPv4 74599 0t0 TCP *:15001 <span class="token punctuation">(</span>LISTEN<span class="token punctuation">)</span> <span class="token comment" spellcheck="true"># Envoy 的监听端口</span>
|
|||
|
envoy 11 istio-proxy 53u IPv4 74600 0t0 UDP productpage-v1-745ffc55b7-2l2lw:48011-<span class="token operator">></span>istio-statsd-prom-bridge.istio-system.svc.cluster.local:9125 <span class="token comment" spellcheck="true"># 给 Promethues 发送 metric 端口</span>
|
|||
|
envoy 11 istio-proxy 54u IPv4 338551 0t0 TCP productpage-v1-745ffc55b7-2l2lw:15001-<span class="token operator">></span>172.17.8.102:52670 <span class="token punctuation">(</span>ESTABLISHED<span class="token punctuation">)</span> <span class="token comment" spellcheck="true"># 52670:Ingress gateway 端口</span>
|
|||
|
envoy 11 istio-proxy 55u IPv4 338364 0t0 TCP productpage-v1-745ffc55b7-2l2lw:44046-<span class="token operator">></span>172.33.78.9:9091 <span class="token punctuation">(</span>ESTABLISHED<span class="token punctuation">)</span> <span class="token comment" spellcheck="true"># 9091:istio-telemetry 服务的 grpc-mixer 端口</span>
|
|||
|
envoy 11 istio-proxy 56u IPv4 338473 0t0 TCP productpage-v1-745ffc55b7-2l2lw:47210-<span class="token operator">></span>zipkin.istio-system.svc.cluster.local:9411 <span class="token punctuation">(</span>ESTABLISHED<span class="token punctuation">)</span> <span class="token comment" spellcheck="true"># 9411: zipkin 端口</span>
|
|||
|
envoy 11 istio-proxy 58u IPv4 338383 0t0 TCP productpage-v1-745ffc55b7-2l2lw:41564-<span class="token operator">></span>172.33.84.8:9080 <span class="token punctuation">(</span>ESTABLISHED<span class="token punctuation">)</span> <span class="token comment" spellcheck="true"># 9080:details-v1 的 http 端口</span>
|
|||
|
envoy 11 istio-proxy 59u IPv4 338390 0t0 TCP productpage-v1-745ffc55b7-2l2lw:54410-<span class="token operator">></span>172.33.78.5:9080 <span class="token punctuation">(</span>ESTABLISHED<span class="token punctuation">)</span> <span class="token comment" spellcheck="true"># 9080:reivews-v2 的 http 端口</span>
|
|||
|
envoy 11 istio-proxy 60u IPv4 338411 0t0 TCP productpage-v1-745ffc55b7-2l2lw:35200-<span class="token operator">></span>172.33.84.5:9091 <span class="token punctuation">(</span>ESTABLISHED<span class="token punctuation">)</span> <span class="token comment" spellcheck="true"># 9091:istio-telemetry 服务的 grpc-mixer 端口</span>
|
|||
|
envoy 11 istio-proxy 62u IPv4 338497 0t0 TCP productpage-v1-745ffc55b7-2l2lw:34402-<span class="token operator">></span>172.33.84.9:9080 <span class="token punctuation">(</span>ESTABLISHED<span class="token punctuation">)</span> <span class="token comment" spellcheck="true"># reviews-v1 的 http 端口</span>
|
|||
|
envoy 11 istio-proxy 63u IPv4 338525 0t0 TCP productpage-v1-745ffc55b7-2l2lw:50592-<span class="token operator">></span>172.33.71.5:9080 <span class="token punctuation">(</span>ESTABLISHED<span class="token punctuation">)</span> <span class="token comment" spellcheck="true"># reviews-v3 的 http 端口</span>
|
|||
|
</code></pre>
|
|||
|
<p>从输出级过上可以验证 Sidecar 是如何接管流量和与 istio-pilot 通信,及向 Mixer 做遥测数据汇聚的。感兴趣的读者可以再去看看其他几个服务的 istio-proxy 容器中的 iptables 和端口信息。</p>
|
|||
|
<h2 id="参考">参考</h2>
|
|||
|
<ul>
|
|||
|
<li><a href="https://jimmysong.io/posts/sofamesh-and-mosn-proxy-sidecar-service-mesh-by-ant-financial/ - jimmysong.io" target="_blank">SOFAMesh & SOFA MOSN—基于Istio构建的用于应对大规模流量的Service Mesh解决方案 - jimmysong.io</a></li>
|
|||
|
<li><a href="https://jimmysong.io/kubernetes-handbook/concepts/init-containers.html" target="_blank">Init 容器 - Kubernetes 中文指南/云原生应用架构实践手册 - jimmysong.io</a></li>
|
|||
|
<li><a href="https://kubernetes.io/docs/reference/kubectl/jsonpath/" target="_blank">JSONPath Support - kubernetes.io</a></li>
|
|||
|
<li><a href="https://wangchujiang.com/linux-command/c/iptables.html" target="_blank">iptables 命令使用说明 - wangchujiang.com</a></li>
|
|||
|
<li><a href="https://www.digitalocean.com/community/tutorials/how-to-list-and-delete-iptables-firewall-rules" target="_blank">How To List and Delete Iptables Firewall Rules - digitalocean.com</a></li>
|
|||
|
<li><a href="https://www.cnblogs.com/fhefh/archive/2011/04/04/2005249.html" target="_blank">一句一句解说 iptables的详细中文手册 - cnblog.com</a></li>
|
|||
|
<li><a href="https://www.aliang.org/Linux/iptables.html" target="_blank">常见iptables使用规则场景整理 - aliang.org</a> </li>
|
|||
|
</ul>
|
|||
|
<footer class="page-footer"><span class="copyright">Copyright © jimmysong.io 2017-2018 all right reserved,powered by Gitbook</span><span class="footer-modification"> Updated at
|
|||
|
2018-09-17 11:44:49
|
|||
|
</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="istio-tutorials-collection.html" class="navigation navigation-prev " aria-label="Previous page: Istio免费学习资源汇总">
|
|||
|
<i class="fa fa-angle-left"></i>
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
<a href="linkerd.html" class="navigation navigation-next " aria-label="Next page: Linkerd">
|
|||
|
<i class="fa fa-angle-right"></i>
|
|||
|
</a>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
<script>
|
|||
|
var gitbook = gitbook || [];
|
|||
|
gitbook.push(function() {
|
|||
|
gitbook.page.hasChanged({"page":{"title":"深入理解Istio中的Sidecar注入与流量劫持","level":"6.3.2.9","depth":3,"next":{"title":"Linkerd","level":"6.3.3","depth":2,"path":"usecases/linkerd.md","ref":"usecases/linkerd.md","articles":[{"title":"Linkerd 使用指南","level":"6.3.3.1","depth":3,"path":"usecases/linkerd-user-guide.md","ref":"usecases/linkerd-user-guide.md","articles":[]}]},"previous":{"title":"Istio免费学习资源汇总","level":"6.3.2.8","depth":3,"path":"usecases/istio-tutorials-collection.md","ref":"usecases/istio-tutorials-collection.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","sitemap-general"],"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © jimmysong.io 2017-2018","modify_label":" Updated at ","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-ghcolors.css"]},"github":{"url":"https://github.com/rootsongjc/kubernetes-handbook"},"editlink":{"label":"编辑本页","multilingual":false,"base":"https://github.com/rootsongjc/kubernetes-handbook/blob/master/"},"splitter":{},"codesnippet":{},"sitemap-general":{"prefix":"https://jimmysong.io/kubernetes-handbook/"},"fontsettings":{"theme":"white","family":"sans","size":2},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"page-toc-button":{},"back-to-top-button":{},"prism-themes":{},"github-buttons":{"repo":"rootsongjc/kubernetes-handbook","types":["star"],"size":"small"},"3-ba":{"configuration":"auto","token":"11f7d254cfa4e0ca44b175c66d379ecc"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"showLevel":true,"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}},"search-plus":{},"image-captions":{"caption":"图片 - _CAPTION_","variable_name":"_pictures"}},"theme":"default","author":"Jimmy Song(宋净超)","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"_pictures":[{"backlink":"index.html#fig1.1.1","level":"1.1","list_caption":"Figure: Stargazers over time","alt":"Stargazers over time","nro":1,"url":"https://starcharts.herokuapp.com/rootsongjc/kubernetes-handbook.svg","index":1,"caption_template":"图片 - _CAPTION_","label":"Stargazers over time","attributes":{},"skip":false,"key":"1.1.1"},{"backlink":"cloud-native/cncf.html#fig2.2.1","level":"2.2","list_caption":"Figure: CNCF landscape","alt":"CNCF landscape","nro":2,"url":"https://github.com/cncf/landscape/raw/master/landscape/CloudNativeLandscape_latest.png","index":1,"caption_template":"图片 - _CAPTION_","label":"CNCF landscape","attributes":{},"skip":false,"key":"2.2.1"},{"backlink":"cloud-native/cncf.html#fig2.2.2","level":"2.2","list_caption":"Figure: CNCF项目成熟度级别","alt":"CNCF项目成熟度级别","nro":3,"url":"../images/cncf-graduation-criteria.jpg","index":2,"caption_template":"图片 - _CAPTION_","label":"CNCF项目成熟度级别","attributes":{},"skip":false,"key":"2.2.2"},{"backlink":"cloud-native/cncf-charter.html#fig2.3.1","level":"2.3","list_caption":"Figure: CNCF组织架构图","alt":"CNCF组织架构图","nro":4,"url":"https://ws2.sinaimg.cn/large/006tKfTcgy1ft5pe433f6j31kw0s3nnl.jpg","index":1,"caption_template":"图片 - _CAPTION_","label":"CNCF组织架构图","attributes"
|
|||
|
});
|
|||
|
</script>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook.js"></script>
|
|||
|
<script src="../gitbook/theme.js"></script>
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook-plugin-editlink/plugin.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook-plugin-3-ba/plugin.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
</body>
|
|||
|
</html>
|
|||
|
|