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编程
Kubernetes API
基础
37
Beta
级(比如
v2beta3
)通常默认是启用的,表示这里的功能都经过了必
要的测试。不过对象的语意在后续的其他
Beta
或正式版本中还可能发生
不兼容的变化。
Stable
(普遍可用,
GA
)级(比如
v1
)出现在正式发布的软件版本中,
并会在后续很多版本中继续得到支持。
下面来看看
HTTP API
空间是如何构造的:顶层(即
/api/v1
的下一层)
用于区分不同的核心组,对于其他有名字的组,它们的顶层路径形式是
/apis/$NAME/$VERSION
核心组的
API
位于
/api/v1
,并不像很多人所想的那样位于
/apis/core/v1
,这
是有历史原因的,因为核心组
API
在引入
API
组的概念前就已经存在了。
还有第三类
HTTP
路径,它们与其他资源类型不同,是
API
服务器提供的一
些接口:集群级别的实体,比如
/metrics
/logs
/healthz
。除此之外,
API
服务器还提供
Watch
机制,用户可以在部分请求的后面加上
?watch=true
API
服务器会把这样的请求转换为
Watch
形式,这样就不需要每隔一段时间
就反复查询对象的状态了。
2.1.4
声明式状态管理
大部分
API
对象都区分资源的期望状态和当前状态。所谓规格(
Specification
简写为
Spec
)是对于某种资源的期望状态的完整描述,经常会被持久化到存
储系统中,通常是
etcd
为什么我们说“通常是
etcd
”?因为
Kubernetes
有很多发行版,比如
k3s
Microsoft ...
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