什么是Kubernetes清单? [英] What is a Kubernetes Manifest?
问题描述
我在网上搜索过,大多数链接似乎都提到了清单,而没有实际解释它们是什么.如果有人可以向我解释基础知识,我将不胜感激.
I've searched online and most links seem to mention manifests without actually explaining what they are. I would be grateful if someone could explain the basics to me.
推荐答案
它基本上是Kubernetes的"API对象描述".配置文件可以包含一个或多个. (即Deployment,ConfigMap,Secret,DaemonSet等)
It's basically a Kubernetes "API object description". A config file can include one or more of these. (i.e. Deployment, ConfigMap, Secret, DaemonSet, etc)
根据此:
以JSON或YAML格式指定Kubernetes API对象.
Specification of a Kubernetes API object in JSON or YAML format.
清单用于指定应用清单时Kubernetes将维护的对象的所需状态.每个配置文件可以包含多个清单.
A manifest specifies the desired state of an object that Kubernetes will maintain when you apply the manifest. Each configuration file can contain multiple manifests.
以及该文档的先前版本:
And a previous version of the documentation:
配置文件-这些文件以YAML或JSON格式编写,以Kubernetes API对象的形式描述了应用程序的所需状态.一个文件可以包含一个或多个API对象描述(清单).
Configuration files - Written in YAML or JSON, these files describe the desired state of your application in terms of Kubernetes API objects. A file can include one or more API object descriptions (manifests).
这篇关于什么是Kubernetes清单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!