Kubernets Pods

Pod is the basic building block of kuberetes, the smallest deployable unit in the kubernetes that can be created and managed.

Pod is group of one or more containers(such as Docker containers) with shared storage/network, and specification for how to run the containers.

A pod represent a single instance of an application in kubernetes.

Here is manifest for a Pod:

Create a pod:

verify the pod is running:

Edit pod configuration:

Delete a pod:

Pod Lifecycle

Here are the possible values for STATUS:

Pending

The Pod has been accpeted by the Kubernetes system, but one or more of the Container images has not been created. This includeds time before being scheduled as well as time spent donwloading images over the network, which could take a while.

Running

The Pod has been bound to a node , and all of the Containers have been created. At least one container is still running, or is in the process of starting or restarting.

Succeded

All Containers in the POd have terminated in success, and will not be restarted.

Failed

All Containers in the Pod have terminated, and at least one Container has terminated in failure. That is, the container either exited with non-zero status or was terminated by the system.

Unkown

For some reason the state of the pod could not be obtained, typicall due to an error in communicating with the host of the pod.

Completed

The pod has run to compltion as there is nothing to keep it running eg. Completed jobs.

CrashLoopBackOff

This means that one of the contianers in the pod has exited unexpectedly , and perhaps with non-zero error code even after restarting due to restart policy.




要查看或添加评论,请登录

Sandeep Kathar的更多文章

  • What is Bandwidth ?

    What is Bandwidth ?

    Streaming a movie or playing a multiplayer game requires reliable, fast connections. To support these “high bandwidth”…

  • Linux Distributions

    Linux Distributions

    A Linux distribution (distro) is an operating system made from a software collection, which is based upon the Linux…

    1 条评论
  • Linux Architecture

    Linux Architecture

    The architecture of Linux can be divided into four levels of functionality as shown in below figure. Hardware: It is a…

  • What is Linux ?

    What is Linux ?

    Like Windows and Mac OS, Linux is the best know and most used open-source operating system. Linux is multi-tasking and…

  • "The Battle of Operating Systems: Exploring the Differences Between Linux and Windows"

    "The Battle of Operating Systems: Exploring the Differences Between Linux and Windows"

    Linux vs Window Manufacturer / developer Linux : Linux Torvalds and the Linux community. Window : Microsoft Price Linux…

  • Exploring the Linux File System: A Tree-Structured

    Exploring the Linux File System: A Tree-Structured

    Linux file system is a hierarchically tree structured. In the Filesystem Hierarchy Standard (FHS), all files and…

  • What is a podman ?

    What is a podman ?

    Podman is an open-source, daemonless container management solution meant to be an alternative to Docker. Red Hat…

社区洞察

其他会员也浏览了