Cloud and Container Basics

In Kubernetes, which of the following is the smallest unit that is deployed and managed, grouping one or more containers that share the same IP address and volumes?

  1. ANode
  2. BService
  3. CPod
Show answer and explanation

Answer: C. Pod

A Pod is the smallest unit Kubernetes places and runs. The containers in it share a network namespace, so they can talk to each other over localhost and can use the same volumes. Usually one Pod holds one application container, and helper containers, for example for forwarding logs, are sometimes added to the same Pod. Pods are disposable and get a new IP address when recreated, so they are normally managed indirectly through a Deployment or similar. A node is a machine on which Pods run, and a Service is a stable endpoint for several Pods.

  • A. A node is a physical or virtual machine that runs Pods. Many Pods run on one node.
  • B. A Service lets clients connect to several Pods selected by labels through a stable name and address.
  • C. Correct. The containers in a Pod share the network and volumes.
Practice this topic Back to topic

Books on Cloud and Container Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Cloud and Container Basics questions

  1. In Kubernetes, a Deployment with replicas: 3 is running three Pods. Which of the following correctly describes what happens when one of these Pods is deleted with kubectl delete pod?
  2. In a Kubernetes Deployment, the container image in the Pod template is changed to a new version. Which of the following correctly describes what happens with the default update strategy (RollingUpdate)?
  3. A Deployment with replicas: 10 has the rolling update settings maxSurge: 25% and maxUnavailable: 25%. Which of the following correctly gives the upper limit of the total number of Pods and the lower limit of the number of available Pods during an update?
  4. In Kubernetes, a Pod gets a different IP address every time it is recreated. Which of the following resources lets other applications connect, through a name and address that do not change, to several Pods selected by labels, with the load spread across them?
  5. In a Kubernetes cluster, HTTPS requests arriving for one host name should be routed to the api Service if the path begins with /api, and to the web Service otherwise. Which of the following resources is suitable for defining this routing rule?