> For the complete documentation index, see [llms.txt](https://k8s.huweihuang.com/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://k8s.huweihuang.com/project/introduction/readme.md).

# 序言

## Kubernetes 学习笔记

> 本系列是 [Kubernetes 学习笔记](https://www.huweihuang.com/kubernetes-notes/)
>
> 更多的学习笔记请参考：
>
> * [Kubernetes 学习笔记](https://www.huweihuang.com/kubernetes-notes/)
> * [Kubernetes 源码分析笔记](https://www.huweihuang.com/k8s-source-code-analysis/)
> * [Docker 学习笔记](https://www.huweihuang.com/docker-notes/)
> * [Golang 学习笔记](https://www.huweihuang.com/golang-notes/)
> * [Linux 学习笔记](https://www.huweihuang.com/linux-notes/)
> * [数据结构学习笔记](https://www.huweihuang.com/data-structure-notes/)
>
> 个人博客：
>
> * [www.huweihuang.com](https://www.huweihuang.com/)
> * [blog.huweihuang.com](https://blog.huweihuang.com/)
> * [k8s.huweihuang.com](https://k8s.huweihuang.com/)

## 微信公众号

微信公众号：容器云架构

![](https://res.cloudinary.com/dqxtn0ick/image/upload/v1551600382/blog/wechat-public-acconut.jpg)

***

### 云原生体系

* [12-Factor](https://k8s.huweihuang.com/project/paas/12-factor.md)
* [K8S知识体系](https://k8s.huweihuang.com/project/paas/k8s.md)

### 安装与配置

* [部署k8s集群](https://k8s.huweihuang.com/project/setup/installer.md)
  * [使用kubeadm安装生产环境kubernetes](https://k8s.huweihuang.com/project/setup/installer/install-k8s-by-kubeadm.md)
  * [使用kubespray安装kubernetes](https://k8s.huweihuang.com/project/setup/installer/install-k8s-by-kubespray.md)
  * [使用minikube安装kubernetes](https://k8s.huweihuang.com/project/setup/installer/install-k8s-by-minikube.md)
  * [使用kind安装kubernetes](https://k8s.huweihuang.com/project/setup/installer/install-k8s-by-kind.md)
* [k8s证书及秘钥](https://k8s.huweihuang.com/project/setup/k8s-cert.md)
* [k8s版本说明](https://k8s.huweihuang.com/project/setup/k8s-version-release.md)

### 基本概念

* [kubernetes架构](https://k8s.huweihuang.com/project/concepts/architecture.md)
  * [Kubernetes总架构图](https://k8s.huweihuang.com/project/concepts/architecture/kubernetes-architecture.md)
  * [基于Docker及Kubernetes技术构建容器云（PaaS）平台概述](https://k8s.huweihuang.com/project/concepts/architecture/paas-based-on-docker-and-kubernetes.md)
* [kubernetes对象](https://k8s.huweihuang.com/project/concepts/object.md)
  * [理解kubernetes对象](https://k8s.huweihuang.com/project/concepts/object/understanding-kubernetes-objects.md)
  * [kubernetes常用对象说明](https://k8s.huweihuang.com/project/concepts/object/kubernetes-basic-concepts.md)
* [Pod](https://k8s.huweihuang.com/project/concepts/pod.md)
  * [Pod介绍](https://k8s.huweihuang.com/project/concepts/pod/pod.md)
  * [Pod定义文件](https://k8s.huweihuang.com/project/concepts/pod/pod-definition.md)
  * [Pod生命周期](https://k8s.huweihuang.com/project/concepts/pod/pod-lifecycle.md)
  * [Pod健康检查](https://k8s.huweihuang.com/project/concepts/pod/pod-probe.md)
  * [Pod存储卷](https://k8s.huweihuang.com/project/concepts/pod/pod-volume.md)
  * [Pod控制器](https://k8s.huweihuang.com/project/concepts/pod/pod-scheduler.md)
  * [Pod伸缩与升级](https://k8s.huweihuang.com/project/concepts/pod/pod-operation.md)
* [配置](https://k8s.huweihuang.com/project/concepts/configmap.md)
  * [ConfigMap](https://k8s.huweihuang.com/project/concepts/configmap/pod-configmap.md)
* [Workload](https://k8s.huweihuang.com/project/concepts/concepts.md)

### 核心原理

* [核心组件](https://k8s.huweihuang.com/project/principle/principle.md)
  * [Api Server](https://k8s.huweihuang.com/project/principle/principle/kubernetes-core-principle-api-server.md)
  * [Controller Manager](https://k8s.huweihuang.com/project/principle/principle/kubernetes-core-principle-controller-manager.md)
  * [Scheduler](https://k8s.huweihuang.com/project/principle/principle/kubernetes-core-principle-scheduler.md)
  * [Kubelet](https://k8s.huweihuang.com/project/principle/principle/kubernetes-core-principle-kubelet.md)
* [流程图](https://k8s.huweihuang.com/project/principle/flow.md)
  * [Pod创建流程](https://k8s.huweihuang.com/project/principle/flow/pod-flow.md)
  * [PVC创建流程](https://k8s.huweihuang.com/project/principle/flow/pvc-flow.md)

### 容器网络

* [Docker网络](https://k8s.huweihuang.com/project/network/docker-network.md)
* [K8S网络](https://k8s.huweihuang.com/project/network/kubernetes-network.md)
* [网络插件](https://k8s.huweihuang.com/project/network/flannel.md)
  * [Flannel介绍](https://k8s.huweihuang.com/project/network/flannel/flannel-introduction.md)
* [CNI](https://k8s.huweihuang.com/project/network/cni.md)
  * [CNI接口介绍](https://k8s.huweihuang.com/project/network/cni/cni.md)
  * [Macvlan介绍](https://k8s.huweihuang.com/project/network/cni/macvlan.md)

### 容器存储

* [存储卷概念](https://k8s.huweihuang.com/project/storage/volume.md)
  * [Volume](https://k8s.huweihuang.com/project/storage/volume/volume.md)
  * [Persistent Volume](https://k8s.huweihuang.com/project/storage/volume/persistent-volume.md)
  * [Persistent Volume Claim](https://k8s.huweihuang.com/project/storage/volume/persistent-volume-claim.md)
  * [Storage Class](https://k8s.huweihuang.com/project/storage/volume/storage-class.md)
  * [Dynamic Volume Provisioning](https://k8s.huweihuang.com/project/storage/volume/dynamic-provisioning.md)
* [CSI](https://k8s.huweihuang.com/project/storage/csi.md)
  * [csi-cephfs-plugin](https://k8s.huweihuang.com/project/storage/csi/csi-cephfs-plugin.md)
  * [部署csi-cephfs](https://k8s.huweihuang.com/project/storage/csi/deploy-csi-cephfs.md)
  * [部署cephfs-provisioner](https://k8s.huweihuang.com/project/storage/csi/cephfs-provisioner.md)
  * [FlexVolume介绍](https://k8s.huweihuang.com/project/storage/csi/flexvolume.md)

### 资源隔离

* [资源配额](https://k8s.huweihuang.com/project/resource/resource-quota.md)
* [Pod限额](https://k8s.huweihuang.com/project/resource/limit-range.md)
* [资源服务质量](https://k8s.huweihuang.com/project/resource/quality-of-service.md)
* [Lxcfs资源视图隔离](https://k8s.huweihuang.com/project/resource/lxcfs.md)

### 运维指南

* [kubectl工具](https://k8s.huweihuang.com/project/operation/kubectl.md)
  * [kubectl安装与配置](https://k8s.huweihuang.com/project/operation/kubectl/install-kubectl.md)
  * [kubectl命令说明](https://k8s.huweihuang.com/project/operation/kubectl/kubectl-commands.md)
  * [kubectl命令别名](https://k8s.huweihuang.com/project/operation/kubectl/kubectl-alias.md)
* [kubernetes集群问题排查](https://k8s.huweihuang.com/project/operation/kubernetes-troubleshooting.md)
* [节点调度](https://k8s.huweihuang.com/project/operation/node.md)
  * [安全迁移节点](https://k8s.huweihuang.com/project/operation/node/safely-drain-node.md)
  * [指定Node调度与隔离](https://k8s.huweihuang.com/project/operation/node/nodeselector-and-taint.md)
* [镜像仓库配置](https://k8s.huweihuang.com/project/operation/registry.md)
  * [配置私有的镜像仓库](https://k8s.huweihuang.com/project/operation/registry/config-private-registry.md)
  * [拉取私有镜像](https://k8s.huweihuang.com/project/operation/registry/imagepullsecrets.md)

### 开发指南

* [client-go的使用及源码分析](https://k8s.huweihuang.com/project/develop/client-go.md)
* [CSI插件开发](https://k8s.huweihuang.com/project/develop/develop.md)
  * [nfs-client-provisioner源码分析](https://k8s.huweihuang.com/project/develop/develop/nfs-client-provisioner.md)
  * [csi-provisioner源码分析](https://k8s.huweihuang.com/project/develop/develop/csi-provisioner.md)
* [operator开发](https://k8s.huweihuang.com/project/develop/operator.md)
  * [kubebuilder的使用](https://k8s.huweihuang.com/project/develop/operator/kubebuilder.md)

### 问题排查

* [节点相关问题](https://k8s.huweihuang.com/project/trouble-shooting/node.md)
  * [keycreate permission denied](https://k8s.huweihuang.com/project/trouble-shooting/node/keycreate-permission-denied.md)
  * [Cgroup不支持pid资源](https://k8s.huweihuang.com/project/trouble-shooting/node/cgroup-pid-error.md)
  * [Cgroup子系统无法挂载](https://k8s.huweihuang.com/project/trouble-shooting/node/cgroup-subsystem-not-mount.md)
* [Pod驱逐](https://k8s.huweihuang.com/project/trouble-shooting/pod-evicted.md)
* [镜像拉取失败问题](https://k8s.huweihuang.com/project/trouble-shooting/pod-image-error.md)
* [PVC Terminating](https://k8s.huweihuang.com/project/trouble-shooting/pvc-terminating.md)

***

### 源码分析

* [Kubernetes源码分析笔记](https://k8s.huweihuang.com/project/code-analysis/code-analysis-notes.md)
* [kubelet](https://k8s.huweihuang.com/project/code-analysis/kubelet.md)
  * [NewKubeletCommand](https://k8s.huweihuang.com/project/code-analysis/kubelet/newkubeletcommand.md)
  * [NewMainKubelet](https://k8s.huweihuang.com/project/code-analysis/kubelet/newmainkubelet.md)
  * [startKubelet](https://k8s.huweihuang.com/project/code-analysis/kubelet/startkubelet.md)
  * [syncLoopIteration](https://k8s.huweihuang.com/project/code-analysis/kubelet/syncloopiteration.md)
  * [syncPod](https://k8s.huweihuang.com/project/code-analysis/kubelet/syncpod.md)
* [kube-controller-manager](https://k8s.huweihuang.com/project/code-analysis/kube-controller-manager.md)
  * [NewControllerManagerCommand](https://k8s.huweihuang.com/project/code-analysis/kube-controller-manager/newcontrollermanagercommand.md)
  * [DeploymentController](https://k8s.huweihuang.com/project/code-analysis/kube-controller-manager/deployment-controller.md)
  * [Informer机制](https://k8s.huweihuang.com/project/code-analysis/kube-controller-manager/sharedindexinformer.md)
* [kube-scheduler](https://k8s.huweihuang.com/project/code-analysis/kube-scheduler.md)
  * [NewSchedulerCommand](https://k8s.huweihuang.com/project/code-analysis/kube-scheduler/newschedulercommand.md)
  * [registerAlgorithmProvider](https://k8s.huweihuang.com/project/code-analysis/kube-scheduler/registeralgorithmprovider.md)
  * [scheduleOne](https://k8s.huweihuang.com/project/code-analysis/kube-scheduler/scheduleone.md)
  * [findNodesThatFit](https://k8s.huweihuang.com/project/code-analysis/kube-scheduler/findnodesthatfit.md)
  * [PrioritizeNodes](https://k8s.huweihuang.com/project/code-analysis/kube-scheduler/prioritizenodes.md)
  * [preempt](https://k8s.huweihuang.com/project/code-analysis/kube-scheduler/preempt.md)
* [kube-apiserver](https://k8s.huweihuang.com/project/code-analysis/kube-apiserver.md)
  * [NewAPIServerCommand](https://k8s.huweihuang.com/project/code-analysis/kube-apiserver/newapiservercommand.md)

***

### Runtime

* [Runtime](https://k8s.huweihuang.com/project/runtime/runtime.md)
  * [Runc和Containerd概述](https://k8s.huweihuang.com/project/runtime/runtime/runtime.md)
* [Containerd](https://k8s.huweihuang.com/project/runtime/containerd.md)
  * [安装Containerd](https://k8s.huweihuang.com/project/runtime/containerd/install-containerd.md)
* [Docker](https://k8s.huweihuang.com/project/runtime/docker.md)
  * [Docker学习笔记](https://k8s.huweihuang.com/project/runtime/docker/docker-notes.md)
* [Kata Container](https://k8s.huweihuang.com/project/runtime/kata.md)
  * [kata容器简介](https://k8s.huweihuang.com/project/runtime/kata/kata-container.md)
  * [kata配置](https://k8s.huweihuang.com/project/runtime/kata/kata-container-conf.md)
* [GPU](https://k8s.huweihuang.com/project/runtime/gpu.md)
  * [nvidia-device-plugin介绍](https://k8s.huweihuang.com/project/runtime/gpu/nvidia-device-plugin.md)

### Etcd

* [Etcd介绍](https://k8s.huweihuang.com/project/etcd/etcd-introduction.md)
* [Raft算法](https://k8s.huweihuang.com/project/etcd/raft.md)
* [Etcd启动配置参数](https://k8s.huweihuang.com/project/etcd/etcd-setup-flags.md)
* [Etcd访问控制](https://k8s.huweihuang.com/project/etcd/etcd-auth-and-security.md)
* [etcdctl命令工具](https://k8s.huweihuang.com/project/etcd/etcdctl.md)
  * [etcdctl命令工具-V3](https://k8s.huweihuang.com/project/etcd/etcdctl/etcdctl-v3.md)
  * [etcdctl命令工具-V2](https://k8s.huweihuang.com/project/etcd/etcdctl/etcdctl-v2.md)
* [Etcd中的k8s数据](https://k8s.huweihuang.com/project/etcd/k8s-etcd-data.md)
* [Etcd-Operator的使用](https://k8s.huweihuang.com/project/etcd/etcd-operator-usage.md)

### 多集群管理

* [k8s多集群管理的思考](https://k8s.huweihuang.com/project/multi-cluster/k8s-multi-cluster-thinking.md)
* [Virtual Kubelet](https://k8s.huweihuang.com/project/multi-cluster/virtual-kubelet.md)
  * [Virtual Kubelet介绍](https://k8s.huweihuang.com/project/multi-cluster/virtual-kubelet/virtual-kubelet.md)
  * [Virtual Kubelet 命令](https://k8s.huweihuang.com/project/multi-cluster/virtual-kubelet/virtual-kubelet-cmd.md)
* [Karmada](https://k8s.huweihuang.com/project/multi-cluster/karmada.md)
  * [Karmada介绍](https://k8s.huweihuang.com/project/multi-cluster/karmada/karmada-introduction.md)

### 边缘容器

* [KubeEdge介绍](https://k8s.huweihuang.com/project/kubeedge/kubeedge-arch.md)
* [KubeEdge源码分析](https://k8s.huweihuang.com/project/kubeedge/code-analysis.md)
  * [cloudcore](https://k8s.huweihuang.com/project/kubeedge/code-analysis/cloudcore.md)
  * [edgecore](https://k8s.huweihuang.com/project/kubeedge/code-analysis/edgecore.md)
* [OpenYurt部署](https://k8s.huweihuang.com/project/kubeedge/install-openyurt.md)

### 虚拟化

* [虚拟化相关概念](https://k8s.huweihuang.com/project/kvm/vm-concept.md)
* [KubeVirt](https://k8s.huweihuang.com/project/kvm/kubevirt.md)
  * [KubeVirt的介绍](https://k8s.huweihuang.com/project/kvm/kubevirt/kubevirt-introduction.md)
  * [KubeVirt的使用](https://k8s.huweihuang.com/project/kvm/kubevirt/kubevirt-installation.md)

### 监控体系

* [监控体系介绍](https://k8s.huweihuang.com/project/monitor/kubernetes-cluster-monitoring.md)
* [cAdvisor介绍](https://k8s.huweihuang.com/project/monitor/cadvisor-introduction.md)
* [Heapster介绍](https://k8s.huweihuang.com/project/monitor/heapster-introduction.md)
* [Influxdb介绍](https://k8s.huweihuang.com/project/monitor/influxdb-introduction.md)

***

## 赞赏

> 如果觉得文章有帮助的话，可以打赏一下，谢谢！

![](https://res.cloudinary.com/dqxtn0ick/image/upload/v1551599963/blog/donate.jpg)
