Skip to content

Latest commit

 

History

History
441 lines (378 loc) · 10.9 KB

containers.md

File metadata and controls

441 lines (378 loc) · 10.9 KB
The VerticalPodAutoscaler API Object adjusts the _____ of a container. resource requests and limits
A container is in the Terminated state when it has _____. completed execution, with or without success
If the node where a Pod is running has enough of a resource available, a container is allowed to use more resources than its resource _____. requests
A container's available ImagePullPolicy options are Always, Never and _____ IfNotPresent (default)
Default _____ for containers can be set on a namespace via a LimitRange requests/limits
A container's probes will not run until its _____Probe succeeds. startup
"Readiness gates are determined by the current state of a Pod's .status._____ fields. If the field isn't found, the status of the condition defaults to ""False""" conditions
A _____Probe indicates whether a container is ready to service requests. readiness
To troubleshoot a Container's bug, inspect its state or run some arbitrary commands, you may execute an _____ Container inside the enclosing Pod, from which further commands can be ran. ephemeral
The preStop hook is executed before a container enters _____ state. Terminated
Do ephemeral containers guarantee execution? _____ No
If the startupProbe fails, the container is killed by the kubelet, then subjected to the container's _____ policy. restart
A container's process is stuck, consuming 100% of its CPU and it won't reply to Readiness probes. If it doesn't have a _____, it will keep infinitely consuming resources, while serving no requests. livenessProbe
Is running backups a valid use case for a sidecar container inside a Pod? _____ Yes
A _____Probe restarts your container when it's stuck, for example when it's running an infinite loop, where there is no way for the process to seek help externally, or even exit by itself. liveness
When a container's livenessProbe and readinessProbe point to the same endpoint, the container will be detached from its Service and deleted at the same time. Is this fine? _____ No - it will cause connection drops because the container is given no time to drain its current connections before being deleted.
A process with one thread cannot consume more than _____ per second. The more threads, the less time it takes to consume it. 1 CPU second
A container's available ImagePullPolicy options are _____, Never and IfNotPresent (default) Always
Containers run with unbounded compute resources on a Kubernetes cluster by default. To alleviate this, using _____, LimitRanges and ResourceQuotas is recommended. Limits
A container's available ImagePullPolicy options are Always, _____ and IfNotPresent (default) Never
The _____ hook is executed immediately after a Container is Created. postStart
Containers run with unbounded compute resources on a Kubernetes cluster by default. To alleviate this, using Limits, _____ and ResourceQuotas is recommended. LimitRanges
A _____ is used for recovery when a Container's process is not responsive. livenessProbe
To find why a container is in Terminated state, check its state's Reason and _____ fields. Exit Code
A pod or container could monopolize all available resources in a cluster. A _____ API object constrains resource allocations to pods or containers in a namespace. LimitRange
When a container's livenessProbe fails, the container is _____ by the kubelet, then subjected to the container's restart policy. killed
Is running authentication proxies a valid use case for a sidecar container inside a Pod? _____ Yes
A container is in _____ state when it is pulling images, applying secrets, etc. Waiting
To find why a container is in Terminated state, check its state's _____ and Exit Code fields. Reason
Do ephemeral containers have guaranteed resources? _____ No
If you don't set limits for a container, they may be inferred from the namespace's _____, if set. LimitRange
A container's _____ field allows you to store credentials for a container image registry. imagePullSecrets
The _____ hook is executed before a container enters Terminated state. preStop
Default requests/limits for containers can be set on a namespace via a _____ LimitRange
A container's available _____ options are Always, Never and IfNotPresent (default) ImagePullPolicy
To define default CPU/memory limit and requests for containers started with no CPU/memory settings in their specs, you could use _____. LimitRange
If a Pod's _____Probe fails, the Pod's IP address is removed all Services that match the Pod. readiness
If a container should only be sent traffic when a probe succeeds, the _____Probe can be used achieve this behaviour. readiness
Containers run with _____ compute resources on a Kubernetes cluster by default. To alleviate this, using Limits, LimitRanges and ResourceQuotas is recommended. unbounded
Container probes result in _____ if the container passed the diagnostic, Failure if it hasn't. If the diagnostic failed altogether, the probe's result is Unknown. Success
When a process in a container tries to consume more than the allowed amount of memory, the system kernel terminates the process that attempted the allocation, with an _____ error OOM (Out of Memory)
A container is in the _____ state when it has completed execution, with or without success. Terminated
Container probes result in Success if the container passed the diagnostic, _____ if it hasn't. If the diagnostic failed altogether, the probe's result is Unknown. Failure
The _____ API Object adjusts the resource requests and limits of a container. VerticalPodAutoscaler
Does a Pod's restartPolicy apply to all its containers? _____ Yes
When a container's livenessProbe fails, the container is killed by the kubelet, then subjected to the container's _____ policy. restart
The postStart hook is executed immediately after a Container is _____. Created
A container is not allowed to use more than its resource _____. limits
A container's _____Probe indicates whether the application in the container has started. startup
To find out why a container is in Waiting state, you can check its state's _____ field Reason
If the _____Probe fails, the container is killed by the kubelet, then subjected to the container's restart policy. startup
Container probes result in Success if the container passed the diagnostic, Failure if it hasn't. If the diagnostic failed altogether, the probe's result is _____. Unknown
A container has no livenessProbe, readinessProbe nor startupProbe. With this configuration, the result on each of these probes will be _____. Success!
Will an ephemeral container ever automatically restart? _____ No
A container is in the _____ state when it is executing without issues. Running
When a container's _____Probe fails, the container is killed by the kubelet, then subjected to the container's restart policy. liveness
"Readiness gates are determined by the current state of a Pod's .status.conditions fields. If the field isn't found, the status of the condition defaults to ""_____""" False
"A temporary ""_____"" container may be ran in an existing Pod to accomplish user-initiated actions such as troubleshooting and inspecting services." ephemeral
"A container without a readinessProbe is considered ready for traffic once it starts. The problem with this is that _____" the application inside the container might need more time to start than its enclosing container. Requests sent to the container will fail, because the container was deemed ""Ready"" before the application actually started.
When a process in a container tries to consume more than the allowed amount of memory, the system kernel _____ the process that attempted the allocation, with an OOM (Out of Memory) error terminates
"The ""_____"" container inside each Pod reserves and holds the network namespace (netns), enabling containers to communicate with each other and retaining the Pod's IP address." pause
Is running database synchronisation a valid use case for a sidecar container inside a Pod? _____ Yes
Containers run with unbounded compute resources on a Kubernetes cluster by default. To alleviate this, using Limits, LimitRanges and _____ is recommended. ResourceQuotas