- 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
推薦閱讀
- GitLab Cookbook
- JavaScript+jQuery網(wǎng)頁(yè)特效設(shè)計(jì)任務(wù)驅(qū)動(dòng)教程(第2版)
- 數(shù)據(jù)結(jié)構(gòu)(Python語(yǔ)言描述)(第2版)
- Interactive Applications Using Matplotlib
- C#程序設(shè)計(jì)
- Node.js Design Patterns
- Kotlin從基礎(chǔ)到實(shí)戰(zhàn)
- Illustrator CS6設(shè)計(jì)與應(yīng)用任務(wù)教程
- 創(chuàng)意UI Photoshop玩轉(zhuǎn)移動(dòng)UI設(shè)計(jì)
- Shopify Application Development
- 軟件測(cè)試技術(shù)
- C Primer Plus(第6版)中文版【最新修訂版】
- 接口自動(dòng)化測(cè)試持續(xù)集成:Postman+Newman+Git+Jenkins+釘釘
- Python語(yǔ)言及其應(yīng)用(第2版)
- 看漫畫(huà)學(xué)Python:有趣、有料、好玩、好用(全彩版)