Convert Figma logo to code with AI

rootsongjc logokubernetes-handbook

Kubernetes 架构与生态:从云原生到 AI 原生基础设施的构建指南

11,584
2,964
11,584
0

Top Related Projects

5,108

Kubernetes website and documentation repo:

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

和我一步步部署 kubernetes 集群

17,903

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

5,108

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.

17,903

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 手册

GitHub stars GitHub forks License

Kubernetes 基础教程 - 全面介绍容器编排技术的实战手册,涵盖核心架构、关键组件和实际应用。

关于本教程

本教程内容涵盖容器、Kubernetes、服务网格、Serverless 等云原生的多个领域,以及 AI 原生基础设施。

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

什么是云原生

云原生是一种行为方式和设计理念,其本质是通过一系列技术和方法论来提高云上资源利用率和应用交付效率。云计算的发展史就是一部云原生化的历史。

从技术发展历程来看:

  • Kubernetes 开启了云原生的序幕,提供了容器编排的标准
  • 服务网格(如 Istio) 引领了后 Kubernetes 时代的微服务治理
  • Serverless 技术使云原生从基础设施层向应用架构层深入发展
  • AI 原生 技术使云原生从应用架构层向智能化平台发展

我们正处于一个云原生技术快速演进的新时代。

Kubernetes 简介

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

Kubernetes 的使命

Kubernetes 的目标不仅仅是一个编排系统,而是:

  • 提供规范来描述集群架构
  • 定义服务的最终状态
  • 使系统自动达到并维持该状态
  • 作为云原生应用的操作系统

云原生技术栈

根据 CNCF 定义,云原生技术有利于各组织在公有云、私有云和混合云等新型动态环境中,构建和运行可弹性扩展的应用。

核心技术包括:

  • **容器**:应用打包和运行的标准单元
  • 服务网格:微服务间通信的基础设施层
  • **微服务**:应用架构的设计模式
  • 不可变基础设施:基础设施的管理理念
  • 声明式 API:系统配置和管理的方式

这些技术能够构建容错性好、易于管理和便于观察的松耦合系统,结合可靠的自动化手段,使工程师能够轻松地对系统作出频繁和可预测的重大变更。

关于本书

Kubernetes Handbook 项目始于 2016 年底,开源于 2017 年 3 月,作为第一本系统介绍 Kubernetes 的中文电子书,经过多年持续完善和更新。

本书记录了从零开始学习和使用 Kubernetes 的完整历程,具有以下特点:

  • 实战导向:着重于经验总结和最佳实践分享
  • 深入浅出:详细解析 Kubernetes 核心概念
  • **生态完整**:涵盖微服务、DevOps、服务网格、Serverless、边缘计算、AI 原生等相关领域
  • **持续更新**:跟进最新技术发展和社区动态

本书基于 Kubernetes v1.31+ 编写,持续更新最新的概念和 API,确保内容的时效性和准确性。

在线阅读与下载

你可以通过以下方式阅读本书:

参与贡献

欢迎提交 Issue 和 Pull Request 来改进本书!

贡献方式:

  • Fork 本仓库
  • 创建特性分支(git checkout -b feature/amazing-feature)
  • 提交更改(git commit -m 'Add some amazing feature')
  • 推送到分支(git push origin feature/amazing-feature)
  • 创建 Pull Request

作者

Jimmy Song

许可证

本项目采用 CC BY-NC-SA 4.0 许可证。

致谢

感谢所有为本项目做出贡献的朋友们!