Pods are the smallest deployable units of computing that you can create and manage in Kubernetes. They are groups of one or more containers.
To deploy a Kubernetes Pod the following requirements must be met:
- A namespace must be specified, and the user must be a member of the project to which the specified namespace is bound.
- Both resource and request limits must be specified unless the default values have been set in
field.cattle.io/containerDefaultResourceLimit. See the previous section.
- The request limit (reservation) cannot be higher than the limit values.
- Enough resources must be available in the project.
An error message will be generated if any of the requirements above are not met.
Below is an example of a Pod YAML resource file:
Remember to set your default namespace before continuing.
This is also used to install other Kubernetes objects using YAML files
Read the standard output of the pod. The
-f option follows any new output.
To access a web server on the pod, running at port 80
Then open http://localhost:8080 with your web browser.
Detailed pod specification