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

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
主站蜘蛛池模板: 于田县| 红河县| 嫩江县| 土默特左旗| 开江县| 桂林市| 阜新市| 隆子县| 拜城县| 廉江市| 台州市| 永和县| 汶川县| 霍林郭勒市| 昭苏县| 临澧县| 碌曲县| 德兴市| 乳源| 左贡县| 望江县| 富民县| 澄城县| 肥城市| 北辰区| 海林市| 桃江县| 福贡县| 三河市| 太湖县| 襄城县| 伊川县| 普宁市| 通城县| 洛隆县| 安仁县| 商河县| 新丰县| 津市市| 资溪县| 南陵县|