Convert Figma logo to code with AI

rootsongjc logokubernetes-handbook

Kubernetes中文指南/云原生应用架构实战手册

11,087
2,951
11,087
3

Top Related Projects

4,440

Kubernetes website and documentation repo:

Kubernetes Handbook (Kubernetes指南) https://kubernetes.feisky.xyz

和我一步步部署 kubernetes 集群

15,866

Deploy a Production Ready Kubernetes Cluster

Quick Overview

The kubernetes-handbook repository is a comprehensive guide to Kubernetes in Chinese. It covers various aspects of Kubernetes, including its architecture, components, and best practices for deployment and management. The handbook serves as a valuable resource for developers and administrators looking to learn about and work with Kubernetes.

Pros

  • Extensive coverage of Kubernetes concepts and components
  • Written in Chinese, making it accessible to a large audience
  • Regularly updated with new information and best practices
  • Includes practical examples and use cases

Cons

  • Limited to Chinese language, which may not be accessible to non-Chinese speakers
  • May require frequent updates to keep pace with rapidly evolving Kubernetes ecosystem
  • Some sections might be too technical for beginners

Getting Started

To access the Kubernetes Handbook:

  1. Visit the GitHub repository: https://github.com/rootsongjc/kubernetes-handbook
  2. Clone the repository or download the content as a ZIP file
  3. Open the README.md file to start exploring the handbook
  4. Navigate through the various chapters and sections to learn about different Kubernetes topics

Note: This is not a code library, so there are no code examples or quick start instructions for implementation. The handbook is meant to be read and studied for learning purposes.

Competitor Comparisons

4,440

Kubernetes website and documentation repo:

Pros of website

  • Official Kubernetes documentation repository, ensuring up-to-date and accurate information
  • Multilingual support with translations available in various languages
  • Extensive contributor base and regular updates

Cons of website

  • Primarily focused on documentation, lacking in-depth tutorials or hands-on examples
  • May be overwhelming for beginners due to its comprehensive nature

Code Comparison

kubernetes-handbook:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx

website:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx

The code snippets show similar Kubernetes Deployment manifests. The website repository's example includes additional labels in the metadata section, demonstrating a more comprehensive approach to resource labeling.

kubernetes-handbook provides a more concise Chinese-language resource for Kubernetes learning, while website offers official, multilingual documentation with a broader scope. The handbook may be more suitable for Chinese-speaking beginners, whereas website serves as a comprehensive reference for the global Kubernetes community.

Kubernetes Handbook (Kubernetes指南) https://kubernetes.feisky.xyz

Pros of kubernetes-handbook (feiskyer)

  • More frequent updates and commits, indicating active maintenance
  • Broader coverage of Kubernetes-related topics, including cloud-native technologies
  • Includes practical examples and hands-on tutorials

Cons of kubernetes-handbook (feiskyer)

  • Less structured organization compared to rootsongjc's version
  • Primarily written in Chinese, which may limit accessibility for non-Chinese speakers
  • Fewer contributors, potentially resulting in a narrower perspective

Code Comparison

kubernetes-handbook (rootsongjc):

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  replicas: 3

kubernetes-handbook (feiskyer):

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 3

Both repositories provide similar code examples, with feiskyer's version including additional labels in the metadata section. This demonstrates a slight difference in the level of detail provided in code samples between the two handbooks.

和我一步步部署 kubernetes 集群

Pros of follow-me-install-kubernetes-cluster

  • Provides step-by-step instructions for manual Kubernetes installation
  • Focuses on practical implementation rather than theoretical concepts
  • Regularly updated with the latest Kubernetes versions

Cons of follow-me-install-kubernetes-cluster

  • Limited scope, primarily covering installation and basic setup
  • Less comprehensive coverage of Kubernetes concepts and features
  • Primarily in Chinese, which may limit accessibility for non-Chinese speakers

Code Comparison

follow-me-install-kubernetes-cluster:

# 创建 kubernetes 证书和私钥
cat > kubernetes-csr.json <<EOF
{
  "CN": "kubernetes",
  "hosts": [
    "127.0.0.1",
    "${MASTER_IP}",
    "${CLUSTER_KUBERNETES_SVC_IP}",
    "kubernetes",
    "kubernetes.default",
    "kubernetes.default.svc",
    "kubernetes.default.svc.cluster",
    "kubernetes.default.svc.cluster.local"
  ],
  "key": {
    "algo": "rsa",
    "size": 2048
  },
  "names": [
    {
      "C": "CN",
      "ST": "BeiJing",
      "L": "BeiJing",
      "O": "k8s",
      "OU": "System"
    }
  ]
}
EOF

kubernetes-handbook:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 2
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.14.2
        ports:
        - containerPort: 80

The code snippets demonstrate the different focus areas of each repository. follow-me-install-kubernetes-cluster provides configuration files for setting up Kubernetes components, while kubernetes-handbook offers examples of Kubernetes resource definitions and usage.

