Skip to content
Permalink
Browse files

Update kubernetes-objects.md (#16747)

Make `spec` one of the required items.
  • Loading branch information...
xin-styra authored and k8s-ci-robot committed Oct 9, 2019
1 parent cfd0a2d commit cd1d62ab0f5d5e174ac890ef695673793a3c601f
Showing with 2 additions and 1 deletion.
  1. +2 −1 content/en/docs/concepts/overview/working-with-objects/kubernetes-objects.md
@@ -62,8 +62,9 @@ In the `.yaml` file for the Kubernetes object you want to create, you'll need to
* `apiVersion` - Which version of the Kubernetes API you're using to create this object
* `kind` - What kind of object you want to create
* `metadata` - Data that helps uniquely identify the object, including a `name` string, `UID`, and optional `namespace`
* `spec` - What state you desire for the object

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/reference/generated/kubernetes-api/{{< param "version" >}}/) can help you find the spec format for all of the objects you can create using Kubernetes.
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.
For example, the `spec` format for a `Pod` can be found
[here](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#podspec-v1-core),
and the `spec` format for a `Deployment` can be found

0 comments on commit cd1d62a

Please sign in to comment.
You can’t perform that action at this time.