Skip to content

Commit 04a53b8

Browse files
committed
Add Pod creation example in k8s.io/docs/concepts/workloads/pods/
1 parent df256aa commit 04a53b8

File tree

1 file changed

+15
-0
lines changed
  • content/en/docs/concepts/workloads/pods

1 file changed

+15
-0
lines changed

content/en/docs/concepts/workloads/pods/_index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@ with shared namespaces and shared filesystem volumes.
4848

4949
## Using Pods
5050

51+
The following is an example of a Pod which consists of a container running the image `nginx:1.14.2`.
52+
53+
{{< codenew file="pods/simple-pod.yaml" >}}
54+
55+
To create the Pod shown above, run the following command:
56+
```shell
57+
kubectl apply -f https://k8s.io/examples/pods/simple-pod.yaml
58+
```
59+
60+
Pods are generally not created directly and are created using workload resources.
61+
See [Working with Pods](#working-with-pods) for more information on how Pods are used
62+
with workload resources.
63+
64+
### Workload resources for managing pods
65+
5166
Usually you don't need to create Pods directly, even singleton Pods. Instead, create them using workload resources such as {{< glossary_tooltip text="Deployment"
5267
term_id="deployment" >}} or {{< glossary_tooltip text="Job" term_id="job" >}}.
5368
If your Pods need to track state, consider the

0 commit comments

Comments
 (0)