Skip to content

Commit c91e60c

Browse files
authored
Merge pull request #29231 from sftim/20210804_update_link_to_api_reference_working_with_objects
Update link from Working With Objects to Kubernetes API Reference
2 parents ad33193 + cba4f57 commit c91e60c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

content/en/docs/concepts/overview/working-with-objects/kubernetes-objects.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,11 @@ In the `.yaml` file for the Kubernetes object you want to create, you'll need to
8181
* `metadata` - Data that helps uniquely identify the object, including a `name` string, `UID`, and optional `namespace`
8282
* `spec` - What state you desire for the object
8383

84-
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/reference/generated/kubernetes-api/{{< param "version" >}}/) can help you find the spec format for all of the objects you can create using Kubernetes.
85-
For example, the `spec` format for a Pod can be found in
86-
[PodSpec v1 core](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#podspec-v1-core),
87-
and the `spec` format for a Deployment can be found in
88-
[DeploymentSpec v1 apps](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#deploymentspec-v1-apps).
84+
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](https://kubernetes.io/docs/reference/kubernetes-api/) can help you find the spec format for all of the objects you can create using Kubernetes.
8985

86+
For example, the reference for Pod details the [`spec` field](/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec)
87+
for a Pod in the API, and the reference for Deployment details the [`spec` field](/docs/reference/kubernetes-api/workload-resources/deployment-v1/#DeploymentSpec) for Deployents.
88+
In those API reference pages you'll see mention of PodSpec and DeploymentSpec. These names are implementation details of the Golang code that Kubernetes uses to implement its API.
9089

9190

9291
## {{% heading "whatsnext" %}}

0 commit comments

Comments
 (0)