Skip to content

Commit

Permalink
重大改版
Browse files Browse the repository at this point in the history
  • Loading branch information
rootsongjc committed May 20, 2017
1 parent 45ff444 commit 299d064
Show file tree
Hide file tree
Showing 111 changed files with 462 additions and 3,897 deletions.
42 changes: 0 additions & 42 deletions Makefile

This file was deleted.

44 changes: 16 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
# Kubernetes Handbook

Kubernetes是谷歌开源的容器集群管理系统,是Google多年大规模容器管理技术Borg的开源版本,也是CNCF最重要的组件之一,主要功能包括:
[Kubernetes](http://kubernetes.io)是Google基于[Borg](https://research.google.com/pubs/pub43438.html)开源的容器编排调度引擎,作为[CNCF](http://cncf.io)(Cloud Native Computing Foundation)最重要的组件之一,它的目标不仅仅是一个编排系统,而是提供一个规范,可以让你来描述集群的架构,定义服务的最终状态,它将自动得将系统达到和维持在这个状态。

- 基于容器的应用部署、维护和滚动升级
- 负载均衡和服务发现
- 跨机器和跨地区的集群调度
- 自动伸缩
- 无状态服务和有状态服务
- 广泛的Volume支持
- 插件机制保证扩展性
本书记录了本人从零开始学习和使用Kubernetes的心路历程,着重于经验分享和总结,同时也会有相关的概念解析,希望能够帮助大家少踩坑,少走弯路。

Kubernetes发展非常迅速,已经成为容器编排领域的领导者。Kubernetes的中文资料也非常丰富,但系统化和紧跟社区更新的则就比较少见了。《Kubernetes指南》开源电子书旨在整理平时在开发和使用Kubernetes时的参考指南和实践心得,更是为了形成一个系统化的参考指南以方便查阅。欢迎大家关注,更欢迎大家一起添加更多更好的内容
在写作本书时,安装的所有组件、所用示例和操作等皆基于**Kubernetes1.6.0**版本

本书所有的组件安装、示例和操作等都基于**Kubernetes1.6.0**版本。

文章同步更新到[gitbook](https://www.gitbook.com/book/rootsongjc/kubernetes-handbook/details),方便大家浏览和下载PDF。
[文章目录](SUMMARY.md)

GitHub地址:https://github.com/rootsongjc/kubernetes-handbook

[文章目录](SUMMARY.md)
Gitbook在线浏览:https://www.gitbook.com/book/rootsongjc/kubernetes-handbook/

## 如何阅读
## 如何使用本书

**在线浏览**

访问gitbook:https://www.gitbook.com/book/rootsongjc/kubernetes-handbook/
访问[gitbook](https://www.gitbook.com/book/rootsongjc/kubernetes-handbook/)

文中涉及的配置文件和代码链接在gitbook中会无法打开,请下载github源码后,在MarkDown编辑器中打开,点击链接将跳转到你的本地目录,推荐使用[typora](www.typorai.o)

Expand Down Expand Up @@ -56,11 +48,11 @@ gitbook pdf . ./kubernetes-handbook.pdf

- **On Windows**

需要用到的工具:`calibre`, `phantomjs`
需要用到的工具[calibre](http://calibre-ebook.com/)[phantomjs](http://phantomjs.org/download.html)

1. 将上述2个安装,calibre默认安装的路径C:\Program Files\Calibre2,[phantomjs](http://phantomjs.org/download.html)为你解压路径
2. 并将其目录均加入到系统变量path中,参考:目录添加到系统变量path中
3. 在cmd打开你需要转pdf的文件夹,输入gitbook pdf即可
1. 将上述2个安装,calibre默认安装的路径`C:\Program Files\Calibre2`为你解压路径
2. 并将其目录均加入到系统变量path中,参考:目录添加到系统变量path中
3. 在cmd打开你需要转pdf的文件夹,输入`gitbook pdf`即可;

**生成单个章节的pdf**

Expand All @@ -82,24 +74,20 @@ pandoc --latex-engine=xelatex --template=pm-template input.md -o output.pdf

### 贡献文档

**本书文档的组织规则**
#### 文档的组织规则

- 如果要创建一个大的主题就在最顶层创建一个目录;
- 所有的图片都放在最顶层的`images`目录下,原则上文章中用到的图片都保存在本地;
- 所有的文档的文件名使用英文命名,可以包含数字和中划线,不要使用下划线,为了生成网站时,分享URL时候的方便,中文会重新编码
- `etc``manifests`目录专门用来保存配置文件
- 所有的文档的文件名使用英文命名,可以包含数字和中划线;
- `etc``manifests`目录专门用来保存配置文件和文档中用到的其他相关文件

**添加文档**
#### 添加文档

1. 在该文章相关主题的目录下创建文档;
2.`SUMMARY.md`中在相应的章节下添加文章链接;
3. 在文章相应的主题的头文档,即以该主题命名的文档中添加链接;
4. 执行`gitbook server`测试是否保存,然后访问 http://localhost:4000 查看该文档是否出现在相应主题的目录下;
5. 对该文档有卓越贡献的人将被加入到**贡献者**名单中;

## 贡献者
## 关于

[Jimmy Song](http://rootsongjc.github.io/about)



146 changes: 48 additions & 98 deletions SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,103 +1,53 @@
# Summary

- [前言](README.md)
- [1. Kubernetes简介](introduction/index.md)
- [1.1 核心概念](introduction/concepts.md)
- [1.2 Kubernetes 101](introduction/101.md)
- [1.3 Kubernetes 201](introduction/201.md)
- [1.4 Kubernetes集群](introduction/cluster.md)
- [2. 核心原理](architecture/index.md)
- [2.1 设计理念](architecture/concepts.md)
- [2.2 主要概念](architecture/objects.md)
- [1. 前言](README.md)
- [2. 概念原理](concepts/index.md)
- [2.1 设计理念](concepts/concepts.md)
- [2.2 主要概念](concepts/objects.md)
- 2.2.1 Pod
- 2.2.2 Node
- 2.2.3 Namespace
- [2.2.4 Service](architecture/service.md)
- [2.2.5 Volume和Persistent Volume](architecture/volume.md)
- [2.2.6 Deployment](architecture/deployment.md)
- [2.2.7 Secret](architecture/secret.md)
- [2.2.8 StatefulSet](architecture/statefulset.md)
- [2.2.9 DaemonSet](architecture/daemonset.md)
- [2.2.10 ServiceAccount](architecture/serviceaccount.md)
- [2.2.11 ReplicationController和ReplicaSet](architecture/replicaset.md)
- [2.2.12 Job](architecture/job.md)
- [2.2.13 CronJob](architecture/cronjob.md)
- [2.2.14 Ingress](architecture/ingress.md)
- SecurityContext
- Resource Quota
- Pod Security Policy
- Horizontal Pod Autoscaling
- Network Policy
- Ingress
- ThirdPartyResources
- [2.3 核心组件的工作原理](components/index.md)
- Etcd
- API Server
- Scheduler
- Controller Manager
- Kubelet
- Kube Proxy
- Kube DNS
- hyperkube
- Federation
- [kubeadm](architecture/kubeadm.md)
- [3. 插件指南](plugins/index.md)
- [3.1 认证和授权插件](plugins/auth.md)
- [3.2 网络插件](plugins/network.md)
- [3.3 Volume插件](plugins/volume.md)
- [3.4 Container Runtime Interface](plugins/CRI.md)
- 3.5 Network Policy
- 3.6 Ingress Controller
- 3.7 Cloud Provider
- 3.8 Scheduler
- [3.9 其他](plugins/other.md)
- [4. 最佳实践](deploy/index.md)
- [4.1 部署](deploy/index.md)
- [4.1.1 单机部署](deploy/single.md)
- [4.1.2 集群部署](deploy/cluster.md)
- [4.1.3 kubeadm](deploy/kubeadm.md)
- [4.1.4 附加组件](addons/index.md)
- [ 4.2 在CentOS上部署kubernetes1.6集群](deploy/centos/install-kbernetes1.6-on-centos.md)
- [4.2.1 创建TLS证书和秘钥](deploy/centos/create-tls-and-secret-key.md)
- [4.2.2 创建kubeconfig 文件](deploy/centos/create-kubeconfig.md)
- [4.2.3 创建高可用etcd集群](deploy/centos/etcd-cluster-installation.md)
- [4.2.4 安装kubectl命令行工具](deploy/centos/kubectl-installation.md)
- [4.2.5 部署高可用master集群](deploy/centos/master-installation.md)
- [4.2.6 部署node节点](deploy/centos/node-installation.md)
- [4.2.7 安装kubedns插件](deploy/centos/kubedns-addon-installation.md)
- [4.2.8 安装dashboard插件](deploy/centos/dashboard-addon-installation.md)
- [4.2.9 安装heapster插件](deploy/centos/heapster-addon-installation.md)
- [4.2.10 安装EFK插件](deploy/centos/efk-addon-installation.md)
- [4.2 监控](monitor/index.md)
- [4.3 日志](deploy/logging.md)
- [4.4 高可用](ha/index.md)
- [4.5 调试](debugging/index.md)
- [4.6 kubernetes配置最佳实践](deploy/kubernetes-configuration-best-practice.md)
- [4.7 安全配置](security/security-configuration.md)
* [5.1 Kubernetes中的RBAC支持](./security/rbac-support-in-kubernetes.md)
- [4.8 网络配置](network/index.md)
* [6.1 Kubernetes中的网络模式解析](network/network-modes-in-kubernetes.md)
- [4.9 存储配置](storage/index.md)
- [7.1 使用glusterfs做持久化存储](storage/using-glusterfs-for-persistent-storage.md)
- [5. 服务发现与负载均衡](service-discovery-lb/index.md)
* [5.1 安装Traefik ingress](service-discovery-lb/traefik-ingress-installation.md)
* [5.2 分布式负载测试](service-discovery-lb/distributed-load-test.md)
* [5.3 网络和集群性能测试](service-discovery-lb/network-and-cluster-perfermance-test.md)
* [5.4 边缘节点配置](service-discovery-lb/edge-node-configuration.md)
- [6. 开发指南](dev/index.md)
- [6.1 开发环境搭建](dev/index.md)
- [6.2 单元测试和集成测试](dev/testing.md)
- [6.3 社区贡献](dev/contribute.md)
- [7. 应用管理](apps/index.md)
- [7.1 Helm](apps/helm-app.md)
- [7.2 Deis workflow](apps/deis.md)
- [8. 运维管理](ops/index.md)
- [8.1 服务滚动升级](ops/service-rolling-update.md)
- [8.2 应用日志收集](ops/app-log-collection.md)
- [9. 附录](appendix/index.md)
- [9.1 awesome-docker](appendix/awesome-docker.md)
- [9.2 awesome-kubernetes](appendix/awesome-kubernetes.md)
- [9.3 Kubernetes ecosystem](appendix/ecosystem.md)
- [9.4 Docker最佳实践](appendix/docker-best-practice.md)
- [9.4 参考文档](reference.md)
- [9.5 问题记录](issues.md)
- [2.2.4 Service](concepts/service.md)
- [2.2.5 Volume和Persistent Volume](concepts/volume.md)
- [2.2.6 Deployment](concepts/deployment.md)
- [2.2.7 Secret](concepts/secret.md)
- [2.2.8 StatefulSet](concepts/statefulset.md)
- [2.2.9 DaemonSet](concepts/daemonset.md)
- [2.2.10 ServiceAccount](concepts/serviceaccount.md)
- [2.2.11 ReplicationController和ReplicaSet](concepts/replicaset.md)
- [2.2.12 Job](concepts/job.md)
- [2.2.13 CronJob](concepts/cronjob.md)
- [2.2.14 Ingress](concepts/ingress.md)
- [2.2.15 ConfigMap](concepts/configmap.md)
- [3. 用户指南](guide/index.md)
- [4. 最佳实践](practice/index.md)
- [ 4.1 在CentOS上部署kubernetes1.6集群](practice/install-kbernetes1.6-on-centos.md)
- [4.1.1 创建TLS证书和秘钥](practice/create-tls-and-secret-key.md)
- [4.1.2 创建kubeconfig文件](practice/create-kubeconfig.md)
- [4.1.3 创建高可用etcd集群](practice/etcd-cluster-installation.md)
- [4.1.4 安装kubectl命令行工具](practice/kubectl-installation.md)
- [4.1.5 部署高可用master集群](practice/master-installation.md)
- [4.1.6 部署node节点](practice/node-installation.md)
- [4.1.7 安装kubedns插件](practice/kubedns-addon-installation.md)
- [4.1.8 安装dashboard插件](practice/dashboard-addon-installation.md)
- [4.1.9 安装heapster插件](practice/heapster-addon-installation.md)
- [4.1.10 安装EFK插件](practice/efk-addon-installation.md)
- [4.2 服务发现与负载均衡](practice/service-discovery-and-loadbalancing.md)
- [4.2.1 安装Traefik ingress](practice/traefik-ingress-installation.md)
- [4.2.2 分布式负载测试](practice/distributed-load-test.md)
- [4.2.3 网络和集群性能测试](practice/network-and-cluster-perfermance-test.md)
- [4.2.4 边缘节点配置](practice/edge-node-configuration.md)
- [4.3 运维管理](practice/operation.md)
- [4.3.1 服务滚动升级](practice/service-rolling-update.md)
- [4.3.2 应用日志收集](practice/app-log-collection.md)
- [4.4 存储管理](practice/storage.md)
- [4.4.1 使用glusterfs做持久化存储](practice/using-glusterfs-for-persistent-storage.md)
- [5. 领域应用](usecases/index.md)
- [6. 开发指南](develop/index.md)
- [6.1 开发环境搭建](develop/developing-environment.md)
- [6.2 单元测试和集成测试](develop/testing.md)
- [6.3 社区贡献](develop/contribute.md)
- [7. 附录](appendix/index.md)
- [7.1 Docker最佳实践](appendix/docker-best-practice.md)
- [7.2 问题记录](issues.md)

42 changes: 0 additions & 42 deletions addons/dashboard.md

This file was deleted.

3 changes: 0 additions & 3 deletions addons/efk.md

This file was deleted.

7 changes: 0 additions & 7 deletions addons/heapster.md

This file was deleted.

6 changes: 0 additions & 6 deletions addons/index.md

This file was deleted.

Loading

0 comments on commit 299d064

Please sign in to comment.