- DevOps with Kubernetes
- Hideto Saito Hui Chuan Chloe Lee Cheng Yang Wu
- 108字
- 2021-07-02 13:41:53
Kubernetes objects
The object spec describes the desired state of Kubernetes objects. Most of the time, we write an object spec and send it to the API server via kubectl. Kubernetes will try to fulfill that desired state and update the object's status.
The object spec could be written in YAML (http://www.yaml.org/) or JSON (http://www.json.org/). YAML is more common in the Kubernetes world. We'll use YAML to write object spec in the rest of this book. The following code block shows a YAML-formatted spec fragment:
apiVersion: Kubernetes API version
kind: object type
metadata:
spec metadata, i.e. namespace, name, labels and annotations
spec:
the spec of Kubernetes object
推薦閱讀
- Learning Selenium Testing Tools with Python
- Python程序設計(第3版)
- RTC程序設計:實時音視頻權威指南
- Practical Game Design
- Modern JavaScript Applications
- Learning Python by Building Games
- Kotlin開發教程(全2冊)
- Android移動開發案例教程:基于Android Studio開發環境
- Unity&VR游戲美術設計實戰
- 計算機應用基礎教程(Windows 7+Office 2010)
- Visual Studio Code 權威指南
- Oracle 12c從入門到精通(視頻教學超值版)
- 啊哈C語言!:邏輯的挑戰(修訂版)
- 透視C#核心技術:系統架構及移動端開發
- TypeScript High Performance