Image for post
Image for post
Kubernetes — Conceptual Architecture

Kubernetes API Server, Part I

Preface — The Term “API Server”

Image for post
Image for post
Figure 1. API Server, Kubernetes API, and Kubernetes Object Store

The API Server

Image for post
Image for post
Figure 2. The Kubernetes API Server & Kubernetes Objects
Image for post
Image for post
Figure 3. The Kubernetes API Server & Revisions
Image for post
Image for post
Figure 4. Read Phenomena

Fencing and Freshness Tokens

Image for post
Image for post
Figure 5. Fencing Tokens
Image for post
Image for post
Figure 6. Freshness Token

Structural Specification

Behavioral Specification

Image for post
Image for post
Figure 7. Write and Read Interfaces

The Write Interface

Image for post
Image for post
Fig 8. API Server, Commands, and Events
state = reduce(apply, events, {})

Create Command

Update Command

Delete Command

The Read Interface

Object-related Interface

Event-related Interface

Example

    
pods, rev := request-object-list(kind="pods", namespace="default")
for e in request-watch-list(kind="pods", namespace="default", rev) pods := apply(pods, e)

Conclusion

About this post

Principal Engineer at Cisco, Office of the CTO

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store