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

  • 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
主站蜘蛛池模板: 江永县| 浑源县| 鄢陵县| 任丘市| 阜城县| 永登县| 金塔县| 大洼县| 榆树市| 民权县| 怀来县| 隆回县| 锡林郭勒盟| 什邡市| 石河子市| 宁乡县| 大新县| 云安县| 休宁县| 云南省| 伊金霍洛旗| 巴塘县| 龙游县| 明水县| 肥城市| 丘北县| 浪卡子县| 民丰县| 深水埗区| 克东县| 高雄县| 黑河市| 秦皇岛市| 赤峰市| 普定县| 游戏| 营山县| 正蓝旗| 汽车| 长武县| 鹿泉市|