Skip to Content
Kubernetes编程
book

Kubernetes编程

by Michael Hausenblas, Stefan Schimanski
June 2021
Intermediate to advanced
335 pages
5h 50m
Chinese
China Electric Power Press Ltd.
Content preview from Kubernetes编程
30
2
Kubernetes API
基础
在本章中我们会介绍
Kubernetes API
的基础知识,包括深入
API
服务器的内
部机制、
API
本身,以及如何通过命令行来调用
API
。我们会介绍
Kubernetes
API
中的一些概念,比如资源(
Resource
)和 别(
Kind
),以 组(
Grouping
和版本(
Versioning
)。
2.1 API
服务器
Kubernetes
集群由一系列节点组成(构成集群的机器),这些节点分属于不
同的角色,如图
2-1
所示,主控节点上的控制平面由
API
服务器、控制器管
理器和调度器组成。
API
服务器是完成中心管理的实体,也是唯一一个直接
与分布式存储组件
etcd
交互的组件。
API
服务器包含以下的职责:
提供
Kubernetes API
。这个
API
会在集群内被主控节点、工作节点组件和
原生
Kubernetes
应用直接调用,也可以被集群外的一些客户端程序调用,
比如
kubectl
为其他集群组件提供代理,比如
Kubernetes
管理大盘、日志串流、服务端口,
以及提供
kubectl exec
会话。
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

解密金融数据

解密金融数据

Justin Pauley
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
软件开发实践:项目驱动式的Java开发指南

软件开发实践:项目驱动式的Java开发指南

Raoul-Gabriel Urma, Richard Warburton

Publisher Resources

ISBN: 9787519854799