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

Representing Kubernetes resources

Kubernetes resources can generally be represented as either a JSON or YAML data structure. Kubernetes is specifically built so that you can save these files, and when you want to run your software, you can use a command such as kubectl deploy and provide the definitions you've created previously, and it uses that to run your software. In our next chapter, we will start to show specific examples of these resources and build them up for our use.

As we get into the examples in the next, and future chapters, we will use YAML to describe our resources and request data through kubectl back in JSON format. All of these data structures are formally defined for each version of Kubernetes, along with the REST APIs that Kubernetes provides to manipulate them. The formal definitions of all Kubernetes resources are maintained with OpenAPI (also known as Swagger) in source code control, and can be viewed at https://github.com/kubernetes/kubernetes/tree/master/api/swagger-spec.

主站蜘蛛池模板: 大同市| 延庆县| 惠州市| 响水县| 都昌县| 隆昌县| 临武县| 石泉县| 通化市| 怀仁县| 洪洞县| 高阳县| 太保市| 宜昌市| 墨竹工卡县| 平远县| 安化县| 双柏县| 台南县| 沙洋县| 潢川县| 绥宁县| 桂阳县| 开鲁县| 乌拉特中旗| 淮安市| 洪洞县| 介休市| 富宁县| 伊金霍洛旗| 九龙县| 武乡县| 杭锦后旗| 当涂县| 友谊县| 尉氏县| 汪清县| 怀来县| 宁夏| 五大连池市| 碌曲县|