作者 | 平名 阿里服务端开发技术专家
 
 
 
  
   
    
     
      
      导读:Kubernetes 作为云原生时代的“操作系统”,熟悉和使用它是每名用户的必备技能。本篇文章概述了容器服务 Kubernetes 的知识图谱,部分内容参考了网上的知识图谱,旨在帮助用户更好的了解 K8s 的相关知识。
 
      
     
    
   
  
  
  
  
 
  概述
 
  
 
 
 
容器服务 Kubernetes 知识图谱,部分内容参考网上一知识图谱,更加结合阿里云容器服务。
 
 
 
原图 by 杨传胜
 
https://www.processon.com/view/link/5ac64532e4b00dc8a02f05eb#map
 
 
 
 
 
 
 
 
 https://blog.csdn.net/weixin_43695104/article/details/88554443#32_kvm_web_192 
 
 
 
 
 https://blog.csdn.net/wangjianno2/article/details/75208036 
 
 
 
 
 https://www.atatech.org/articles/81800 
 
 
 
 
 备注:Linux 容器中用来实现“隔离”的技术手段:Namespace,Namespace 技术实际上修改了应用进程看待整个计算机的范围,它的访问范围被操作系统做了限制,只能“看到”某些指定的内容。 
 
 
 
 
 https://blog.csdn.net/wudongxu/article/details/8474198 
 
 
 备注:Linux Control Group。它最主要的作用,就是限制一个进程组能够使用的资源上限,包括 CPU、内存、磁盘、网络带宽等等。 
 
 
 
 
 https://coolshell.cn/articles/17061.html 
 
 
 
 
 备注:rootfs 只是一个操作系统所包含的文件、配置和目录,并不包括操作系统内核。在 Linux 操作系统中,这两部分是分开存放的,操作系统只有在开机启动时才会加载指定版本的内核镜像。 
 
 
 
 
 备注:windowserver 2019开始支持 namespace 
 
 
 
 
 
 
 https://www.docker.com/products/docker-desktop 
 
 
 
 
 备注:Mac 机器上强烈建议安装该软件作为学习使用 
 
 
 
 
 http://docs.kubernetes.org.cn/ 
 
 
 备注:kubernetes 集群,aliyun容器服务支持 
 
 
 
 
 https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/ 
 
 
 备注:kubernetes 集群的图形界面管理工具,容器服务控制台整合了该应用并扩展 
 
 
 
 
 https://github.com/liumiaocn/easypack 
 
 
 备注:一批部署 kubernetes 等集群的脚本集合 
 
 
 
 
 https://kubernetes.io/docs/tasks/tools/install-minikube/  
 
 
 
 
 
 
 
 
 http://docs.kubernetes.org.cn/61.html 
 
 
 备注:kubectl 用于运行 Kubernetes 集群命令的管理工具 
 
 
 
 
 https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm/Kubernetes 
 
 
 备注:官方提供的用于快速安装配置 Kubernetes 集群的工具 
 
 
 
 
 备注:类似 rpm,yum,是 K8s 用于安装组件(软件包:chart)的工具 
 
 
 
 
 
 https://developer.aliyun.com/hub 
 
 
 备注:在开放云原生应用中心当中,所有默认的 Helm Charts(Helm 格式的应用),都定时同步自 Helm Hub 北美官方站并托管在 Github 上。在这个过程中,云原生应用中心会自动对同步过来的所有 Charts 进行“本地化”操作。 
 
 
 
 
 
 https://github.com/cloudflare/cfssl 
 
 
 备注:CFSSL 是开源的一款 PKI/TLS 工具,常用于 K8s 证书制作 
 
 
 
 
 
 
 
 https://cr.console.aliyun.com/aliyun  
 
 
 
 
 
 https://cn.aliyun.com/product/yunxiao 
 
 
 备注:云效企业设置,配置支持从阿里云私有镜像仓库拉取镜像 
 
 
 
 
 
 
 备注:开源免费的存储和分发 
 Docker镜像的企业级Registry服务器 
 
 
 
 
 
 
 https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/ 
 
 
 备注: 
 在 generic server 上封装的一层官方默认的 apiserver(static pod) 
 
 
 
 
 
 备注: 
 类 zk 基于 Raft 协议的实现,启动进程 
 
 
 
 
 https://kubernetes.io/docs/reference/command-line-tools-reference/kube-scheduler/ 
 
 
 备注: 
 负责 pod 分布到 Node 上的调度器 (static pod) 
 
 
 
 -  
   
   kube-controller-manager(Master) 
  
  
 
 
 https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/ 
 
 
 备注: 
 Deployment 等基础对象的控制器 (static pod) 
 
 
 
 
 
 -  
   
   cloud-controller-manager(Master) 
  
  
 
 
 https://kubernetes.io/docs/reference/command-line-tools-reference/cloud-controller-manager/ 
 
 
 备注: 
 用于云资源使用的控制器,是云服务进行集成的控制器 (Daemonset) 
 
 
 
 
 https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/ 
 
 
 备注: 
 与 Master 通信,对 worker(Node) 进行生命周期管理 
 
 
 
 
 https://kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ 
 
 
 备注: 
 节点上运行的网络代理 (Daemonset) 
 
 
 
 
 
 
 
 
 https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/ 
 
 
 备注:aliyun容器服务采用 CoreDNS(deployment) 
 
 
 
 
 https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/ 
 
 
 备注:aliyun容器服务采用nginx ingress controller, 可以作为 https 服务的统一路由(deployment) 
 
 
 
 
 
 备注:监控数据采集与存储用的时序数据库(Deployment) 
 
 
 
 
 
 https://kubernetes.io/docs/concepts/cluster-administration/federation/ 
 
 
 
 
 
 
 备注:官方网络插件,aliyun 另外提供了自己开发的 Terway 组件(daemonset) 
 
 
 
 
 
 https://help.aliyun.com/document_detail/28979.html?spm=a2c4g.11186623.6.595.439d7218wQhzsH 
  
 
 
 备注:aliyun 日志采集组件 (daemonset) 
 
 
 
 
 
 
 
 http://docs.kubernetes.org.cn/312.html   
 
 
 容器组,运行应用容器基本单位,kubectl get pods  
 
 
 
 
 
 http://docs.kubernetes.org.cn/304.html 
  
 
 
 集群节点服务器,Kubernetes中的工作节点。 
 
 
 
 
 
 http://docs.kubernetes.org.cn/242.html 
 
 
 
 
 
 
 http://docs.kubernetes.org.cn/317.html 
  
 
 
 
 
 
 
 https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ 
 
 
 
 
 
 http://docs.kubernetes.org.cn/443.html 
 
 
 
 
 
 https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ 
 
 
 
 
 
 https://kubernetes.io/docs/tasks/configure-pod-container/static-pod/ 
 
 
 备注: 
 静态 pod 配置,yaml 位于 Master 
 
 
 
 
 https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/ 
 
 
 
 
 
 https://kubernetes.io/docs/concepts/services-networking/service/ 
 
 
 备注: 
 服务暴露配置,包括 Cluster,NodePort,SLB 等 
 
 
 
 
 https://www.kubernetes.org.cn/1885.html 
 
 
 备注: 
 路由,阿里云默认提供 nginx ingress 
 
 
 
 
 https://kubernetes.io/docs/concepts/configuration/secret/ 
 
 
 备注: 
 保密字典,包括 tls,私有仓库密钥,Opaque 几种 
 
 
 
 
 https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/ 
 
 
 备注: 
 用于资源对象的账号,比如给一个 Namespace 授予某私有镜像访问权限 
 
 
 
 
 https://kubernetes.io/docs/reference/access-authn-authz/rbac/ 
 
 
 备注: 
 K8s 基于角色的访问控制,role,rolebinding 
 
 
 
 
 https://kubernetes.io/docs/concepts/storage/volumes/ 
 
 
 
 
 
 https://kubernetes.io/docs/concepts/storage/storage-classes/ 
 
 
 
 
 
 
 
 
 
 
 https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/ 
 
 
 
 
 
 
 
 https://github.com/fstab/cifs 
  
 
 
 
 
 
 
 
 
 
 
 [1] https://yq.aliyun.com/articles/599169?spm=5176.11065265.1996646101.searchclickresult.7bea1a8bgCTYH7 
 
 
 [2] https://yq.aliyun.com/articles/621108? 
 
 
 
 
 
 https://yq.aliyun.com/articles/594943? 
  
 
 
 
 
 
 
 
 https://yq.aliyun.com/articles/602932?spm=a2c4e 
 
 
 
 
 
 
 
 
 
 
 https://help.aliyun.com/document_detail/123661.html?spm=5176.10695662.1996646101.searchclickresult.20d0328c6WG7jc 
 
 
 
 
 
 节点变配或重启、摘除、加入
  
 基础镜像开发
  
 Service 与 SLB 结合
  
 
 
 
 
 
 
 
 
 https://help.aliyun.com/document_detail/91406.html?spm=5176.10695662.1996646101.searchclickresult.45266c92kGHQrP 
 
 
 
 
 https://yq.aliyun.com/articles/622898?spm=a2c4e.11155435.0.0.1b8e3312bSGmSe 
 
 
 
 
 
 
 https://yq.aliyun.com/articles/715809 
 
 
 
 
 
 https://yq.aliyun.com/articles/715808 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 https://linkerd.io/2/overview/ 
 
 
 
 
 
 https://www.aliyun.com/product/yunxiao 
 
 
 备注:支持容器服务 K8s 的 CI/CD 阿里云上产 
 
 
 
 
 
 备注:著名的最常用的 CI/CD 产品,容器服务由一键安装产品 
 
 
云原生技术公开课
 
 
https://edu.aliyun.com/roadmap/cloudnative
 
 
  备注:阿里云联合 CNCF (云原生计算基金会)共同开发了本套云原生技术公开课,课程全程免费! 
 
 
 
『本文转载自阿里云开发者社区』
 
原文链接:
 
https://developer.aliyun.com/article/715805?utm_content=g_1000073582