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

  • 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
主站蜘蛛池模板: 西宁市| 城口县| 崇礼县| 方城县| 任丘市| 泸溪县| 政和县| 尖扎县| 屯昌县| 淮北市| 土默特左旗| 武安市| 子长县| 新津县| 浪卡子县| 云浮市| 浙江省| 麻栗坡县| 荆州市| 铁岭市| 临朐县| 陆川县| 徐汇区| 泗水县| 临泉县| 合江县| 襄樊市| 康保县| 灵山县| 贵定县| 资中县| 凤凰县| 当涂县| 满城县| 柯坪县| 嵩明县| 余干县| 喀喇沁旗| 彰武县| 景宁| 安岳县|