Pod Spec
Podfile is in JSON format. A basic sample looks like the following:
Sections
id
: the identifier (and internal hostname) of the Podhostname
: the hostname of the Podresources
: specify the number of CPU cores and RAM size allocated to the HyperVM instancecontainers
: a group of containers to run in the Pod. Since 0.8, we could create a Pod with empty containers list, and add containers later.portmappings
: the port mapping rules, and the portmappings could beadd
/remove
during runtime with API or command line tools. The fields:containerPort
andhostPort
could be a single port or a range, such as "8000-8080"; and if thecontainerPort
is a range, thehostPort
should be a range in same size;protocol
could betcp
orudp
.
files
: files to be present in the containersvolumes
: volumes to mount from the host to the containers
Last updated