- 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
推薦閱讀
- DevOps:軟件架構(gòu)師行動(dòng)指南
- Boost程序庫完全開發(fā)指南:深入C++”準(zhǔn)”標(biāo)準(zhǔn)庫(第5版)
- Node.js 10實(shí)戰(zhàn)
- Modular Programming with Python
- Mastering Spring MVC 4
- Dependency Injection in .NET Core 2.0
- Java編程技術(shù)與項(xiàng)目實(shí)戰(zhàn)(第2版)
- Raspberry Pi Home Automation with Arduino(Second Edition)
- Natural Language Processing with Java and LingPipe Cookbook
- 零代碼實(shí)戰(zhàn):企業(yè)級(jí)應(yīng)用搭建與案例詳解
- SSH框架企業(yè)級(jí)應(yīng)用實(shí)戰(zhàn)
- Solr權(quán)威指南(下卷)
- Python第三方庫開發(fā)應(yīng)用實(shí)戰(zhàn)
- Offer來了:Java面試核心知識(shí)點(diǎn)精講(框架篇)
- Mastering React Test:Driven Development