api规范
前言
本问主要讲解整个kubernetes api的规范公约,本文译自kubernetes社区的本篇文档。译这篇文章是因为在与kubernetes打交道曾多次参考,非常有价值,可以帮助我们更好的理解kubernetes api。中文有的地方表达不是很完善,最好可以对照原文看。下面是部分译文。
本文档面向想深度理解kubernetes api结构,以及扩展kubernetes的开发人员。
目录
Types (Kinds)
Resources
Objects
Metadata
Spec and Status
Typical status properties
References to related objects
Lists of named subobjects preferred over maps
Primitive types
Constants
Unions
Lists and Simple kinds
Differing Representations
Verbs on Resources
PATCH operations
Idempotency
Optional vs. Required
Defaulting
Late Initialization
Concurrency Control and Consistency
Serialization Format
Units
Selecting Fields
Object references
HTTP Status codes
Success codes
Error codes…
kubernetes api公约
发布于