Pods - Kubernetes - 0 views
-
Pods are the smallest deployable units of computing
-
A Pod (as in a pod of whales or pea pod) is a group of one or more containersA lightweight and portable executable image that contains software and all of its dependencies. (such as Docker containers), with shared storage/network, and a specification for how to run the containers.
- ...32 more annotations...
-
being executed on the same physical or virtual machine would mean being executed on the same logical host.
-
The shared context of a Pod is a set of Linux namespaces, cgroups, and potentially other facets of isolation
-
Containers in different Pods have distinct IP addresses and can not communicate by IPC without special configuration. These containers usually communicate with each other via Pod IP addresses.
-
Applications within a Pod also have access to shared volumesA directory containing data, accessible to the containers in a pod. , which are defined as part of a Pod and are made available to be mounted into each application’s filesystem.
-
a Pod is modelled as a group of Docker containers with shared namespaces and shared filesystem volumes
-
Pods are created, assigned a unique ID (UID), and scheduled to nodes where they remain until termination (according to restart policy) or deletion.
-
When something is said to have the same lifetime as a Pod, such as a volume, that means that it exists as long as that Pod (with that UID) exists.
-
The applications in a Pod all use the same network namespace (same IP and port space), and can thus “find” each other and communicate using localhost
-
Containers within the Pod see the system hostname as being the same as the configured name for the Pod.
-
Volumes enable data to survive container restarts and to be shared among the applications within the Pod.
-
When a user requests deletion of a Pod, the system records the intended grace period before the Pod is allowed to be forcefully killed, and a TERM signal is sent to the main process in each container.
-
Once the grace period has expired, the KILL signal is sent to those processes, and the Pod is then deleted from the API server.
-
Pod is removed from endpoints list for service, and are no longer considered part of the set of running Pods for replication controllers.
-
You must specify an additional flag --force along with --grace-period=0 in order to perform force deletions.
-
Force deletion of a Pod is defined as deletion of a Pod from the cluster state and etcd immediately.
-
Processes within the container get almost the same privileges that are available to processes outside a container.