- 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
推薦閱讀
- 演進式架構(原書第2版)
- Monkey Game Development:Beginner's Guide
- Learning Docker
- Vue.js 3.x從入門到精通(視頻教學版)
- Mastering Natural Language Processing with Python
- Web Development with Django Cookbook
- Android NDK Beginner’s Guide
- 重學Java設計模式
- Linux:Embedded Development
- RabbitMQ Essentials
- 青少年信息學競賽
- Java編程的邏輯
- Scala Functional Programming Patterns
- Flask開發Web搜索引擎入門與實戰
- Processing開發實戰