Skip to content

Commit

Permalink
教程结构调整
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohq committed Sep 8, 2019
1 parent 22688fa commit da2951b
Show file tree
Hide file tree
Showing 19 changed files with 236 additions and 51 deletions.
25 changes: 19 additions & 6 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ module.exports = {
title: 'Kubernetes 进阶',
collapsable: false,
children: [
'k8s-intermediate/ingress',
'k8s-intermediate/private-registry',
{
title: '工作负载',
Expand All @@ -188,11 +187,21 @@ module.exports = {
'k8s-intermediate/workload/pod-lifecycle',
'k8s-intermediate/workload/init-container',
'k8s-intermediate/workload/workload',
'k8s-intermediate/workload/wl-deployment',
'k8s-intermediate/workload/wl-statefulset',
'k8s-intermediate/workload/wl-daemonset',
'k8s-intermediate/workload/wl-job',
'k8s-intermediate/workload/wl-cronjob',
// 'k8s-intermediate/workload/wl-deployment',
// 'k8s-intermediate/workload/wl-statefulset',
// 'k8s-intermediate/workload/wl-daemonset',
// 'k8s-intermediate/workload/wl-job',
// 'k8s-intermediate/workload/wl-cronjob',
]
},
{
title: '服务发现、负载均衡、网络',
collapsable: true,
children: [
// 'k8s-intermediate/service/service',
// 'k8s-intermediate/service/dns',
// 'k8s-intermediate/service/connecting',
'k8s-intermediate/service/ingress',
]
},
{
Expand All @@ -210,6 +219,10 @@ module.exports = {
collapsable: true,
children: [
'k8s-intermediate/config/config-map',
// 'k8s-intermediate/config/computing-resource',
// 'k8s-intermediate/config/assign-pod-node',
// 'k8s-intermediate/config/taints-and-toleration',
// 'k8s-intermediate/config/secret',
]
}
]
Expand Down
7 changes: 6 additions & 1 deletion .vuepress/theme/layouts/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<ParentLayout>
<div slot="sidebar-top">
<div style="text-align: center; margin-top: 20px;">
<div>
<p>
<img src="./dz.png" style="width: 120px;"></img>
</p>
</div>
<div class="side-nav-item" :style="activeLinkStyle('/overview/') + 'margin-left: 0;'">
<a href="/overview/" class="nav-link">简介</a>
</div>
Expand All @@ -24,7 +29,7 @@
<StarGazer/>
<Promotion/>
</div>
<div slot="page-bottom" class="bottom-description">Copyright © 2019-present <a href="http://www.eigpay.com" target="_blank">仁聚汇通</a> | 京ICP备19008693号-2</div>
<div slot="page-bottom" class="bottom-description">Copyright © 2019-present 邵欢庆 <a href="http://www.eigpay.com" target="_blank">仁聚汇通</a> | 京ICP备19008693号-2</div>
</ParentLayout>
</template>

Expand Down
19 changes: 11 additions & 8 deletions .vuepress/theme/layouts/LearningLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<ParentLayout>
<div slot="sidebar-top">
<div style="text-align: center; margin-top: 20px;">
<div>
<p>
<img src="./dz.png" style="width: 120px;"></img>
</p>
</div>
<div class="side-nav-item" :style="activeLinkStyle('/overview/') + 'margin-left: 0;'">
<a href="/overview/" class="nav-link">简介</a>
</div>
Expand All @@ -24,11 +29,11 @@
<StarGazer/>
<Promotion/>
</div>
<div slot="page-top" class="page-top">
<div style="display: inline-block; width: 400px;">
<li><span style="color: red; font-weight: 500;">免费</span> Kubernetes 教程,绝对不降低品质</li>
<li>QQ 群 <span style="color: red; font-weight: 500;">在线答疑</span>,加群请扫描侧边栏下方的二维码</li>
<li>根据 QQ 群答疑情况,<span style="color: red; font-weight: 500;">不断完善</span> 教程</li>
<div slot="page-top" class="theme-default-content content__default page-top">
<div class="tip custom-block" style="padding: 20px;">
<li><span style="color: red; font-weight: 500;">免费</span> Kubernetes 教程,绝不降低品质</li>
<li>QQ 群 <span style="color: red; font-weight: 500;">在线答疑</span>,加群请扫描左侧导航下方的二维码</li>
<li>根据答疑情况,<span style="color: red; font-weight: 500;">不断完善</span> 教程</li>
</div>
</div>
<div slot="page-bottom" class="bottom-description">Copyright © 2019-present 邵欢庆 <a href="http://www.eigpay.com" target="_blank">仁聚汇通</a> | 京ICP备19008693号-2</div>
Expand Down Expand Up @@ -58,9 +63,7 @@ export default {

<style scoped>
.page-top {
margin-top: 5em;
margin-bottom: -50px;
padding: 0 40px;
margin-bottom: -80px;
}
.bottom-description {
text-align: center;
Expand Down
Binary file added .vuepress/theme/layouts/dz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 57 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ actionText2: 开始使用 →
actionLink2: /overview/
features:
- title: 快速落地 Kubernetes
details: 快速安装Kubernetes、图形化界面、场景化设计
details: 快速安装Kubernetes、免费Kubernetes教程、图形化界面、场景化设计
- title: 微服务架构
details: 经典微服务参考架构:Spring Cloud 实战案例
- title: 多层次监控
Expand All @@ -24,3 +24,59 @@ Kuboard 是一款基于 Kubernetes 的微服务管理界面。
[点击查看在线文档](https://www.kuboard.cn/#from_github)

![Demo](./overview/README.assets/1564841972085.gif)


# Kubernetes 免费教程

本教程的主要依据是:Kubernetes 官网文档,以及使用 Kuboard 落地 Spring Cloud 微服务的实战经验

## **Kubernetes 入门**
* [0. 学习Kubernetes基础知识](www.kuboard.cn/learning/k8s-basics/kubernetes-basics.html) (10分钟)
* [1. 部署第一个应用程序](www.kuboard.cn/learning/k8s-basics/deploy-app.html) (5分钟)
* [2. 查看 Pods / Nodes](www.kuboard.cn/learning/k8s-basics/explore.html) (10分钟)
* [3. 公布应用程序](www.kuboard.cn/learning/k8s-basics/expose.html) (10分钟)
* [4. 伸缩应用程序](www.kuboard.cn/learning/k8s-basics/scale.html) (10分钟)
* [5. 执行滚动更新](www.kuboard.cn/learning/k8s-basics/update.html) (10分钟)
* [6. 复习Kubernetes核心概念](www.kuboard.cn/learning/k8s-basics/k8s-core-concepts.html) (10分钟)

## **Kubernetes 进阶**
* [使用私有 registry 中的 docker 镜像](www.kuboard.cn/learning/k8s-intermediate/private-registry.html)
* 工作负载
* [容器组 - 概述](www.kuboard.cn/learning/k8s-intermediate/workload/pod.html)
* [容器组 - 生命周期](www.kuboard.cn/learning/k8s-intermediate/workload/pod-lifecycle.html)
* [容器组 - 初始化容器](www.kuboard.cn/learning/k8s-intermediate/workload/init-container.html)
* [控制器 - 概述](www.kuboard.cn/learning/k8s-intermediate/workload/workload.html)
* [控制器 - Deployment](www.kuboard.cn/learning/k8s-intermediate/workload/wl-deployment.html)
* [控制器 - StatefulSet](www.kuboard.cn/learning/k8s-intermediate/workload/wl-statefulset.html)
* [控制器 - DaemonSet](www.kuboard.cn/learning/k8s-intermediate/workload/wl-daemonset.html)
* [控制器 - Job](www.kuboard.cn/learning/k8s-intermediate/workload/wl-job.html)
* [控制器 - CronJob](www.kuboard.cn/learning/k8s-intermediate/workload/wl-cronjob.html)
* 服务发现、负载均衡、网络
* [Service](www.kuboard.cn/learning/k8s-intermediate/service/service.html)
* [Service/Pod 的 DNS](www.kuboard.cn/learning/k8s-intermediate/service/dns.html)
* [Service 连接应用程序](www.kuboard.cn/learning/k8s-intermediate/service/connecting.html)
* [Ingress 通过互联网访问您的应用](www.kuboard.cn/learning/k8s-intermediate/service/ingress.html)
* 存储
* [数据卷 Volume](www.kuboard.cn/learning/k8s-intermediate/persistent/volume.html)
* [存储卷 PV 和存储卷声明 PVC](www.kuboard.cn/learning/k8s-intermediate/persistent/pv.html)
* [存储类 StorageClass](www.kuboard.cn/learning/k8s-intermediate/persistent/storage-class.html)
* [自建 NFS 服务](www.kuboard.cn/learning/k8s-intermediate/persistent/nfs.html)
* 配置
* [使用 ConfigMap 配置您的应用程序](www.kuboard.cn/learning/k8s-intermediate/config-map.html)
* [管理容器的计算资源](www.kuboard.cn/learning/k8s-intermediate/computing-resource.html)
* [将容器调度到指定的节点](www.kuboard.cn/learning/k8s-intermediate/assign-pod-node.html)
* [污点和容忍 taints and toleration](www.kuboard.cn/learning/k8s-intermediate/taints-and-toleration.html)
* [Secrets](www.kuboard.cn/learning/k8s-intermediate/secret.html)


## **Kubernetes 实战**

在 Kubernetes 上部署 Spring Cloud 微服务:

* [概述](/micro-service/spring-cloud/index.html)
* [部署服务注册中心]
* [部署数据库]
* [部署微服务]
* [部署服务网关]
* [部署Web前端]
* [管理多环境]
51 changes: 41 additions & 10 deletions learning/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
---
layout: LearningLayout
description: Kubernetes 学习路径推荐
description: Kubernetes 免费教程
---

# Kubernetes 学习路径推荐
# Kubernetes 免费教程

本教程的主要依据是:Kubernetes 官网文档,以及使用 Kubernetes 落地 Spring Cloud 微服务并投产的实战经验。适用人群:
* Kubernetes 初学者
* 学习过 Kubernetes,但未能将其投产的技术爱好者

## **Kubernetes 体验**
* [安装 Kubernetes 单Master节点](/install/install-k8s.html) (30分钟,初学者也许需要更多)
* 参照经过众多网友验证,不断优化的安装文档,迅速完成 Kubernetes 安装,拥有属于自己的 Kubernetes 集群。
* [安装微服务管理界面](/install/install-dashboard.html) (5分钟)
* 使用 Kuboard,无需编写复杂冗长的 YAML 文件,就可以轻松管理 Kubernetes 集群。
* [创建 busybox](/guide/example/busybox.html) (10分钟)
* 快速在 Kubernetes 集群中安装一个部署,并与当中的容器组交互。
* [导入 example 微服务应用](/guide/example/import.html) (15分钟)
* 导入一个完整的 example 微服务应用,体验 Spring Cloud 在 Kubernetes 上的部署过程。

## **Kubernetes 入门**
* [0. 学习Kubernetes基础知识](/learning/k8s-basics/kubernetes-basics.html) (10分钟)
Expand All @@ -15,17 +29,34 @@ description: Kubernetes 学习路径推荐
* [6. 复习Kubernetes核心概念](/learning/k8s-basics/k8s-core-concepts.html) (10分钟)

## **Kubernetes 进阶**
* [通过互联网访问您的应用](/learning/k8s-intermediate/ingress.html)
* 工作负载
* [Pod 容器组](/learning/k8s-intermediate/workload/pod.html)
* [Pod 生命周期](/learning/k8s-intermediate/workload/pod-lifecycle.html)
* [Pod 初始化容器](/learning/k8s-intermediate/workload/init-container.html)
* [使用 ConfigMap 配置您的应用程序](/learning/k8s-intermediate/config-map.html)
* [使用私有 registry 中的 docker 镜像](/learning/k8s-intermediate/private-registry.html)
* 持久化数据
* 工作负载
* [容器组 - 概述](/learning/k8s-intermediate/workload/pod.html)
* [容器组 - 生命周期](/learning/k8s-intermediate/workload/pod-lifecycle.html)
* [容器组 - 初始化容器](/learning/k8s-intermediate/workload/init-container.html)
* [控制器 - 概述](/learning/k8s-intermediate/workload/workload.html)
* [控制器 - Deployment](/learning/k8s-intermediate/workload/wl-deployment.html) <Badge text="正在撰写" type="warn"/>
* [控制器 - StatefulSet](/learning/k8s-intermediate/workload/wl-statefulset.html) <Badge text="正在撰写" type="warn"/>
* [控制器 - DaemonSet](/learning/k8s-intermediate/workload/wl-daemonset.html) <Badge text="正在撰写" type="warn"/>
* [控制器 - Job](/learning/k8s-intermediate/workload/wl-job.html) <Badge text="正在撰写" type="warn"/>
* [控制器 - CronJob](/learning/k8s-intermediate/workload/wl-cronjob.html) <Badge text="正在撰写" type="warn"/>
* 服务发现、负载均衡、网络
* [Service](/learning/k8s-intermediate/service/service.html) <Badge text="正在撰写" type="warn"/>
* [Service/Pod 的 DNS](/learning/k8s-intermediate/service/dns.html) <Badge text="正在撰写" type="warn"/>
* [Service 连接应用程序](/learning/k8s-intermediate/service/connecting.html) <Badge text="正在撰写" type="warn"/>
* [Ingress 通过互联网访问您的应用](/learning/k8s-intermediate/service/ingress.html)
* 存储
* [数据卷 Volume](/learning/k8s-intermediate/persistent/volume.html)
* [存储卷 PV 和存储卷声明 PVC](/learning/k8s-intermediate/persistent/pv.html)
* [存储类 StorageClass](/learning/k8s-intermediate/persistent/storage-class.html)
* [自建 NFS 服务](/learning/k8s-intermediate/persistent/nfs.html) <Badge text="正在撰写" type="warn"/>
* 配置
* [使用 ConfigMap 配置您的应用程序](/learning/k8s-intermediate/config-map.html)
* [管理容器的计算资源](/learning/k8s-intermediate/computing-resource.html) <Badge text="正在撰写" type="warn"/>
* [将容器调度到指定的节点](/learning/k8s-intermediate/assign-pod-node.html) <Badge text="正在撰写" type="warn"/>
* [污点和容忍 taints and toleration](/learning/k8s-intermediate/taints-and-toleration.html) <Badge text="正在撰写" type="warn"/>
* [Secrets](/learning/k8s-intermediate/secret.html) <Badge text="正在撰写" type="warn"/>


## **Kubernetes 实战**

Expand All @@ -37,4 +68,4 @@ description: Kubernetes 学习路径推荐
* [部署微服务]
* [部署服务网关]
* [部署Web前端]
* [复制一套部署环境]
* [管理多环境]
8 changes: 8 additions & 0 deletions learning/k8s-intermediate/config/assign-pod-node.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: LearningLayout
description: 在 Kubernetes 中,将 Pod 容器组调度到指定的节点
---

# 将容器组调度到指定的节点

正在撰写...
8 changes: 8 additions & 0 deletions learning/k8s-intermediate/config/computing-resource.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: LearningLayout
description: 在 Kubernetes 中,管理和分配容器的计算资源
---

# 管理容器的计算资源

正在撰写...
8 changes: 8 additions & 0 deletions learning/k8s-intermediate/config/secret.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: LearningLayout
description: 在 Kubernetes 中,配置和使用 Secrets
---

# Secrets

正在撰写...
8 changes: 8 additions & 0 deletions learning/k8s-intermediate/config/taints-and-toleration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: LearningLayout
description: 在 Kubernetes 中,配置 污点和容忍 taints and toleration
---

# 污点和容忍 taints and toleration

正在撰写...
8 changes: 6 additions & 2 deletions learning/k8s-intermediate/persistent/nfs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
layout: LearningLayout
description: nfs
description: 本文描述如何搭建 NFS 服务,并在 Kubernetes 中配置 StorageClass 使用该 NFS 服务作为存储
---

# NFS
# 搭建 NFS 服务

本文描述如何搭建 NFS 服务,仅用于测试

正在撰写...
8 changes: 8 additions & 0 deletions learning/k8s-intermediate/service/connecting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: LearningLayout
description: 在 Kubernetes 中,通过 Service 连接应用程序
---

# Service 连接应用程序

正在撰写...
8 changes: 8 additions & 0 deletions learning/k8s-intermediate/service/dns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: LearningLayout
description: 本文介绍了 Kubernetes 中 DNS 的分配规则
---

# Service/Pod 的 DNS

正在撰写...
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: LearningLayout
description: 本文介绍 Kubernetes Ingress 的概念,包括Ingress 基本概念、如何配置 Ingress Controller、如何使用 kubectl/Kuboard 操作 Ingress 信息
---

# 通过互联网访问您的应用
# Ingress 通过互联网访问您的应用

参考文档:
* Kubernetes 官网 [Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/)
Expand Down Expand Up @@ -100,7 +100,7 @@ spec:

> 文档 [安装 Kubernetes 单Master节点](/install/install-k8s.html) 中使用的就是这种拓扑结构。这种方式下,Ingress Controller 存在单点故障的可能性。

![单IngressController节点](../../install/install-k8s.assets/image-20190826000521999.png)
![单IngressController节点](../../../install/install-k8s.assets/image-20190826000521999.png)

### 使用外部负载均衡器

Expand All @@ -112,7 +112,7 @@ spec:

> 文档 [安装 Kubernetes 高可用](/install/install-kubernetes.html) 中使用的就是这种拓扑结构。

![LoadBalancer](../../install/install-kubernetes.assets/image-20190826000403193.png)
![LoadBalancer](../../../install/install-kubernetes.assets/image-20190826000403193.png)

## 实战:通过 Ingress 使您的应用程序在互联网可用

Expand Down
8 changes: 8 additions & 0 deletions learning/k8s-intermediate/service/service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: LearningLayout
description: 本文介绍了 Kubernetes 中服务发现的机制,以及如何使用服务发现
---

# Service

正在撰写...
2 changes: 1 addition & 1 deletion learning/k8s-intermediate/workload/workload.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: 本文介绍了 Kubernetes Controller(控制器)的概念,以

Pod(容器组)是 Kubernetes 中最小的调度单元,您可以通过 kubectl 直接创建一个 Pod。Pod 本身并不能自愈(self-healing)。如果一个 Pod 所在的 Node (节点)出现故障,或者调度程序自身出现故障,Pod 将被删除;同理,当因为节点资源不够或节点维护而驱逐 Pod 时,Pod 也将被删除。

Kubernetes 通过引入 Controller(控制器)的概念来管理 Pod 实例。在 Kubernetes 中,您应该始终通过创建 Controller 来创建 Pod,而不是直接创建 Pod。控制器可以提供如下特性:
Kubernetes 通过引入 Controller(控制器)的概念来管理 Pod 实例。在 Kubernetes 中,<font color="red">您应该始终通过创建 Controller 来创建 Pod,而不是直接创建 Pod</font>。控制器可以提供如下特性:
* 水平扩展(运行 Pod 的多个副本)
* rollout(版本更新)
* self-healing(故障恢复)
Expand Down
Loading

0 comments on commit da2951b

Please sign in to comment.