官术网_书友最值得收藏!

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
主站蜘蛛池模板: 鱼台县| 和平县| 惠水县| 武宁县| 徐闻县| 忻城县| 西畴县| 留坝县| 晴隆县| 蓬安县| 昆明市| 崇左市| 漯河市| 临武县| 威信县| 治多县| 同仁县| 江津市| 临清市| 建瓯市| 同心县| 南阳市| 外汇| 武胜县| 石狮市| 望谟县| 溧水县| 峨眉山市| 诏安县| 阳信县| 呼图壁县| 屏山县| 台湾省| 繁昌县| 桂阳县| 盐亭县| 探索| 晋中市| 浏阳市| 尖扎县| 吉隆县|