- 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
推薦閱讀
- Building a Home Security System with Raspberry Pi
- 跟小海龜學Python
- Learning AWS Lumberyard Game Development
- 精通API架構:設計、運維與演進
- 基于差分進化的優化方法及應用
- jQuery從入門到精通 (軟件開發視頻大講堂)
- 網店設計看這本就夠了
- 程序員修煉之道:通向務實的最高境界(第2版)
- 青少年Python編程入門
- Mastering Linux Network Administration
- 從Excel到Python:用Python輕松處理Excel數據(第2版)
- Getting Started with Gulp
- Corona SDK Mobile Game Development:Beginner's Guide(Second Edition)
- JBoss:Developer's Guide
- Python+Office:輕松實現Python辦公自動化