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

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
主站蜘蛛池模板: 哈巴河县| 全州县| 大名县| 谢通门县| 镇原县| 雅安市| 海阳市| 遵义市| 大埔县| 溆浦县| 湘乡市| 团风县| 兴国县| 永安市| 甘孜| 宁德市| 金秀| 朝阳区| 晋宁县| 土默特左旗| 手机| 吉安县| 县级市| 利辛县| 鄢陵县| 仁化县| 皋兰县| 密山市| 通许县| 衡阳市| 枞阳县| 云阳县| 景谷| 旺苍县| 聂荣县| 资阳市| 伊川县| 金山区| 柳河县| 博野县| 依安县|