From 8b244b72941ebecb0c360367cd0817c280e7aeee Mon Sep 17 00:00:00 2001 From: Qiming Teng Date: Thu, 4 Jan 2018 12:54:09 +0800 Subject: [PATCH] Add links to spec format in api reference This PR adds sample links to the `spec` field of API objects. Closes: #5205 --- .../overview/working-with-objects/kubernetes-objects.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/concepts/overview/working-with-objects/kubernetes-objects.md b/docs/concepts/overview/working-with-objects/kubernetes-objects.md index 26cd5ac891..71133af5da 100644 --- a/docs/concepts/overview/working-with-objects/kubernetes-objects.md +++ b/docs/concepts/overview/working-with-objects/kubernetes-objects.md @@ -57,6 +57,10 @@ In the `.yaml` file for the Kubernetes object you want to create, you'll need to * `metadata` - Data that helps uniquely identify the object, including a `name` string, UID, and optional `namespace` You'll also need to provide the object `spec` field. The precise format of the object `spec` is different for every Kubernetes object, and contains nested fields specific to that object. The [Kubernetes API reference](/docs/concepts/overview/kubernetes-api/) can help you find the spec format for all of the objects you can create using Kubernetes. +For example, the `spec` format for a `Pod` object can be found +[here](/docs/reference/generated/kubernetes-api/{{page.version}}/#podspec-v1-core), +and the `spec` format for a `Deployment` object can be found +[here](/docs/reference/generated/kubernetes-api/{{page.version}}/#deploymentspec-v1-apps). {% endcapture %}