15,866

Deploy a Production Ready Kubernetes Cluster

Pros of kubespray

  • Automated deployment and management of Kubernetes clusters
  • Supports multiple cloud providers and on-premises installations
  • Regularly updated and maintained by the Kubernetes community

Cons of kubespray

  • Steeper learning curve for beginners compared to the handbook
  • Requires more technical knowledge to set up and configure
  • Less comprehensive documentation for troubleshooting

Code comparison

kubernetes-handbook:

# Kubernetes Handbook

This is a guide for learning and using Kubernetes.

## Table of Contents

1. Introduction to Kubernetes
2. Architecture
3. Basic Concepts
...

kubespray:

# Example inventory file for kubespray

[all]
node1 ansible_host=95.54.0.12 ip=10.3.0.1
node2 ansible_host=95.54.0.13 ip=10.3.0.2
node3 ansible_host=95.54.0.14 ip=10.3.0.3

[kube_control_plane]
node1

[etcd]
node1
node2
node3

Summary

While kubernetes-handbook serves as a comprehensive guide for learning Kubernetes, kubespray is a practical tool for deploying and managing Kubernetes clusters. The handbook is more suitable for beginners and provides in-depth explanations, while kubespray is geared towards experienced users who need to automate cluster deployment across various environments.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Kubernetes 中文指南/云原生应用架构实战手册

注意:本书内容不再维护,已转到 https://jimmysong.io/book/kubernetes-handbook/ 浏览。

Kubernetes 是 Google 于 2014 年 6 月基于其内部使用的 Borg 系统开源出来的容器编排调度引擎,Google 将其作为初始和核心项目贡献给 CNCF(云原生计算基金会),近年来逐渐发展出了云原生生态。

Kubernetes 的目标不仅仅是一个编排系统,而是提供一个规范用以描述集群的架构,定义服务的最终状态,使系统自动地达到和维持该状态。Kubernetes 作为云原生应用的基石,相当于一个云原生操作系统,其重要性不言而喻。

云原生技术有利于各组织在公有云、私有云和混合云等新型动态环境中,构建和运行可弹性扩展的应用。云原生的代表技术包括 容器、服务网格、微服务、不可变基础设施 和 声明式 API。这些技术能够构建容错性好、易于管理和便于观察的松耦合系统。结合可靠的自动化手段,云原生技术使工程师能够轻松地对系统作出频繁和可预测的重大变更。——CNCF(云原生计算基金会)。

关于本书

CircleCI

Kubernetes Handbook——Kubernetes 中文指南/云原生应用架构实战手册 by Jimmy Song (宋净超)

Kubernetes Handbook 项目始于 2016 年底,开源于 2017 年 3 月,作为第一本系统介绍 Kubernetes 的中文电子书,其后经过不断完善。写作本书的过程中,笔者记录了从零开始学习和使用 Kubernetes 的历程,着重于经验总结和资料分享,亦有 Kubernetes 核心概念解析,希望能够帮助大家少走弯路,为大家介绍 Kubernetes 周边生态,如微服务、DevOps、大数据应用、服务网格、云原生应用、Serverless 等领域。

开始之前

在阅读本书之前希望您掌握以下知识和准备以下环境:

  • 阅读云原生新手指南
  • Linux 操作系统原理
  • Linux 常用命令
  • Docker 容器原理及基本操作
  • 一台可以上网的电脑,Mac/Windows/Linux 皆可
  • 安装 Docker

本书主题

本书的主题不局限于 Kubernetes,还包括以下几大主题:

  • 云原生开源组件
  • 云原生应用与微服务架构
  • 基于 Kubernetes 的服务网格(Service Mesh)架构

本书中的说明、安装的所有组件、所用示例和操作要求至少 Kubernetes 1.6+ 版本。

使用方式

您可以通过以下方式使用本书:

快速开始

如果您想要学习 Kubernetes 和云原生应用架构但是又不想自己从头开始搭建和配置一个集群,推荐以下几种方式:

贡献与致谢

本项目已集成 CircleCI,在每次提交后会自动扫描书中链接及 MarkDown 样式,并编译为 Gitbook 通过 GitHub Pages 发布。因本书写作时间跨度大,其中难免有过时和遗漏的地方,感谢大家的贡献和指正!

关于本书有任何问题,欢迎提交 Issue 或与作者联系。

许可证

您可以使用署名 - 非商业性使用 - 相同方式共享 4.0 (CC BY-NC-SA 4.0) 协议共享。

云原生社区

加入云原生社区

云原生社区是中国最大的独立第三方云原生终端用户和泛开发者社区,由 CNCF 大使、开源意见领袖共同发起成立于 2020 年 5 月 12 日,提供云原生专业资讯,促进云原生产业发展。

官方网站 https://cloudnative.to,关注云原生社区微信公众号,申请加入社区。