理解Kubernetes对象


title: 理解Kubernetes对象
english_title: understanding-kubernetes-object
date: 2020-11-2 23:00:0
tags:

  • 杂项

categories:

  • 杂项

Kubernetes集群内,对象是持久化的实体。Kubernetes使用对象来表征集群的状态,对象表述了应用的运行状况、应用可用的资源、应用的运行策略(重启、升级、容错)。_
A Kubernetes object is a “record of intent”–once you create the object, the Kubernetes system will constantly work to ensure that object exists. By creating an object, you’re effectively telling the Kubernetes system what you want your cluster’s workload to look like; this is your cluster’s desired state.
To work with Kubernetes objects–whether to create, modify, or delete them–you’ll need to use the Kubernetes API. When you use the kubectl command-line interface, for example, the CLI makes the necessary Kubernetes API calls for you. You can also use the Kubernetes API directly in your own programs using one of the Client Libraries.

Object Spec and Status