Question: What is Note:?

Answer: U s e   t h e   n u m b e r   o n e   ( 1 . )   f o r   o r d e r e d   l i s t s .   U s e   ( + ) ,   ( * ) ,   o r   ( - )   f o r   u n o r d e r e d   l i s t s .   L e a v e   a   b l a n k   l i n e   a f t e r   e a c h   l i s t .   I n d e n t   n e s t e d   l i s t s   w i t h   f o u r   s p a c e s   ( f o r   e x a m p l e ,   ⋅ ⋅ ⋅ ⋅ ) .   L i s t   i t e m s   m a y   c o n s i s t   o f   m u l t i p l e   p a r a g r a p h s .   E a c h   s u b s e q u e n t   p a r a g r a p h   i n   a   l i s t   i t e m   m u s t   b e   i n d e n t e d   b y   e i t h e r   f o u r   s p a c e s   o r   o n e   t a b .


Question: What is Tables?

Answer: T h e   s e m a n t i c   p u r p o s e   o f   a   d a t a   t a b l e   i s   t o   p r e s e n t   t a b u l a r   d a t a .   S i g h t e d   u s e r s   c a n   q u i c k l y   s c a n   t h e   t a b l e   b u t   a   s c r e e n   r e a d e r   g o e s   t h r o u g h   l i n e   b y   l i n e .   A   t a b l e   c a p t i o n   i s   u s e d   t o   c r e a t e   a   d e s c r i p t i v e   t i t l e   f o r   a   d a t a   t a b l e .   A s s i s t i v e   t e c h n o l o g i e s   ( A T )   u s e   t h e   H T M L   t a b l e   c a p t i o n   e l e m e n t   t o   i d e n t i f y   t h e   t a b l e   c o n t e n t s   t o   t h e   u s e r   w i t h i n   t h e   p a g e   s t r u c t u r e .   A d d   t a b l e   c a p t i o n s   u s i n g   H u g o   s h o r t c o d e s   f o r   t a b l e s .


Question: What is Content best practices?

Answer: T h i s   s e c t i o n   c o n t a i n s   s u g g e s t e d   b e s t   p r a c t i c e s   f o r   c l e a r ,   c o n c i s e ,   a n d   c o n s i s t e n t   c o n t e n t .


Question: What is Use present tense?

Answer: E x c e p t i o n :   U s e   f u t u r e   o r   p a s t   t e n s e   i f   i t   i s   r e q u i r e d   t o   c o n v e y   t h e   c o r r e c t   m e a n i n g .


Question: What is Use active voice?

Answer: E x c e p t i o n :   U s e   p a s s i v e   v o i c e   i f   a c t i v e   v o i c e   l e a d s   t o   a n   a w k w a r d   c o n s t r u c t i o n .


Question: What is Use simple and direct language?

Answer: U s e   s i m p l e   a n d   d i r e c t   l a n g u a g e .   A v o i d   u s i n g   u n n e c e s s a r y   p h r a s e s ,   s u c h   a s   s a y i n g   " p l e a s e . "


Question: What is Avoid Latin phrases?

Answer: P r e f e r   E n g l i s h   t e r m s   o v e r   L a t i n   a b b r e v i a t i o n s .   E x c e p t i o n :   U s e   " e t c . "   f o r   e t   c e t e r a .


Question: What is Avoid using "we"?

Answer: U s i n g   " w e "   i n   a   s e n t e n c e   c a n   b e   c o n f u s i n g ,   b e c a u s e   t h e   r e a d e r   m i g h t   n o t   k n o w   w h e t h e r   t h e y ' r e   p a r t   o f   t h e   " w e "   y o u ' r e   d e s c r i b i n g .


Question: What is Avoid jargon and idioms?

Answer: S o m e   r e a d e r s   s p e a k   E n g l i s h   a s   a   s e c o n d   l a n g u a g e .   A v o i d   j a r g o n   a n d   i d i o m s   t o   h e l p   t h e m   u n d e r s t a n d   b e t t e r .


Question: What is Avoid statements about the future?

Answer: A v o i d   m a k i n g   p r o m i s e s   o r   g i v i n g   h i n t s   a b o u t   t h e   f u t u r e .   I f   y o u   n e e d   t o   t a l k   a b o u t   a n   a l p h a   f e a t u r e ,   p u t   t h e   t e x t   u n d e r   a   h e a d i n g   t h a t   i d e n t i f i e s   i t   a s   a l p h a   i n f o r m a t i o n .   A n   e x c e p t i o n   t o   t h i s   r u l e   i s   d o c u m e n t a t i o n   a b o u t   a n n o u n c e d   d e p r e c a t i o n s   t a r g e t i n g   r e m o v a l   i n   f u t u r e   v e r s i o n s .   O n e   e x a m p l e   o f   d o c u m e n t a t i o n   l i k e   t h i s   i s   t h e   D e p r e c a t e d   A P I   m i g r a t i o n   g u i d e .


Question: What is Avoid statements that will soon be out of date?

Answer: A v o i d   w o r d s   l i k e   " c u r r e n t l y "   a n d   " n e w . "   A   f e a t u r e   t h a t   i s   n e w   t o d a y   m i g h t   n o t   b e   c o n s i d e r e d   n e w   i n   a   f e w   m o n t h s .


Question: What is Avoid words that assume a specific level of understanding?

Answer: A v o i d   w o r d s   s u c h   a s   " j u s t " ,   " s i m p l y " ,   " e a s y " ,   " e a s i l y " ,   o r   " s i m p l e " .   T h e s e   w o r d s   d o   n o t   a d d   v a l u e .


Question: What is EditorConfig file?

Answer: T h e   K u b e r n e t e s   p r o j e c t   m a i n t a i n s   a n   E d i t o r C o n f i g   f i l e   t h a t   s e t s   c o m m o n   s t y l e   p r e f e r e n c e s   i n   t e x t   e d i t o r s   s u c h   a s   V S   C o d e .   Y o u   c a n   u s e   t h i s   f i l e   i f   y o u   w a n t   t o   e n s u r e   t h a t   y o u r   c o n t r i b u t i o n s   a r e   c o n s i s t e n t   w i t h   t h e   r e s t   o f   t h e   p r o j e c t .   T o   v i e w   t h e   f i l e ,   r e f e r   t o   . e d i t o r c o n f i g   i n   t h e   r e p o s i t o r y   r o o t .


Question: What is What's next?

Answer: L e a r n   a b o u t   w r i t i n g   a   n e w   t o p i c . L e a r n   a b o u t   u s i n g   p a g e   t e m p l a t e s . L e a r n   a b o u t   c u s t o m   h u g o   s h o r t c o d e s . L e a r n   a b o u t   c r e a t i n g   a   p u l l   r e q u e s t .


Question: What is Pod Lifecycle?

Answer: Pod LifecycleThis page describes the lifecycle of a Pod. Pods follow a defined lifecycle, starting in the Pending phase, moving through Running if at least one of its primary containers starts OK, and then through either the Succeeded or Failed phases depending on whether any container in the Pod terminated in failure.Like individual application containers, Pods are considered to be relatively ephemeral (rather than durable) entities. Pods are created, assigned a unique ID (UID), and scheduled to run on nodes where they remain until termination (according to restart policy) or deletion. If a Node dies, the Pods running on (or scheduled to run on) that node are marked for deletion. The control plane marks the Pods for removal after a timeout period.Pod lifetimeWhilst a Pod is running, the kubelet is able to restart containers to handle some kind of faults. Within a Pod, Kubernetes tracks different container states and determines what action to take to make the Pod healthy again.In the Kubernetes API, Pods have both a specification and an actual status. The status for a Pod object consists of a set of Pod conditions. You can also inject custom readiness information into the condition data for a Pod, if that is useful to your application.Pods are only scheduled once in their lifetime; assigning a Pod to a specific node is called binding, and the process of selecting which node to use is called scheduling. Once a Pod has been scheduled and is bound to a node, Kubernetes tries to run that Pod on the node. The Pod runs on that node until it stops, or until the Pod is terminated; if Kubernetes isn't able to start the Pod on the selected node (for example, if the node crashes before the Pod starts), then that particular Pod never starts.You can use Pod Scheduling Readiness to delay scheduling for a Pod until all its scheduling gates are removed. For example, you might want to define a set of Pods but only trigger scheduling once all the Pods have been created.Pods and fault recoveryIf one of the containers in the Pod fails, then Kubernetes may try to restart that specific container. Read How Pods handle problems with containers to learn more.Pods can however fail in a way that the cluster cannot recover from, and in that case Kubernetes does not attempt to heal the Pod further; instead, Kubernetes deletes the Pod and relies on other components to provide automatic healing.If a Pod is scheduled to a node and that node then fails, the Pod is treated as unhealthy and Kubernetes eventually deletes the Pod. A Pod won't survive an eviction due to a lack of resources or Node maintenance.Kubernetes uses a higher-level abstraction, called a controller, that handles the work of managing the relatively disposable Pod instances.A given Pod (as defined by a UID) is never "rescheduled" to a different node; instead, that Pod can be replaced by a new, near-identical Pod. If you make a replacement Pod, it can even have same name (as in .metadata.name) that the old Pod ha


Question: How does Pod Lifecycle work?

Answer: Pod LifecycleThis page describes the lifecycle of a Pod. Pods follow a defined lifecycle, starting in the Pending phase, moving through Running if at least one of its primary containers starts OK, and then through either the Succeeded or Failed phases depending on whether any container in the Pod terminated in failure.Like individual application containers, Pods are considered to be relatively ephemeral (rather than durable) entities. Pods are created, assigned a unique ID (UID), and scheduled to run on nodes where they remain until termination (according to restart policy) or deletion. If a Node dies, the Pods running on (or scheduled to run on) that node are marked for deletion. The control plane marks the Pods for removal after a timeout period.Pod lifetimeWhilst a Pod is running, the kubelet is able to restart containers to handle some kind of faults. Within a Pod, Kubernetes tracks different container states and determines what action to take to make the Pod healthy again.In the Kubernetes API, Pods have both a specification and an actual status. The status for a Pod object consists of a set of Pod conditions. You can also inject custom readiness information into the condition data for a Pod, if that is useful to your application.Pods are only scheduled once in their lifetime; assigning a Pod to a specific node is called binding, and the process of selecting which node to use is called scheduling. Once a Pod has been scheduled and is bound to a node, Kubernetes tries to run that Pod on the node. The Pod runs on that node until it stops, or until the Pod is terminated; if Kubernetes isn't able to start the Pod on the selected node (for example, if the node crashes before the Pod starts), then that particular Pod never starts.You can use Pod Scheduling Readiness to delay scheduling for a Pod until all its scheduling gates are removed. For example, you might want to define a set of Pods but only trigger scheduling once all the Pods have been created.Pods and fault recoveryIf one of the containers in the Pod fails, then Kubernetes may try to restart that specific container. Read How Pods handle problems with containers to learn more.Pods can however fail in a way that the cluster cannot recover from, and in that case Kubernetes does not attempt to heal the Pod further; instead, Kubernetes deletes the Pod and relies on other components to provide automatic healing.If a Pod is scheduled to a node and that node then fails, the Pod is treated as unhealthy and Kubernetes eventually deletes the Pod. A Pod won't survive an eviction due to a lack of resources or Node maintenance.Kubernetes uses a higher-level abstraction, called a controller, that handles the work of managing the relatively disposable Pod instances.A given Pod (as defined by a UID) is never "rescheduled" to a different node; instead, that Pod can be replaced by a new, near-identical Pod. If you make a replacement Pod, it can even have same name (as in .metadata.name) that the old Pod ha


Question: When would you use Pod Lifecycle?

Answer: Pod LifecycleThis page describes the lifecycle of a Pod. Pods follow a defined lifecycle, starting in the Pending phase, moving through Running if at least one of its primary containers starts OK, and then through either the Succeeded or Failed phases depending on whether any container in the Pod terminated in failure.Like individual application containers, Pods are considered to be relatively ephemeral (rather than durable) entities. Pods are created, assigned a unique ID (UID), and scheduled to run on nodes where they remain until termination (according to restart policy) or deletion. If a Node dies, the Pods running on (or scheduled to run on) that node are marked for deletion. The control plane marks the Pods for removal after a timeout period.Pod lifetimeWhilst a Pod is running, the kubelet is able to restart containers to handle some kind of faults. Within a Pod, Kubernetes tracks different container states and determines what action to take to make the Pod healthy again.In the Kubernetes API, Pods have both a specification and an actual status. The status for a Pod object consists of a set of Pod conditions. You can also inject custom readiness information into the condition data for a Pod, if that is useful to your application.Pods are only scheduled once in their lifetime; assigning a Pod to a specific node is called binding, and the process of selecting which node to use is called scheduling. Once a Pod has been scheduled and is bound to a node, Kubernetes tries to run that Pod on the node. The Pod runs on that node until it stops, or until the Pod is terminated; if Kubernetes isn't able to start the Pod on the selected node (for example, if the node crashes before the Pod starts), then that particular Pod never starts.You can use Pod Scheduling Readiness to delay scheduling for a Pod until all its scheduling gates are removed. For example, you might want to define a set of Pods but only trigger scheduling once all the Pods have been created.Pods and fault recoveryIf one of the containers in the Pod fails, then Kubernetes may try to restart that specific container. Read How Pods handle problems with containers to learn more.Pods can however fail in a way that the cluster cannot recover from, and in that case Kubernetes does not attempt to heal the Pod further; instead, Kubernetes deletes the Pod and relies on other components to provide automatic healing.If a Pod is scheduled to a node and that node then fails, the Pod is treated as unhealthy and Kubernetes eventually deletes the Pod. A Pod won't survive an eviction due to a lack of resources or Node maintenance.Kubernetes uses a higher-level abstraction, called a controller, that handles the work of managing the relatively disposable Pod instances.A given Pod (as defined by a UID) is never "rescheduled" to a different node; instead, that Pod can be replaced by a new, near-identical Pod. If you make a replacement Pod, it can even have same name (as in .metadata.name) that the old Pod ha


Question: What are the benefits of Pod Lifecycle?

Answer: Pod LifecycleThis page describes the lifecycle of a Pod. Pods follow a defined lifecycle, starting in the Pending phase, moving through Running if at least one of its primary containers starts OK, and then through either the Succeeded or Failed phases depending on whether any container in the Pod terminated in failure.Like individual application containers, Pods are considered to be relatively ephemeral (rather than durable) entities. Pods are created, assigned a unique ID (UID), and scheduled to run on nodes where they remain until termination (according to restart policy) or deletion. If a Node dies, the Pods running on (or scheduled to run on) that node are marked for deletion. The control plane marks the Pods for removal after a timeout period.Pod lifetimeWhilst a Pod is running, the kubelet is able to restart containers to handle some kind of faults. Within a Pod, Kubernetes tracks different container states and determines what action to take to make the Pod healthy again.In the Kubernetes API, Pods have both a specification and an actual status. The status for a Pod object consists of a set of Pod conditions. You can also inject custom readiness information into the condition data for a Pod, if that is useful to your application.Pods are only scheduled once in their lifetime; assigning a Pod to a specific node is called binding, and the process of selecting which node to use is called scheduling. Once a Pod has been scheduled and is bound to a node, Kubernetes tries to run that Pod on the node. The Pod runs on that node until it stops, or until the Pod is terminated; if Kubernetes isn't able to start the Pod on the selected node (for example, if the node crashes before the Pod starts), then that particular Pod never starts.You can use Pod Scheduling Readiness to delay scheduling for a Pod until all its scheduling gates are removed. For example, you might want to define a set of Pods but only trigger scheduling once all the Pods have been created.Pods and fault recoveryIf one of the containers in the Pod fails, then Kubernetes may try to restart that specific container. Read How Pods handle problems with containers to learn more.Pods can however fail in a way that the cluster cannot recover from, and in that case Kubernetes does not attempt to heal the Pod further; instead, Kubernetes deletes the Pod and relies on other components to provide automatic healing.If a Pod is scheduled to a node and that node then fails, the Pod is treated as unhealthy and Kubernetes eventually deletes the Pod. A Pod won't survive an eviction due to a lack of resources or Node maintenance.Kubernetes uses a higher-level abstraction, called a controller, that handles the work of managing the relatively disposable Pod instances.A given Pod (as defined by a UID) is never "rescheduled" to a different node; instead, that Pod can be replaced by a new, near-identical Pod. If you make a replacement Pod, it can even have same name (as in .metadata.name) that the old Pod ha


Question: What is Pod Lifecycle?

Answer: T h i s   p a g e   d e s c r i b e s   t h e   l i f e c y c l e   o f   a   P o d .   P o d s   f o l l o w   a   d e f i n e d   l i f e c y c l e ,   s t a r t i n g   i n   t h e   P e n d i n g   p h a s e ,   m o v i n g   t h r o u g h   R u n n i n g   i f   a t   l e a s t   o n e   o f   i t s   p r i m a r y   c o n t a i n e r s   s t a r t s   O K ,   a n d   t h e n   t h r o u g h   e i t h e r   t h e   S u c c e e d e d   o r   F a i l e d   p h a s e s   d e p e n d i n g   o n   w h e t h e r   a n y   c o n t a i n e r   i n   t h e   P o d   t e r m i n a t e d   i n   f a i l u r e .   L i k e   i n d i v i d u a l   a p p l i c a t i o n   c o n t a i n e r s ,   P o d s   a r e   c o n s i d e r e d   t o   b e   r e l a t i v e l y   e p h e m e r a l   ( r a t h e r   t h a n   d u r a b l e )   e n t i t i e s .   P o d s   a r e   c r e a t e d ,   a s s i g n e d   a   u n i q u e   I D   ( U I D ) ,   a n d   s c h e d u l e d   t o   r u n   o n   n o d e s   w h e r e   t h e y   r e m a i n   u n t i l   t e r m i n a t i o n   ( a c c o r d i n g   t o   r e s t a r t   p o l i c y )   o r   d e l e t i o n .   I f   a   N o d e   d i e s ,   t h e   P o d s   r u n n i n g   o n   ( o r   s c h e d u l e d   t o   r u n   o n )   t h a t   n o d e   a r e   m a r k e d   f o r   d e l e t i o n .   T h e   c o n t r o l   p l a n e   m a r k s   t h e   P o d s   f o r   r e m o v a l   a f t e r   a   t i m e o u t   p e r i o d .


Question: What is Pod lifetime?

Answer: W h i l s t   a   P o d   i s   r u n n i n g ,   t h e   k u b e l e t   i s   a b l e   t o   r e s t a r t   c o n t a i n e r s   t o   h a n d l e   s o m e   k i n d   o f   f a u l t s .   W i t h i n   a   P o d ,   K u b e r n e t e s   t r a c k s   d i f f e r e n t   c o n t a i n e r   s t a t e s   a n d   d e t e r m i n e s   w h a t   a c t i o n   t o   t a k e   t o   m a k e   t h e   P o d   h e a l t h y   a g a i n .   I n   t h e   K u b e r n e t e s   A P I ,   P o d s   h a v e   b o t h   a   s p e c i f i c a t i o n   a n d   a n   a c t u a l   s t a t u s .   T h e   s t a t u s   f o r   a   P o d   o b j e c t   c o n s i s t s   o f   a   s e t   o f   P o d   c o n d i t i o n s .   Y o u   c a n   a l s o   i n j e c t   c u s t o m   r e a d i n e s s   i n f o r m a t i o n   i n t o   t h e   c o n d i t i o n   d a t a   f o r   a   P o d ,   i f   t h a t   i s   u s e f u l   t o   y o u r   a p p l i c a t i o n .   P o d s   a r e   o n l y   s c h e d u l e d   o n c e   i n   t h e i r   l i f e t i m e ;   a s s i g n i n g   a   P o d   t o   a   s p e c i f i c   n o d e   i s   c a l l e d   b i n d i n g ,   a n d   t h e   p r o c e s s   o f   s e l e c t i n g   w h i c h   n o d e   t o   u s e   i s   c a l l e d   s c h e d u l i n g .   O n c e   a   P o d   h a s   b e e n   s c h e d u l e d   a n d   i s   b o u n d   t o   a   n o d e ,   K u b e r n e t e s   t r i e s   t o   r u n   t h a t   P o d   o n   t h e   n o d e .   T h e   P o d   r u n s   o n   t h a t   n o d e   u n t i l   i t   s t o p s ,   o r   u n t i l   t h e   P o d   i s   t e r m i n a t e d ;   i f   K u b e r n e t e s   i s n ' t   a b l e   t o   s t a r t   t h e   P o d   o n   t h e   s e l e c t e d   n o d e   ( f o r   e x a m p l e ,   i f   t h e   n o d e   c r a s h e s   b e f o r e   t h e   P o d   s t a r t s ) ,   t h e n   t h a t   p a r t i c u l a r   P o d   n e v e r   s t a r t s .   Y o u   c a n


Question: What is Pods and fault recovery?

Answer: I f   o n e   o f   t h e   c o n t a i n e r s   i n   t h e   P o d   f a i l s ,   t h e n   K u b e r n e t e s   m a y   t r y   t o   r e s t a r t   t h a t   s p e c i f i c   c o n t a i n e r .   R e a d   H o w   P o d s   h a n d l e   p r o b l e m s   w i t h   c o n t a i n e r s   t o   l e a r n   m o r e .   P o d s   c a n   h o w e v e r   f a i l   i n   a   w a y   t h a t   t h e   c l u s t e r   c a n n o t   r e c o v e r   f r o m ,   a n d   i n   t h a t   c a s e   K u b e r n e t e s   d o e s   n o t   a t t e m p t   t o   h e a l   t h e   P o d   f u r t h e r ;   i n s t e a d ,   K u b e r n e t e s   d e l e t e s   t h e   P o d   a n d   r e l i e s   o n   o t h e r   c o m p o n e n t s   t o   p r o v i d e   a u t o m a t i c   h e a l i n g .   I f   a   P o d   i s   s c h e d u l e d   t o   a   n o d e   a n d   t h a t   n o d e   t h e n   f a i l s ,   t h e   P o d   i s   t r e a t e d   a s   u n h e a l t h y   a n d   K u b e r n e t e s   e v e n t u a l l y   d e l e t e s   t h e   P o d .   A   P o d   w o n ' t   s u r v i v e   a n   e v i c t i o n   d u e   t o   a   l a c k   o f   r e s o u r c e s   o r   N o d e   m a i n t e n a n c e .   K u b e r n e t e s   u s e s   a   h i g h e r - l e v e l   a b s t r a c t i o n ,   c a l l e d   a   c o n t r o l l e r ,   t h a t   h a n d l e s   t h e   w o r k   o f   m a n a g i n g   t h e   r e l a t i v e l y   d i s p o s a b l e   P o d   i n s t a n c e s .   A   g i v e n   P o d   ( a s   d e f i n e d   b y   a   U I D )   i s   n e v e r   " r e s c h e d u l e d "   t o   a   d i f f e r e n t   n o d e ;   i n s t e a d ,   t h a t   P o d   c a n   b e   r e p l a c e d   b y   a   n e w ,   n e a r - i d e n t i c a l   P o d .   I f   y o u   m a k e   a   r e p l a c e m e n t   P o d ,   i t   c a n   e v e n   h a v e   s a m e   n a m e   ( a s   i n   . m e t a d a t a . n a m e )   t h a t   t h e   o l d   P o d   h a d ,   b u


Question: What is Associated lifetimes?

Answer: W h e n   s o m e t h i n g   i s   s a i d   t o   h a v e   t h e   s a m e   l i f e t i m e   a s   a   P o d ,   s u c h   a s   a   v o l u m e ,   t h a t   m e a n s   t h a t   t h e   t h i n g   e x i s t s   a s   l o n g   a s   t h a t   s p e c i f i c   P o d   ( w i t h   t h a t   e x a c t   U I D )   e x i s t s .   I f   t h a t   P o d   i s   d e l e t e d   f o r   a n y   r e a s o n ,   a n d   e v e n   i f   a n   i d e n t i c a l   r e p l a c e m e n t   i s   c r e a t e d ,   t h e   r e l a t e d   t h i n g   ( a   v o l u m e ,   i n   t h i s   e x a m p l e )   i s   a l s o   d e s t r o y e d   a n d   c r e a t e d   a n e w .


Question: What is Figure 1.?

Answer: A   m u l t i - c o n t a i n e r   P o d   t h a t   c o n t a i n s   a   f i l e   p u l l e r   s i d e c a r   a n d   a   w e b   s e r v e r .   T h e   P o d   u s e s   a n   e p h e m e r a l   e m p t y D i r   v o l u m e   f o r   s h a r e d   s t o r a g e   b e t w e e n   t h e   c o n t a i n e r s .


Question: What is Pod phase?

Answer: A   P o d ' s   s t a t u s   f i e l d   i s   a   P o d S t a t u s   o b j e c t ,   w h i c h   h a s   a   p h a s e   f i e l d .   T h e   p h a s e   o f   a   P o d   i s   a   s i m p l e ,   h i g h - l e v e l   s u m m a r y   o f   w h e r e   t h e   P o d   i s   i n   i t s   l i f e c y c l e .   T h e   p h a s e   i s   n o t   i n t e n d e d   t o   b e   a   c o m p r e h e n s i v e   r o l l u p   o f   o b s e r v a t i o n s   o f   c o n t a i n e r   o r   P o d   s t a t e ,   n o r   i s   i t   i n t e n d e d   t o   b e   a   c o m p r e h e n s i v e   s t a t e   m a c h i n e .   T h e   n u m b e r   a n d   m e a n i n g s   o f   P o d   p h a s e   v a l u e s   a r e   t i g h t l y   g u a r d e d .   O t h e r   t h a n   w h a t   i s   d o c u m e n t e d   h e r e ,   n o t h i n g   s h o u l d   b e   a s s u m e d   a b o u t   P o d s   t h a t   h a v e   a   g i v e n   p h a s e   v a l u e .   H e r e   a r e   t h e   p o s s i b l e   v a l u e s   f o r   p h a s e :


Question: What is Note:?

Answer: W h e n   a   p o d   i s   f a i l i n g   t o   s t a r t   r e p e a t e d l y ,   C r a s h L o o p B a c k O f f   m a y   a p p e a r   i n   t h e   S t a t u s   f i e l d   o f   s o m e   k u b e c t l   c o m m a n d s .   S i m i l a r l y ,   w h e n   a   p o d   i s   b e i n g   d e l e t e d ,   T e r m i n a t i n g   m a y   a p p e a r   i n   t h e   S t a t u s   f i e l d   o f   s o m e   k u b e c t l   c o m m a n d s .   M a k e   s u r e   n o t   t o   c o n f u s e   S t a t u s ,   a   k u b e c t l   d i s p l a y   f i e l d   f o r   u s e r   i n t u i t i o n ,   w i t h   t h e   p o d ' s   p h a s e .   P o d   p h a s e   i s   a n   e x p l i c i t   p a r t   o f   t h e   K u b e r n e t e s   d a t a   m o d e l   a n d   o f   t h e   P o d   A P I .   N A M E S P A C E   N A M E   R E A D Y   S T A T U S   R E S T A R T S   A G E   a l e s s a n d r a s - n a m e s p a c e   a l e s s a n d r a s - p o d   0 / 1   C r a s h L o o p B a c k O f f   2 0 0   2 d 9 h   A   P o d   i s   g r a n t e d   a   t e r m   t o   t e r m i n a t e   g r a c e f u l l y ,   w h i c h   d e f a u l t s   t o   3 0   s e c o n d s .   Y o u   c a n   u s e   t h e   f l a g   - - f o r c e   t o   t e r m i n a t e   a   P o d   b y   f o r c e .   S i n c e   K u b e r n e t e s   1 . 2 7 ,   t h e   k u b e l e t   t r a n s i t i o n s   d e l e t e d   P o d s ,   e x c e p t   f o r   s t a t i c   P o d s   a n d   f o r c e - d e l e t e d   P o d s   w i t h o u t   a   f i n a l i z e r ,   t o   a   t e r m i n a l   p h a s e   ( F a i l e d   o r   S u c c e e d e d   d e p e n d i n g   o n   t h e   e x i t   s t a t u s e s   o f   t h e   p o d   c o n t a i n e r s )   b e f o r e   t h e i r   d e l e t i o n   f r o m   t h e   A P I   s e r v e r .   I f   a   n o d e   d i e s   o r   i s   d i s c o n n e c t e d   f r o m   t h e   r e s t   o f   t h e   c l u s t e r ,   K u b e r n e t e s   a p p l i e s   a


Question: What is Container states?

Answer: A s   w e l l   a s   t h e   p h a s e   o f   t h e   P o d   o v e r a l l ,   K u b e r n e t e s   t r a c k s   t h e   s t a t e   o f   e a c h   c o n t a i n e r   i n s i d e   a   P o d .   Y o u   c a n   u s e   c o n t a i n e r   l i f e c y c l e   h o o k s   t o   t r i g g e r   e v e n t s   t o   r u n   a t   c e r t a i n   p o i n t s   i n   a   c o n t a i n e r ' s   l i f e c y c l e .   O n c e   t h e   s c h e d u l e r   a s s i g n s   a   P o d   t o   a   N o d e ,   t h e   k u b e l e t   s t a r t s   c r e a t i n g   c o n t a i n e r s   f o r   t h a t   P o d   u s i n g   a   c o n t a i n e r   r u n t i m e .   T h e r e   a r e   t h r e e   p o s s i b l e   c o n t a i n e r   s t a t e s :   W a i t i n g ,   R u n n i n g ,   a n d   T e r m i n a t e d .   T o   c h e c k   t h e   s t a t e   o f   a   P o d ' s   c o n t a i n e r s ,   y o u   c a n   u s e   k u b e c t l   d e s c r i b e   p o d   < n a m e - o f - p o d > .   T h e   o u t p u t   s h o w s   t h e   s t a t e   f o r   e a c h   c o n t a i n e r   w i t h i n   t h a t   P o d .   E a c h   s t a t e   h a s   a   s p e c i f i c   m e a n i n g :


Question: What is Waiting?

Answer: I f   a   c o n t a i n e r   i s   n o t   i n   e i t h e r   t h e   R u n n i n g   o r   T e r m i n a t e d   s t a t e ,   i t   i s   W a i t i n g .   A   c o n t a i n e r   i n   t h e   W a i t i n g   s t a t e   i s   s t i l l   r u n n i n g   t h e   o p e r a t i o n s   i t   r e q u i r e s   i n   o r d e r   t o   c o m p l e t e   s t a r t   u p :   f o r   e x a m p l e ,   p u l l i n g   t h e   c o n t a i n e r   i m a g e   f r o m   a   c o n t a i n e r   i m a g e   r e g i s t r y ,   o r   a p p l y i n g   S e c r e t   d a t a .   W h e n   y o u   u s e   k u b e c t l   t o   q u e r y   a   P o d   w i t h   a   c o n t a i n e r   t h a t   i s   W a i t i n g ,   y o u   a l s o   s e e   a   R e a s o n   f i e l d   t o   s u m m a r i z e   w h y   t h e   c o n t a i n e r   i s   i n   t h a t   s t a t e .


Question: What is Running?

Answer: T h e   R u n n i n g   s t a t u s   i n d i c a t e s   t h a t   a   c o n t a i n e r   i s   e x e c u t i n g   w i t h o u t   i s s u e s .   I f   t h e r e   w a s   a   p o s t S t a r t   h o o k   c o n f i g u r e d ,   i t   h a s   a l r e a d y   e x e c u t e d   a n d   f i n i s h e d .   W h e n   y o u   u s e   k u b e c t l   t o   q u e r y   a   P o d   w i t h   a   c o n t a i n e r   t h a t   i s   R u n n i n g ,   y o u   a l s o   s e e   i n f o r m a t i o n   a b o u t   w h e n   t h e   c o n t a i n e r   e n t e r e d   t h e   R u n n i n g   s t a t e .


Question: What is Terminated?

Answer: A   c o n t a i n e r   i n   t h e   T e r m i n a t e d   s t a t e   b e g a n   e x e c u t i o n   a n d   t h e n   e i t h e r   r a n   t o   c o m p l e t i o n   o r   f a i l e d   f o r   s o m e   r e a s o n .   W h e n   y o u   u s e   k u b e c t l   t o   q u e r y   a   P o d   w i t h   a   c o n t a i n e r   t h a t   i s   T e r m i n a t e d ,   y o u   s e e   a   r e a s o n ,   a n   e x i t   c o d e ,   a n d   t h e   s t a r t   a n d   f i n i s h   t i m e   f o r   t h a t   c o n t a i n e r ' s   p e r i o d   o f   e x e c u t i o n .   I f   a   c o n t a i n e r   h a s   a   p r e S t o p   h o o k   c o n f i g u r e d ,   t h i s   h o o k   r u n s   b e f o r e   t h e   c o n t a i n e r   e n t e r s   t h e   T e r m i n a t e d   s t a t e .


Question: What is How Pods handle problems with containers?

Answer: K u b e r n e t e s   m a n a g e s   c o n t a i n e r   f a i l u r e s   w i t h i n   P o d s   u s i n g   a   r e s t a r t P o l i c y   d e f i n e d   i n   t h e   P o d   s p e c .   T h i s   p o l i c y   d e t e r m i n e s   h o w   K u b e r n e t e s   r e a c t s   t o   c o n t a i n e r s   e x i t i n g   d u e   t o   e r r o r s   o r   o t h e r   r e a s o n s ,   w h i c h   f a l l s   i n   t h e   f o l l o w i n g   s e q u e n c e :   I n i t i a l   c r a s h :   K u b e r n e t e s   a t t e m p t s   a n   i m m e d i a t e   r e s t a r t   b a s e d   o n   t h e   P o d   r e s t a r t P o l i c y . R e p e a t e d   c r a s h e s :   A f t e r   t h e   i n i t i a l   c r a s h   K u b e r n e t e s   a p p l i e s   a n   e x p o n e n t i a l   b a c k o f f   d e l a y   f o r   s u b s e q u e n t   r e s t a r t s ,   d e s c r i b e d   i n   r e s t a r t P o l i c y .   T h i s   p r e v e n t s   r a p i d ,   r e p e a t e d   r e s t a r t   a t t e m p t s   f r o m   o v e r l o a d i n g   t h e   s y s t e m . C r a s h L o o p B a c k O f f   s t a t e :   T h i s   i n d i c a t e s   t h a t   t h e   b a c k o f f   d e l a y   m e c h a n i s m   i s   c u r r e n t l y   i n   e f f e c t   f o r   a   g i v e n   c o n t a i n e r   t h a t   i s   i n   a   c r a s h   l o o p ,   f a i l i n g   a n d   r e s t a r t i n g   r e p e a t e d l y . B a c k o f f   r e s e t :   I f   a   c o n t a i n e r   r u n s   s u c c e s s f u l l y   f o r   a   c e r t a i n   d u r a t i o n   ( e . g . ,   1 0   m i n u t e s ) ,   K u b e r n e t e s   r e s e t s   t h e   b a c k o f f   d e l a y ,   t r e a t i n g   a n y   n e w   c r a s h   a s   t h e   f i r s t   o n e .   I n   p r a c t i c e ,   a   C r a s h L o o p B a c k O f f   i s   a   c o n d i t i o n   o r   e v e n t   t h a t   m i g h t   b e   s e e n   a s   o u t p u t   f r o m   t h e   k u b e c t l   c o m m a n d ,   w h i l


Question: What is Container restarts?

Answer: W h e n   a   c o n t a i n e r   i n   y o u r   P o d   s t o p s ,   o r   e x p e r i e n c e s   f a i l u r e ,   K u b e r n e t e s   c a n   r e s t a r t   i t .   A   r e s t a r t   i s n ' t   a l w a y s   a p p r o p r i a t e ;   f o r   e x a m p l e ,   i n i t   c o n t a i n e r s   r u n   o n l y   o n c e ,   d u r i n g   P o d   s t a r t u p .   Y o u   c a n   c o n f i g u r e   r e s t a r t s   a s   a   p o l i c y   t h a t   a p p l i e s   t o   a l l   P o d s ,   o r   u s i n g   c o n t a i n e r - l e v e l   c o n f i g u r a t i o n   ( f o r   e x a m p l e :   w h e n   y o u   d e f i n e   a   s i d e c a r   c o n t a i n e r ) .


Question: What is Container restarts and resilience?

Answer: T h e   K u b e r n e t e s   p r o j e c t   r e c o m m e n d s   f o l l o w i n g   c l o u d - n a t i v e   p r i n c i p l e s ,   i n c l u d i n g   r e s i l i e n t   d e s i g n   t h a t   a c c o u n t s   f o r   u n a n n o u n c e d   o r   a r b i t r a r y   r e s t a r t s .   Y o u   c a n   a c h i e v e   t h i s   e i t h e r   b y   f a i l i n g   t h e   P o d   a n d   r e l y i n g   o n   a u t o m a t i c   r e p l a c e m e n t ,   o r   y o u   c a n   d e s i g n   f o r   c o n t a i n e r - l e v e l   r e s i l i e n c e .   E i t h e r   a p p r o a c h   h e l p s   t o   e n s u r e   t h a t   y o u r   o v e r a l l   w o r k l o a d   r e m a i n s   a v a i l a b l e   d e s p i t e   p a r t i a l   f a i l u r e .


Question: What is Pod-level container restart policy?

Answer: T h e   s p e c   o f   a   P o d   h a s   a   r e s t a r t P o l i c y   f i e l d   w i t h   p o s s i b l e   v a l u e s   A l w a y s ,   O n F a i l u r e ,   a n d   N e v e r .   T h e   d e f a u l t   v a l u e   i s   A l w a y s .   T h e   r e s t a r t P o l i c y   f o r   a   P o d   a p p l i e s   t o   a p p   c o n t a i n e r s   i n   t h e   P o d   a n d   t o   r e g u l a r   i n i t   c o n t a i n e r s .   S i d e c a r   c o n t a i n e r s   i g n o r e   t h e   P o d - l e v e l   r e s t a r t P o l i c y   f i e l d :   i n   K u b e r n e t e s ,   a   s i d e c a r   i s   d e f i n e d   a s   a n   e n t r y   i n s i d e   i n i t C o n t a i n e r s   t h a t   h a s   i t s   c o n t a i n e r - l e v e l   r e s t a r t P o l i c y   s e t   t o   A l w a y s .   F o r   i n i t   c o n t a i n e r s   t h a t   e x i t   w i t h   a n   e r r o r ,   t h e   k u b e l e t   r e s t a r t s   t h e   i n i t   c o n t a i n e r   i f   t h e   P o d   l e v e l   r e s t a r t P o l i c y   i s   e i t h e r   O n F a i l u r e   o r   A l w a y s :   A l w a y s :   A u t o m a t i c a l l y   r e s t a r t s   t h e   c o n t a i n e r   a f t e r   a n y   t e r m i n a t i o n . O n F a i l u r e :   O n l y   r e s t a r t s   t h e   c o n t a i n e r   i f   i t   e x i t s   w i t h   a n   e r r o r   ( n o n - z e r o   e x i t   s t a t u s ) . N e v e r :   D o e s   n o t   a u t o m a t i c a l l y   r e s t a r t   t h e   t e r m i n a t e d   c o n t a i n e r .   W h e n   t h e   k u b e l e t   i s   h a n d l i n g   c o n t a i n e r   r e s t a r t s   a c c o r d i n g   t o   t h e   c o n f i g u r e d   r e s t a r t   p o l i c y ,   t h a t   o n l y   a p p l i e s   t o   r e s t a r t s   t h a t   m a k e   r e p l a c e m e n t   c o n t a i n e r s   i n s i d e   t h e   s a m e   P o d   a n d   r u n n i n g   o n   t h e   s a m e   n o d e .   A f t e r   c o n t a i n e r s   i n


Question: What is Individual container restart policy and rules?

Answer: I f   y o u r   c l u s t e r   h a s   t h e   f e a t u r e   g a t e   C o n t a i n e r R e s t a r t R u l e s   e n a b l e d ,   y o u   c a n   s p e c i f y   r e s t a r t P o l i c y   a n d   r e s t a r t P o l i c y R u l e s   o n   i n d i v i d u a l   c o n t a i n e r s   t o   o v e r r i d e   t h e   P o d   r e s t a r t   p o l i c y .   C o n t a i n e r   r e s t a r t   p o l i c y   a n d   r u l e s   a p p l i e s   t o   a p p   c o n t a i n e r s   i n   t h e   P o d   a n d   t o   r e g u l a r   i n i t   c o n t a i n e r s .   A   K u b e r n e t e s - n a t i v e   s i d e c a r   c o n t a i n e r   h a s   i t s   c o n t a i n e r - l e v e l   r e s t a r t P o l i c y   s e t   t o   A l w a y s ,   a n d   d o e s   n o t   s u p p o r t   r e s t a r t P o l i c y R u l e s .   T h e   c o n t a i n e r   r e s t a r t s   w i l l   f o l l o w   t h e   s a m e   e x p o n e n t i a l   b a c k o f f   a s   p o d   r e s t a r t   p o l i c y   d e s c r i b e d   a b o v e .   S u p p o r t e d   c o n t a i n e r   r e s t a r t   p o l i c i e s :   A l w a y s :   A u t o m a t i c a l l y   r e s t a r t s   t h e   c o n t a i n e r   a f t e r   a n y   t e r m i n a t i o n . O n F a i l u r e :   O n l y   r e s t a r t s   t h e   c o n t a i n e r   i f   i t   e x i t s   w i t h   a n   e r r o r   ( n o n - z e r o   e x i t   s t a t u s ) . N e v e r :   D o e s   n o t   a u t o m a t i c a l l y   r e s t a r t   t h e   t e r m i n a t e d   c o n t a i n e r .   A d d i t i o n a l l y ,   i n d i v i d u a l   c o n t a i n e r s   c a n   s p e c i f y   r e s t a r t P o l i c y R u l e s .   I f   t h e   r e s t a r t P o l i c y R u l e s   f i e l d   i s   s p e c i f i e d ,   t h e n   c o n t a i n e r   r e s t a r t P o l i c y   m u s t   a l s o   b e   s p e c i f i e d .   T h e   r e s t a r t P o l i c y R u l e s   d e f i n e   a   l i s t   o f   r u l e s   t o   a p p l y


Question: What is Reduced container restart delay?

Answer: W i t h   t h e   a l p h a   f e a t u r e   g a t e   R e d u c e D e f a u l t C r a s h L o o p B a c k O f f D e c a y   e n a b l e d ,   c o n t a i n e r   s t a r t   r e t r i e s   a c r o s s   y o u r   c l u s t e r   w i l l   b e   r e d u c e d   t o   b e g i n   a t   1 s   ( i n s t e a d   o f   1 0 s )   a n d   i n c r e a s e   e x p o n e n t i a l l y   b y   2 x   e a c h   r e s t a r t   u n t i l   a   m a x i m u m   d e l a y   o f   6 0 s   ( i n s t e a d   o f   3 0 0 s   w h i c h   i s   5   m i n u t e s ) .   I f   y o u   u s e   t h i s   f e a t u r e   a l o n g   w i t h   t h e   a l p h a   f e a t u r e   K u b e l e t C r a s h L o o p B a c k O f f M a x   ( d e s c r i b e d   b e l o w ) ,   i n d i v i d u a l   n o d e s   m a y   h a v e   d i f f e r e n t   m a x i m u m   d e l a y s .


Question: What is Configurable container restart delay?

Answer: W i t h   t h e   a l p h a   f e a t u r e   g a t e   K u b e l e t C r a s h L o o p B a c k O f f M a x   e n a b l e d ,   y o u   c a n   r e c o n f i g u r e   t h e   m a x i m u m   d e l a y   b e t w e e n   c o n t a i n e r   s t a r t   r e t r i e s   f r o m   t h e   d e f a u l t   o f   3 0 0 s   ( 5   m i n u t e s ) .   T h i s   c o n f i g u r a t i o n   i s   s e t   p e r   n o d e   u s i n g   k u b e l e t   c o n f i g u r a t i o n .   I n   y o u r   k u b e l e t   c o n f i g u r a t i o n ,   u n d e r   c r a s h L o o p B a c k O f f   s e t   t h e   m a x C o n t a i n e r R e s t a r t P e r i o d   f i e l d   b e t w e e n   " 1 s "   a n d   " 3 0 0 s " .   A s   d e s c r i b e d   a b o v e   i n   C o n t a i n e r   r e s t a r t   p o l i c y ,   d e l a y s   o n   t h a t   n o d e   w i l l   s t i l l   s t a r t   a t   1 0 s   a n d   i n c r e a s e   e x p o n e n t i a l l y   b y   2 x   e a c h   r e s t a r t ,   b u t   w i l l   n o w   b e   c a p p e d   a t   y o u r   c o n f i g u r e d   m a x i m u m .   I f   t h e   m a x C o n t a i n e r R e s t a r t P e r i o d   y o u   c o n f i g u r e   i s   l e s s   t h a n   t h e   d e f a u l t   i n i t i a l   v a l u e   o f   1 0 s ,   t h e   i n i t i a l   d e l a y   w i l l   i n s t e a d   b e   s e t   t o   t h e   c o n f i g u r e d   m a x i m u m .   S e e   t h e   f o l l o w i n g   k u b e l e t   c o n f i g u r a t i o n   e x a m p l e s :   #   c o n t a i n e r   r e s t a r t   d e l a y s   w i l l   s t a r t   a t   1 0 s ,   i n c r e a s i n g   #   2 x   e a c h   t i m e   t h e y   a r e   r e s t a r t e d ,   t o   a   m a x i m u m   o f   1 0 0 s   k i n d :   K u b e l e t C o n f i g u r a t i o n   c r a s h L o o p B a c k O f f :   m a x C o n t a i n e r R e s t a r t P e r i o d :   " 1 0 0 s "   #   d e l a y s   b e t w e e n   c o n t a i n e r   r e s t a r t s   w i l l   a l w a y s   b e   2 s


Question: What is Pod conditions?

Answer: A   P o d   h a s   a   P o d S t a t u s ,   w h i c h   h a s   a n   a r r a y   o f   P o d C o n d i t i o n s   t h r o u g h   w h i c h   t h e   P o d   h a s   o r   h a s   n o t   p a s s e d .   K u b e l e t   m a n a g e s   t h e   f o l l o w i n g   P o d C o n d i t i o n s :   P o d S c h e d u l e d :   t h e   P o d   h a s   b e e n   s c h e d u l e d   t o   a   n o d e . P o d R e a d y T o S t a r t C o n t a i n e r s :   ( b e t a   f e a t u r e ;   e n a b l e d   b y   d e f a u l t )   t h e   P o d   s a n d b o x   h a s   b e e n   s u c c e s s f u l l y   c r e a t e d   a n d   n e t w o r k i n g   c o n f i g u r e d . C o n t a i n e r s R e a d y :   a l l   c o n t a i n e r s   i n   t h e   P o d   a r e   r e a d y . I n i t i a l i z e d :   a l l   i n i t   c o n t a i n e r s   h a v e   c o m p l e t e d   s u c c e s s f u l l y . R e a d y :   t h e   P o d   i s   a b l e   t o   s e r v e   r e q u e s t s   a n d   s h o u l d   b e   a d d e d   t o   t h e   l o a d   b a l a n c i n g   p o o l s   o f   a l l   m a t c h i n g   S e r v i c e s . D i s r u p t i o n T a r g e t :   t h e   p o d   i s   a b o u t   t o   b e   t e r m i n a t e d   d u e   t o   a   d i s r u p t i o n   ( s u c h   a s   p r e e m p t i o n ,   e v i c t i o n   o r   g a r b a g e - c o l l e c t i o n ) . P o d R e s i z e P e n d i n g :   a   p o d   r e s i z e   w a s   r e q u e s t e d   b u t   c a n n o t   b e   a p p l i e d .   S e e   P o d   r e s i z e   s t a t u s . P o d R e s i z e I n P r o g r e s s :   t h e   p o d   i s   i n   t h e   p r o c e s s   o f   r e s i z i n g .   S e e   P o d   r e s i z e   s t a t u s .


Question: What is Pod readiness?

Answer: Y o u r   a p p l i c a t i o n   c a n   i n j e c t   e x t r a


Question: What is Status for Pod readiness?

Answer: T h e   k u b e c t l   p a t c h   c o m m a n d   d o e s   n o t   s u p p o r t   p a t c h i n g   o b j e c t   s t a t u s .   T o   s e t   t h e s e   s t a t u s . c o n d i t i o n s   f o r   t h e   P o d ,   a p p l i c a t i o n s   a n d   o p e r a t o r s   s h o u l d   u s e   t h e   P A T C H   a c t i o n .   Y o u   c a n   u s e   a   K u b e r n e t e s   c l i e n t   l i b r a r y   t o   w r i t e   c o d e   t h a t   s e t s   c u s t o m   P o d   c o n d i t i o n s   f o r   P o d   r e a d i n e s s .   F o r   a   P o d   t h a t   u s e s   c u s t o m   c o n d i t i o n s ,   t h a t   P o d   i s   e v a l u a t e d   t o   b e   r e a d y   o n l y   w h e n   b o t h   t h e   f o l l o w i n g   s t a t e m e n t s   a p p l y :   A l l   c o n t a i n e r s   i n   t h e   P o d   a r e   r e a d y . A l l   c o n d i t i o n s   s p e c i f i e d   i n   r e a d i n e s s G a t e s   a r e   T r u e .   W h e n   a   P o d ' s   c o n t a i n e r s   a r e   R e a d y   b u t   a t   l e a s t   o n e   c u s t o m   c o n d i t i o n   i s   m i s s i n g   o r   F a l s e ,   t h e   k u b e l e t   s e t s   t h e   P o d ' s   c o n d i t i o n   t o   C o n t a i n e r s R e a d y .


Question: What is Note:?

Answer: A f t e r   a   P o d   g e t s   s c h e d u l e d   o n   a   n o d e ,   i t   n e e d s   t o   b e   a d m i t t e d   b y   t h e   k u b e l e t   a n d   t o   h a v e   a n y   r e q u i r e d   s t o r a g e   v o l u m e s   m o u n t e d .   O n c e   t h e s e   p h a s e s   a r e   c o m p l e t e ,   t h e   k u b e l e t   w o r k s   w i t h   a   c o n t a i n e r   r u n t i m e   ( u s i n g   C o n t a i n e r   R u n t i m e   I n t e r f a c e   ( C R I ) )   t o   s e t   u p   a   r u n t i m e   s a n d b o x   a n d   c o n f i g u r e   n e t w o r k i n g   f o r   t h e   P o d .   I f   t h e   P o d R e a d y T o S t a r t C o n t a i n e r s C o n d i t i o n   f e a t u r e   g a t e   i s   e n a b l e d   ( i t   i s   e n a b l e d   b y   d e f a u l t   f o r   K u b e r n e t e s   1 . 3 4 ) ,   t h e   P o d R e a d y T o S t a r t C o n t a i n e r s   c o n d i t i o n   w i l l   b e   a d d e d   t o   t h e   s t a t u s . c o n d i t i o n s   f i e l d   o f   a   P o d .   T h e   P o d R e a d y T o S t a r t C o n t a i n e r s   c o n d i t i o n   i s   s e t   t o   F a l s e   b y   t h e   K u b e l e t   w h e n   i t   d e t e c t s   a   P o d   d o e s   n o t   h a v e   a   r u n t i m e   s a n d b o x   w i t h   n e t w o r k i n g   c o n f i g u r e d .   T h i s   o c c u r s   i n   t h e   f o l l o w i n g   s c e n a r i o s :   E a r l y   i n   t h e   l i f e c y c l e   o f   t h e   P o d ,   w h e n   t h e   k u b e l e t   h a s   n o t   y e t   b e g u n   t o   s e t   u p   a   s a n d b o x   f o r   t h e   P o d   u s i n g   t h e   c o n t a i n e r   r u n t i m e . L a t e r   i n   t h e   l i f e c y c l e   o f   t h e   P o d ,   w h e n   t h e   P o d   s a n d b o x   h a s   b e e n   d e s t r o y e d   d u e   t o   e i t h e r : t h e   n o d e   r e b o o t i n g ,   w i t h o u t   t h e   P o d   g e t t i n g   e v i c t e d f o r   c o n t a i n e r   r u n t


Question: What is Container probes?

Answer: A   p r o b e   i s   a   d i a g n o s t i c   p e r f o r m e d   p e r i o d i c a l l y   b y   t h e   k u b e l e t   o n   a   c o n t a i n e r .   T o   p e r f o r m   a   d i a g n o s t i c ,   t h e   k u b e l e t   e i t h e r   e x e c u t e s   c o d e   w i t h i n   t h e   c o n t a i n e r ,   o r   m a k e s   a   n e t w o r k   r e q u e s t .


Question: What is Check mechanisms?

Answer: T h e r e   a r e   f o u r   d i f f e r e n t   w a y s   t o   c h e c k   a   c o n t a i n e r   u s i n g   a   p r o b e .   E a c h   p r o b e   m u s t   d e f i n e   e x a c t l y   o n e   o f   t h e s e   f o u r   m e c h a n i s m s :


Question: What is Probe outcome?

Answer: E a c h   p r o b e   h a s   o n e   o f   t h r e e   r e s u l t s :


Question: What is Types of probe?

Answer: T h e   k u b e l e t   c a n   o p t i o n a l l y   p e r f o r m   a n d   r e a c t   t o   t h r e e   k i n d s   o f   p r o b e s   o n   r u n n i n g   c o n t a i n e r s :   F o r   m o r e   i n f o r m a t i o n   a b o u t   h o w   t o   s e t   u p   a   l i v e n e s s ,   r e a d i n e s s ,   o r   s t a r t u p   p r o b e ,   s e e   C o n f i g u r e   L i v e n e s s ,   R e a d i n e s s   a n d   S t a r t u p   P r o b e s .


Question: What is When should you use a liveness probe??

Answer: I f   t h e   p r o c e s s   i n   y o u r   c o n t a i n e r   i s   a b l e   t o   c r a s h   o n   i t s   o w n   w h e n e v e r   i t   e n c o u n t e r s   a n   i s s u e   o r   b e c o m e s   u n h e a l t h y ,   y o u   d o   n o t   n e c e s s a r i l y   n e e d   a   l i v e n e s s   p r o b e ;   t h e   k u b e l e t   w i l l   a u t o m a t i c a l l y   p e r f o r m   t h e   c o r r e c t   a c t i o n   i n   a c c o r d a n c e   w i t h   t h e   P o d ' s   r e s t a r t P o l i c y .   I f   y o u ' d   l i k e   y o u r   c o n t a i n e r   t o   b e   k i l l e d   a n d   r e s t a r t e d   i f   a   p r o b e   f a i l s ,   t h e n   s p e c i f y   a   l i v e n e s s   p r o b e ,   a n d   s p e c i f y   a   r e s t a r t P o l i c y   o f   A l w a y s   o r   O n F a i l u r e .


Question: What is When should you use a readiness probe??

Answer: I f   y o u ' d   l i k e   t o   s t a r t   s e n d i n g   t r a f f i c   t o   a   P o d   o n l y   w h e n   a   p r o b e   s u c c e e d s ,   s p e c i f y   a   r e a d i n e s s   p r o b e .   I n   t h i s   c a s e ,   t h e   r e a d i n e s s   p r o b e   m i g h t   b e   t h e   s a m e   a s   t h e   l i v e n e s s   p r o b e ,   b u t   t h e   e x i s t e n c e   o f   t h e   r e a d i n e s s   p r o b e   i n   t h e   s p e c   m e a n s   t h a t   t h e   P o d   w i l l   s t a r t   w i t h o u t   r e c e i v i n g   a n y   t r a f f i c   a n d   o n l y   s t a r t   r e c e i v i n g   t r a f f i c   a f t e r   t h e   p r o b e   s t a r t s   s u c c e e d i n g .   I f   y o u   w a n t   y o u r   c o n t a i n e r   t o   b e   a b l e   t o   t a k e   i t s e l f   d o w n   f o r   m a i n t e n a n c e ,   y o u   c a n   s p e c i f y   a   r e a d i n e s s   p r o b e   t h a t   c h e c k s   a n   e n d p o i n t   s p e c i f i c   t o   r e a d i n e s s   t h a t   i s   d i f f e r e n t   f r o m   t h e   l i v e n e s s   p r o b e .   I f   y o u r   a p p   h a s   a   s t r i c t   d e p e n d e n c y   o n   b a c k - e n d   s e r v i c e s ,   y o u   c a n   i m p l e m e n t   b o t h   a   l i v e n e s s   a n d   a   r e a d i n e s s   p r o b e .   T h e   l i v e n e s s   p r o b e   p a s s e s   w h e n   t h e   a p p   i t s e l f   i s   h e a l t h y ,   b u t   t h e   r e a d i n e s s   p r o b e   a d d i t i o n a l l y   c h e c k s   t h a t   e a c h   r e q u i r e d   b a c k - e n d   s e r v i c e   i s   a v a i l a b l e .   T h i s   h e l p s   y o u   a v o i d   d i r e c t i n g   t r a f f i c   t o   P o d s   t h a t   c a n   o n l y   r e s p o n d   w i t h   e r r o r   m e s s a g e s .   I f   y o u r   c o n t a i n e r   n e e d s   t o   w o r k   o n   l o a d i n g   l a r g e   d a t a ,   c o n f i g u r a t i o n   f i l e s ,   o r   m i g r a t i


Question: What is When should you use a startup probe??

Answer: S t a r t u p   p r o b e s   a r e   u s e f u l   f o r   P o d s   t h a t   h a v e   c o n t a i n e r s   t h a t   t a k e   a   l o n g   t i m e   t o   c o m e   i n t o   s e r v i c e .   R a t h e r   t h a n   s e t   a   l o n g   l i v e n e s s   i n t e r v a l ,   y o u   c a n   c o n f i g u r e   a   s e p a r a t e   c o n f i g u r a t i o n   f o r   p r o b i n g   t h e   c o n t a i n e r   a s   i t   s t a r t s   u p ,   a l l o w i n g   a   t i m e   l o n g e r   t h a n   t h e   l i v e n e s s   i n t e r v a l   w o u l d   a l l o w .   I f   y o u r   c o n t a i n e r   u s u a l l y   s t a r t s   i n   m o r e   t h a n   \ (   i n i t i a l D e l a y S e c o n d s   +   f a i l u r e T h r e s h o l d   \ t i m e s   p e r i o d S e c o n d s   \ ) ,   y o u   s h o u l d   s p e c i f y   a   s t a r t u p   p r o b e   t h a t   c h e c k s   t h e   s a m e   e n d p o i n t   a s   t h e   l i v e n e s s   p r o b e .   T h e   d e f a u l t   f o r   p e r i o d S e c o n d s   i s   1 0 s .   Y o u   s h o u l d   t h e n   s e t   i t s   f a i l u r e T h r e s h o l d   h i g h   e n o u g h   t o   a l l o w   t h e   c o n t a i n e r   t o   s t a r t ,   w i t h o u t   c h a n g i n g   t h e   d e f a u l t   v a l u e s   o f   t h e   l i v e n e s s   p r o b e .   T h i s   h e l p s   t o   p r o t e c t   a g a i n s t   d e a d l o c k s .


Question: What is Termination of Pods?

Answer: B e c a u s e   P o d s   r e p r e s e n t   p r o c e s s e s   r u n n i n g   o n   n o d e s   i n   t h e   c l u s t e r ,   i t   i s   i m p o r t a n t   t o   a l l o w   t h o s e   p r o c e s s e s   t o   g r a c e f u l l y   t e r m i n a t e   w h e n   t h e y   a r e   n o   l o n g e r   n e e d e d   ( r a t h e r   t h a n   b e i n g   a b r u p t l y   s t o p p e d   w i t h   a   K I L L   s i g n a l   a n d   h a v i n g   n o   c h a n c e   t o   c l e a n   u p ) .   T h e   d e s i g n   a i m   i s   f o r   y o u   t o   b e   a b l e   t o   r e q u e s t   d e l e t i o n   a n d   k n o w   w h e n   p r o c e s s e s   t e r m i n a t e ,   b u t   a l s o   b e   a b l e   t o   e n s u r e   t h a t   d e l e t e s   e v e n t u a l l y   c o m p l e t e .   W h e n   y o u   r e q u e s t   d e l e t i o n   o f   a   P o d ,   t h e   c l u s t e r   r e c o r d s   a n d   t r a c k s   t h e   i n t e n d e d   g r a c e   p e r i o d   b e f o r e   t h e   P o d   i s   a l l o w e d   t o   b e   f o r c e f u l l y   k i l l e d .   W i t h   t h a t   f o r c e f u l   s h u t d o w n   t r a c k i n g   i n   p l a c e ,   t h e   k u b e l e t   a t t e m p t s   g r a c e f u l   s h u t d o w n .   T y p i c a l l y ,   w i t h   t h i s   g r a c e f u l   t e r m i n a t i o n   o f   t h e   p o d ,   k u b e l e t   m a k e s   r e q u e s t s   t o   t h e   c o n t a i n e r   r u n t i m e   t o   a t t e m p t   t o   s t o p   t h e   c o n t a i n e r s   i n   t h e   p o d   b y   f i r s t   s e n d i n g   a   T E R M   ( a k a .   S I G T E R M )   s i g n a l ,   w i t h   a   g r a c e   p e r i o d   t i m e o u t ,   t o   t h e   m a i n   p r o c e s s   i n   e a c h   c o n t a i n e r .   T h e   r e q u e s t s   t o   s t o p   t h e   c o n t a i n e r s   a r e   p r o c e s s e d   b y   t h e   c o n t a i n e r   r u n t i m e   a s y n c h r o n o u s l y .   T h e r e   i s   n o


Question: What is Stop Signals?

Answer: T h e   s t o p   s i g n a l   u s e d   t o   k i l l   t h e   c o n t a i n e r   c a n   b e   d e f i n e d   i n   t h e   c o n t a i n e r   i m a g e   w i t h   t h e   S T O P S I G N A L   i n s t r u c t i o n .   I f   n o   s t o p   s i g n a l   i s   d e f i n e d   i n   t h e   i m a g e ,   t h e   d e f a u l t   s i g n a l   o f   t h e   c o n t a i n e r   r u n t i m e   ( S I G T E R M   f o r   b o t h   c o n t a i n e r d   a n d   C R I - O )   w o u l d   b e   u s e d   t o   k i l l   t h e   c o n t a i n e r .


Question: What is Defining custom stop signals?

Answer: I f   t h e   C o n t a i n e r S t o p S i g n a l s   f e a t u r e   g a t e   i s   e n a b l e d ,   y o u   c a n   c o n f i g u r e   a   c u s t o m   s t o p   s i g n a l   f o r   y o u r   c o n t a i n e r s   f r o m   t h e   c o n t a i n e r   L i f e c y c l e .   W e   r e q u i r e   t h e   P o d ' s   s p e c . o s . n a m e   f i e l d   t o   b e   p r e s e n t   a s   a   r e q u i r e m e n t   f o r   d e f i n i n g   s t o p   s i g n a l s   i n   t h e   c o n t a i n e r   l i f e c y c l e .   T h e   l i s t   o f   s i g n a l s   t h a t   a r e   v a l i d   d e p e n d s   o n   t h e   O S   t h e   P o d   i s   s c h e d u l e d   t o .   F o r   P o d s   s c h e d u l e d   t o   W i n d o w s   n o d e s ,   w e   o n l y   s u p p o r t   S I G T E R M   a n d   S I G K I L L   a s   v a l i d   s i g n a l s .   H e r e   i s   a n   e x a m p l e   P o d   s p e c   d e f i n i n g   a   c u s t o m   s t o p   s i g n a l :   s p e c :   o s :   n a m e :   l i n u x   c o n t a i n e r s :   -   n a m e :   m y - c o n t a i n e r   i m a g e :   c o n t a i n e r - i m a g e : l a t e s t   l i f e c y c l e :   s t o p S i g n a l :   S I G U S R 1   I f   a   s t o p   s i g n a l   i s   d e f i n e d   i n   t h e   l i f e c y c l e ,   t h i s   w i l l   o v e r r i d e   t h e   s i g n a l   d e f i n e d   i n   t h e   c o n t a i n e r   i m a g e .   I f   n o   s t o p   s i g n a l   i s   d e f i n e d   i n   t h e   c o n t a i n e r   s p e c ,   t h e   c o n t a i n e r   w o u l d   f a l l   b a c k   t o   t h e   d e f a u l t   b e h a v i o r .


Question: What is Pod Termination Flow?

Answer: P o d   t e r m i n a t i o n   f l o w ,   i l l u s t r a t e d   w i t h   a n   e x a m p l e :   Y o u   u s e   t h e   k u b e c t l   t o o l   t o   m a n u a l l y   d e l e t e   a   s p e c i f i c   P o d ,   w i t h   t h e   d e f a u l t   g r a c e   p e r i o d   ( 3 0   s e c o n d s ) . T h e   P o d   i n   t h e   A P I   s e r v e r   i s   u p d a t e d   w i t h   t h e   t i m e   b e y o n d   w h i c h   t h e   P o d   i s   c o n s i d e r e d   " d e a d "   a l o n g   w i t h   t h e   g r a c e   p e r i o d .   I f   y o u   u s e   k u b e c t l   d e s c r i b e   t o   c h e c k   t h e   P o d   y o u ' r e   d e l e t i n g ,   t h a t   P o d   s h o w s   u p   a s   " T e r m i n a t i n g " .   O n   t h e   n o d e   w h e r e   t h e   P o d   i s   r u n n i n g :   a s   s o o n   a s   t h e   k u b e l e t   s e e s   t h a t   a   P o d   h a s   b e e n   m a r k e d   a s   t e r m i n a t i n g   ( a   g r a c e f u l   s h u t d o w n   d u r a t i o n   h a s   b e e n   s e t ) ,   t h e   k u b e l e t   b e g i n s   t h e   l o c a l   P o d   s h u t d o w n   p r o c e s s . I f   o n e   o f   t h e   P o d ' s   c o n t a i n e r s   h a s   d e f i n e d   a   p r e S t o p   h o o k   a n d   t h e   t e r m i n a t i o n G r a c e P e r i o d S e c o n d s   i n   t h e   P o d   s p e c   i s   n o t   s e t   t o   0 ,   t h e   k u b e l e t   r u n s   t h a t   h o o k   i n s i d e   o f   t h e   c o n t a i n e r .   T h e   d e f a u l t   t e r m i n a t i o n G r a c e P e r i o d S e c o n d s   s e t t i n g   i s   3 0   s e c o n d s . I f   t h e   p r e S t o p   h o o k   i s   s t i l l   r u n n i n g   a f t e r   t h e   g r a c e   p e r i o d   e x p i r e s ,   t h e   k u b e l e t   r e q u e s t s   a   s m a l l ,   o n e - o f f   g r a c e   p e r i o d   e x t e n s i o n   o f   2   s e c o n d s . N o t e : I f   t h e   p r e S t o p   h o o k   n e e d s   l o n g


Question: What is Note:?

Answer: T h e   k u b e l e t   t r i g g e r s   t h e   c o n t a i n e r   r u n t i m e   t o   s e n d   a   T E R M   s i g n a l   t o   p r o c e s s   1   i n s i d e   e a c h   c o n t a i n e r .   T h e r e   i s   s p e c i a l   o r d e r i n g   i f   t h e   P o d   h a s   a n y   s i d e c a r   c o n t a i n e r s   d e f i n e d .   O t h e r w i s e ,   t h e   c o n t a i n e r s   i n   t h e   P o d   r e c e i v e   t h e   T E R M   s i g n a l   a t   d i f f e r e n t   t i m e s   a n d   i n   a n   a r b i t r a r y   o r d e r .   I f   t h e   o r d e r   o f   s h u t d o w n s   m a t t e r s ,   c o n s i d e r   u s i n g   a   p r e S t o p   h o o k   t o   s y n c h r o n i z e   ( o r   s w i t c h   t o   u s i n g   s i d e c a r   c o n t a i n e r s ) .   A t   t h e   s a m e   t i m e   a s   t h e   k u b e l e t   i s   s t a r t i n g   g r a c e f u l   s h u t d o w n   o f   t h e   P o d ,   t h e   c o n t r o l   p l a n e   e v a l u a t e s   w h e t h e r   t o   r e m o v e   t h a t   s h u t t i n g - d o w n   P o d   f r o m   E n d p o i n t S l i c e   o b j e c t s ,   w h e r e   t h o s e   o b j e c t s   r e p r e s e n t   a   S e r v i c e   w i t h   a   c o n f i g u r e d   s e l e c t o r .   R e p l i c a S e t s   a n d   o t h e r   w o r k l o a d   r e s o u r c e s   n o   l o n g e r   t r e a t   t h e   s h u t t i n g - d o w n   P o d   a s   a   v a l i d ,   i n - s e r v i c e   r e p l i c a .   P o d s   t h a t   s h u t   d o w n   s l o w l y   s h o u l d   n o t   c o n t i n u e   t o   s e r v e   r e g u l a r   t r a f f i c   a n d   s h o u l d   s t a r t   t e r m i n a t i n g   a n d   f i n i s h   p r o c e s s i n g   o p e n   c o n n e c t i o n s .   S o m e   a p p l i c a t i o n s   n e e d   t o   g o   b e y o n d   f i n i s h i n g   o p e n   c o n n e c t i o n s   a n d   n e e d   m o r e   g r a c e f u l   t e r m i n a t i o n ,   f o r   e x a m


Question: What is Caution:?

Answer: B y   d e f a u l t ,   a l l   d e l e t e s   a r e   g r a c e f u l   w i t h i n   3 0   s e c o n d s .   T h e   k u b e c t l   d e l e t e   c o m m a n d   s u p p o r t s   t h e   - - g r a c e - p e r i o d = < s e c o n d s >   o p t i o n   w h i c h   a l l o w s   y o u   t o   o v e r r i d e   t h e   d e f a u l t   a n d   s p e c i f y   y o u r   o w n   v a l u e .   S e t t i n g   t h e   g r a c e   p e r i o d   t o   0   f o r c i b l y   a n d   i m m e d i a t e l y   d e l e t e s   t h e   P o d   f r o m   t h e   A P I   s e r v e r .   I f   t h e   P o d   w a s   s t i l l   r u n n i n g   o n   a   n o d e ,   t h a t   f o r c i b l e   d e l e t i o n   t r i g g e r s   t h e   k u b e l e t   t o   b e g i n   i m m e d i a t e   c l e a n u p .   U s i n g   k u b e c t l ,   Y o u   m u s t   s p e c i f y   a n   a d d i t i o n a l   f l a g   - - f o r c e   a l o n g   w i t h   - - g r a c e - p e r i o d = 0   i n   o r d e r   t o   p e r f o r m   f o r c e   d e l e t i o n s .   W h e n   a   f o r c e   d e l e t i o n   i s   p e r f o r m e d ,   t h e   A P I   s e r v e r   d o e s   n o t   w a i t   f o r   c o n f i r m a t i o n   f r o m   t h e   k u b e l e t   t h a t   t h e   P o d   h a s   b e e n   t e r m i n a t e d   o n   t h e   n o d e   i t   w a s   r u n n i n g   o n .   I t   r e m o v e s   t h e   P o d   i n   t h e   A P I   i m m e d i a t e l y   s o   a   n e w   P o d   c a n   b e   c r e a t e d   w i t h   t h e   s a m e   n a m e .   O n   t h e   n o d e ,   P o d s   t h a t   a r e   s e t   t o   t e r m i n a t e   i m m e d i a t e l y   w i l l   s t i l l   b e   g i v e n   a   s m a l l   g r a c e   p e r i o d   b e f o r e   b e i n g   f o r c e   k i l l e d .


Question: What is Caution:?

Answer: I f   y o u   n e e d   t o   f o r c e - d e l e t e   P o d s   t h a t   a r e   p a r t   o f   a   S t a t e f u l S e t ,   r e f e r   t o   t h e   t a s k   d o c u m e n t a t i o n   f o r   d e l e t i n g   P o d s   f r o m   a   S t a t e f u l S e t .


Question: What is Pod shutdown and sidecar containers?

Answer: I f   y o u r   P o d   i n c l u d e s   o n e   o r   m o r e   s i d e c a r   c o n t a i n e r s   ( i n i t   c o n t a i n e r s   w i t h   a n   A l w a y s   r e s t a r t   p o l i c y ) ,   t h e   k u b e l e t   w i l l   d e l a y   s e n d i n g   t h e   T E R M   s i g n a l   t o   t h e s e   s i d e c a r   c o n t a i n e r s   u n t i l   t h e   l a s t   m a i n   c o n t a i n e r   h a s   f u l l y   t e r m i n a t e d .   T h e   s i d e c a r   c o n t a i n e r s   w i l l   b e   t e r m i n a t e d   i n   t h e   r e v e r s e   o r d e r   t h e y   a r e   d e f i n e d   i n   t h e   P o d   s p e c .   T h i s   e n s u r e s   t h a t   s i d e c a r   c o n t a i n e r s   c o n t i n u e   s e r v i n g   t h e   o t h e r   c o n t a i n e r s   i n   t h e   P o d   u n t i l   t h e y   a r e   n o   l o n g e r   n e e d e d .   T h i s   m e a n s   t h a t   s l o w   t e r m i n a t i o n   o f   a   m a i n   c o n t a i n e r   w i l l   a l s o   d e l a y   t h e   t e r m i n a t i o n   o f   t h e   s i d e c a r   c o n t a i n e r s .   I f   t h e   g r a c e   p e r i o d   e x p i r e s   b e f o r e   t h e   t e r m i n a t i o n   p r o c e s s   i s   c o m p l e t e ,   t h e   P o d   m a y   e n t e r   f o r c e d   t e r m i n a t i o n .   I n   t h i s   c a s e ,   a l l   r e m a i n i n g   c o n t a i n e r s   i n   t h e   P o d   w i l l   b e   t e r m i n a t e d   s i m u l t a n e o u s l y   w i t h   a   s h o r t   g r a c e   p e r i o d .   S i m i l a r l y ,   i f   t h e   P o d   h a s   a   p r e S t o p   h o o k   t h a t   e x c e e d s   t h e   t e r m i n a t i o n   g r a c e   p e r i o d ,   e m e r g e n c y   t e r m i n a t i o n   m a y   o c c u r .   I n   g e n e r a l ,   i f   y o u   h a v e   u s e d   p r e S t o p   h o o k s   t o   c o n t r o l   t h e   t e r m i n a t i o n   o r d e r   w i t h o u t   s i d e c a r   c o n t a i n e r s ,   y o


Question: What is Garbage collection of Pods?

Answer: F o r   f a i l e d   P o d s ,   t h e   A P I   o b j e c t s   r e m a i n   i n   t h e   c l u s t e r ' s   A P I   u n t i l   a   h u m a n   o r   c o n t r o l l e r   p r o c e s s   e x p l i c i t l y   r e m o v e s   t h e m .   T h e   P o d   g a r b a g e   c o l l e c t o r   ( P o d G C ) ,   w h i c h   i s   a   c o n t r o l l e r   i n   t h e   c o n t r o l   p l a n e ,   c l e a n s   u p   t e r m i n a t e d   P o d s   ( w i t h   a   p h a s e   o f   S u c c e e d e d   o r   F a i l e d ) ,   w h e n   t h e   n u m b e r   o f   P o d s   e x c e e d s   t h e   c o n f i g u r e d   t h r e s h o l d   ( d e t e r m i n e d   b y   t e r m i n a t e d - p o d - g c - t h r e s h o l d   i n   t h e   k u b e - c o n t r o l l e r - m a n a g e r ) .   T h i s   a v o i d s   a   r e s o u r c e   l e a k   a s   P o d s   a r e   c r e a t e d   a n d   t e r m i n a t e d   o v e r   t i m e .   A d d i t i o n a l l y ,   P o d G C   c l e a n s   u p   a n y   P o d s   w h i c h   s a t i s f y   a n y   o f   t h e   f o l l o w i n g   c o n d i t i o n s :   a r e   o r p h a n   P o d s   -   b o u n d   t o   a   n o d e   w h i c h   n o   l o n g e r   e x i s t s , a r e   u n s c h e d u l e d   t e r m i n a t i n g   P o d s , a r e   t e r m i n a t i n g   P o d s ,   b o u n d   t o   a   n o n - r e a d y   n o d e   t a i n t e d   w i t h   n o d e . k u b e r n e t e s . i o / o u t - o f - s e r v i c e .   A l o n g   w i t h   c l e a n i n g   u p   t h e   P o d s ,   P o d G C   w i l l   a l s o   m a r k   t h e m   a s   f a i l e d   i f   t h e y   a r e   i n   a   n o n - t e r m i n a l   p h a s e .   A l s o ,   P o d G C   a d d s   a   P o d   d i s r u p t i o n   c o n d i t i o n   w h e n   c l e a n i n g   u p   a n   o r p h a n   P o d .   S e e   P o d   d i s r u p t i o n   c o n d i t i o n s   f o r   m o r e   d e t a i l s .


Question: What is What's next?

Answer: G e t   h a n d s - o n   e x p e r i e n c e   a t t a c h i n g   h a n d l e r s   t o   c o n t a i n e r   l i f e c y c l e   e v e n t s . G e t   h a n d s - o n   e x p e r i e n c e   c o n f i g u r i n g   L i v e n e s s ,   R e a d i n e s s   a n d   S t a r t u p   P r o b e s . L e a r n   m o r e   a b o u t   c o n t a i n e r   l i f e c y c l e   h o o k s . L e a r n   m o r e   a b o u t   s i d e c a r   c o n t a i n e r s . F o r   d e t a i l e d   i n f o r m a t i o n   a b o u t   P o d   a n d   c o n t a i n e r   s t a t u s   i n   t h e   A P I ,   s e e   t h e   A P I   r e f e r e n c e   d o c u m e n t a t i o n   c o v e r i n g   s t a t u s   f o r   P o d .   G e t   h a n d s - o n   e x p e r i e n c e   a t t a c h i n g   h a n d l e r s   t o   c o n t a i n e r   l i f e c y c l e   e v e n t s .   G e t   h a n d s - o n   e x p e r i e n c e   c o n f i g u r i n g   L i v e n e s s ,   R e a d i n e s s   a n d   S t a r t u p   P r o b e s .   L e a r n   m o r e   a b o u t   c o n t a i n e r   l i f e c y c l e   h o o k s .   L e a r n   m o r e   a b o u t   s i d e c a r   c o n t a i n e r s .   F o r   d e t a i l e d   i n f o r m a t i o n   a b o u t   P o d   a n d   c o n t a i n e r   s t a t u s   i n   t h e   A P I ,   s e e   t h e   A P I   r e f e r e n c e   d o c u m e n t a t i o n   c o v e r i n g   s t a t u s   f o r   P o d .


Question: What is Tasks?

Answer: This section of the Kubernetes documentation contains pages that show how to do individual tasks. A task page shows how to do a single thing, typically by giving a short sequence of steps.If you would like to write a task page, see Creating a Documentation Pull Request.Install ToolsSet up Kubernetes tools on your computer.Administer a ClusterLearn common tasks for administering a cluster.Configure Pods and ContainersPerform common configuration tasks for Pods and containers.Monitoring, Logging, and DebuggingSet up monitoring and logging to troubleshoot a cluster, or debug a containerized application.Manage Kubernetes ObjectsDeclarative and imperative paradigms for interacting with the Kubernetes API.Managing SecretsManaging confidential settings data using Secrets.Inject Data Into ApplicationsSpecify configuration and other data for the Pods that run your workload.Run ApplicationsRun and manage both stateless and stateful applications.Run JobsRun Jobs using parallel processing.Access Applications in a ClusterConfigure load balancing, port forwarding, or setup firewall or DNS configurations to access applications in a cluster.Extend KubernetesUnderstand advanced ways to adapt your Kubernetes cluster to the needs of your work environment.TLSUnderstand how to protect traffic within your cluster using Transport Layer Security (TLS).Manage Cluster DaemonsPerform common tasks for managing a DaemonSet, such as performing a rolling update.NetworkingLearn how to configure networking for your cluster.Extend kubectl with pluginsExtend kubectl by creating and installing kubectl plugins.Manage HugePagesConfigure and manage huge pages as a schedulable resource in a cluster.Schedule GPUsConfigure and schedule GPUs for use as a resource by nodes in a cluster.


Question: How does Tasks work?

Answer: This section of the Kubernetes documentation contains pages that show how to do individual tasks. A task page shows how to do a single thing, typically by giving a short sequence of steps.If you would like to write a task page, see Creating a Documentation Pull Request.Install ToolsSet up Kubernetes tools on your computer.Administer a ClusterLearn common tasks for administering a cluster.Configure Pods and ContainersPerform common configuration tasks for Pods and containers.Monitoring, Logging, and DebuggingSet up monitoring and logging to troubleshoot a cluster, or debug a containerized application.Manage Kubernetes ObjectsDeclarative and imperative paradigms for interacting with the Kubernetes API.Managing SecretsManaging confidential settings data using Secrets.Inject Data Into ApplicationsSpecify configuration and other data for the Pods that run your workload.Run ApplicationsRun and manage both stateless and stateful applications.Run JobsRun Jobs using parallel processing.Access Applications in a ClusterConfigure load balancing, port forwarding, or setup firewall or DNS configurations to access applications in a cluster.Extend KubernetesUnderstand advanced ways to adapt your Kubernetes cluster to the needs of your work environment.TLSUnderstand how to protect traffic within your cluster using Transport Layer Security (TLS).Manage Cluster DaemonsPerform common tasks for managing a DaemonSet, such as performing a rolling update.NetworkingLearn how to configure networking for your cluster.Extend kubectl with pluginsExtend kubectl by creating and installing kubectl plugins.Manage HugePagesConfigure and manage huge pages as a schedulable resource in a cluster.Schedule GPUsConfigure and schedule GPUs for use as a resource by nodes in a cluster.


Question: When would you use Tasks?

Answer: This section of the Kubernetes documentation contains pages that show how to do individual tasks. A task page shows how to do a single thing, typically by giving a short sequence of steps.If you would like to write a task page, see Creating a Documentation Pull Request.Install ToolsSet up Kubernetes tools on your computer.Administer a ClusterLearn common tasks for administering a cluster.Configure Pods and ContainersPerform common configuration tasks for Pods and containers.Monitoring, Logging, and DebuggingSet up monitoring and logging to troubleshoot a cluster, or debug a containerized application.Manage Kubernetes ObjectsDeclarative and imperative paradigms for interacting with the Kubernetes API.Managing SecretsManaging confidential settings data using Secrets.Inject Data Into ApplicationsSpecify configuration and other data for the Pods that run your workload.Run ApplicationsRun and manage both stateless and stateful applications.Run JobsRun Jobs using parallel processing.Access Applications in a ClusterConfigure load balancing, port forwarding, or setup firewall or DNS configurations to access applications in a cluster.Extend KubernetesUnderstand advanced ways to adapt your Kubernetes cluster to the needs of your work environment.TLSUnderstand how to protect traffic within your cluster using Transport Layer Security (TLS).Manage Cluster DaemonsPerform common tasks for managing a DaemonSet, such as performing a rolling update.NetworkingLearn how to configure networking for your cluster.Extend kubectl with pluginsExtend kubectl by creating and installing kubectl plugins.Manage HugePagesConfigure and manage huge pages as a schedulable resource in a cluster.Schedule GPUsConfigure and schedule GPUs for use as a resource by nodes in a cluster.


Question: What are the benefits of Tasks?

Answer: This section of the Kubernetes documentation contains pages that show how to do individual tasks. A task page shows how to do a single thing, typically by giving a short sequence of steps.If you would like to write a task page, see Creating a Documentation Pull Request.Install ToolsSet up Kubernetes tools on your computer.Administer a ClusterLearn common tasks for administering a cluster.Configure Pods and ContainersPerform common configuration tasks for Pods and containers.Monitoring, Logging, and DebuggingSet up monitoring and logging to troubleshoot a cluster, or debug a containerized application.Manage Kubernetes ObjectsDeclarative and imperative paradigms for interacting with the Kubernetes API.Managing SecretsManaging confidential settings data using Secrets.Inject Data Into ApplicationsSpecify configuration and other data for the Pods that run your workload.Run ApplicationsRun and manage both stateless and stateful applications.Run JobsRun Jobs using parallel processing.Access Applications in a ClusterConfigure load balancing, port forwarding, or setup firewall or DNS configurations to access applications in a cluster.Extend KubernetesUnderstand advanced ways to adapt your Kubernetes cluster to the needs of your work environment.TLSUnderstand how to protect traffic within your cluster using Transport Layer Security (TLS).Manage Cluster DaemonsPerform common tasks for managing a DaemonSet, such as performing a rolling update.NetworkingLearn how to configure networking for your cluster.Extend kubectl with pluginsExtend kubectl by creating and installing kubectl plugins.Manage HugePagesConfigure and manage huge pages as a schedulable resource in a cluster.Schedule GPUsConfigure and schedule GPUs for use as a resource by nodes in a cluster.


Question: What is Tasks?

Answer: K u b e r n e t e s   D o c u m e n t a t i o n   D o c u m e n t a t i o n   A v a i l a b l e   D o c u m e n t a t i o n   V e r s i o n s   G e t t i n g   s t a r t e d   L e a r n i n g   e n v i r o n m e n t   P r o d u c t i o n   e n v i r o n m e n t   C o n t a i n e r   R u n t i m e s   I n s t a l l i n g   K u b e r n e t e s   w i t h   d e p l o y m e n t   t o o l s   B o o t s t r a p p i n g   c l u s t e r s   w i t h   k u b e a d m   I n s t a l l i n g   k u b e a d m   T r o u b l e s h o o t i n g   k u b e a d m   C r e a t i n g   a   c l u s t e r   w i t h   k u b e a d m   C u s t o m i z i n g   c o m p o n e n t s   w i t h   t h e   k u b e a d m   A P I   O p t i o n s   f o r   H i g h l y   A v a i l a b l e   T o p o l o g y   C r e a t i n g   H i g h l y   A v a i l a b l e   C l u s t e r s   w i t h   k u b e a d m   S e t   u p   a   H i g h   A v a i l a b i l i t y   e t c d   C l u s t e r   w i t h   k u b e a d m   C o n f i g u r i n g   e a c h   k u b e l e t   i n   y o u r   c l u s t e r   u s i n g   k u b e a d m   D u a l - s t a c k   s u p p o r t   w i t h   k u b e a d m   T u r n k e y   C l o u d   S o l u t i o n s   B e s t   p r a c t i c e s   C o n s i d e r a t i o n s   f o r   l a r g e   c l u s t e r s   R u n n i n g   i n   m u l t i p l e   z o n e s   V a l i d a t e   n o d e   s e t u p   E n f o r c i n g   P o d   S e c u r i t y   S t a n d a r d s   P K I   c e r t i f i c a t e s   a n d   r e q u i r e m e n t s   C o n c e p t s   O v e r v i e w   K u b e r n e t e s   C o m p o n e n t s   O b j e c t s   I n   K u b e r n e t e s   K u b e r n e t e s   O b j e c t   M a n a g e m e n t   O b j e c t   N a m e s   a n d   I D s   L a b e l s   a n d   S e l e c t o r s   N a m e s p a c e s   A n n o t a t i o n s   F i e l d   S e l e c t o r s   F i n a l i z e r s   O w n e r s   a n d   D e p e n d e n t s   R e c o m m e n d e d   L a b e l s   T h e   K u b e r n e t e s


Question: What is Install Tools?

Answer: S e t   u p   K u b e r n e t e s   t o o l s   o n   y o u r   c o m p u t e r .


Question: What is Administer a Cluster?

Answer: L e a r n   c o m m o n   t a s k s   f o r   a d m i n i s t e r i n g   a   c l u s t e r .


Question: What is Configure Pods and Containers?

Answer: P e r f o r m   c o m m o n   c o n f i g u r a t i o n   t a s k s   f o r   P o d s   a n d   c o n t a i n e r s .


Question: What is Monitoring, Logging, and Debugging?

Answer: S e t   u p   m o n i t o r i n g   a n d   l o g g i n g   t o   t r o u b l e s h o o t   a   c l u s t e r ,   o r   d e b u g   a   c o n t a i n e r i z e d   a p p l i c a t i o n .


Question: What is Manage Kubernetes Objects?

Answer: D e c l a r a t i v e   a n d   i m p e r a t i v e   p a r a d i g m s   f o r   i n t e r a c t i n g   w i t h   t h e   K u b e r n e t e s   A P I .


Question: What is Managing Secrets?

Answer: M a n a g i n g   c o n f i d e n t i a l   s e t t i n g s   d a t a   u s i n g   S e c r e t s .


Question: What is Inject Data Into Applications?

Answer: S p e c i f y   c o n f i g u r a t i o n   a n d   o t h e r   d a t a   f o r   t h e   P o d s   t h a t   r u n   y o u r   w o r k l o a d .


Question: What is Run Applications?

Answer: R u n   a n d   m a n a g e   b o t h   s t a t e l e s s   a n d   s t a t e f u l   a p p l i c a t i o n s .


Question: What is Run Jobs?

Answer: R u n   J o b s   u s i n g   p a r a l l e l   p r o c e s s i n g .


Question: What is Access Applications in a Cluster?

Answer: C o n f i g u r e   l o a d   b a l a n c i n g ,   p o r t   f o r w a r d i n g ,   o r   s e t u p   f i r e w a l l   o r   D N S   c o n f i g u r a t i o n s   t o   a c c e s s   a p p l i c a t i o n s   i n   a   c l u s t e r .


Question: What is Extend Kubernetes?

Answer: U n d e r s t a n d   a d v a n c e d   w a y s   t o   a d a p t   y o u r   K u b e r n e t e s   c l u s t e r   t o   t h e   n e e d s   o f   y o u r   w o r k   e n v i r o n m e n t .


Question: What is TLS?

Answer: U n d e r s t a n d   h o w   t o   p r o t e c t   t r a f f i c   w i t h i n   y o u r   c l u s t e r   u s i n g   T r a n s p o r t   L a y e r   S e c u r i t y   ( T L S ) .


Question: What is Manage Cluster Daemons?

Answer: P e r f o r m   c o m m o n   t a s k s   f o r   m a n a g i n g   a   D a e m o n S e t ,   s u c h   a s   p e r f o r m i n g   a   r o l l i n g   u p d a t e .


Question: What is Networking?

Answer: L e a r n   h o w   t o   c o n f i g u r e   n e t w o r k i n g   f o r   y o u r   c l u s t e r .


Question: What is Extend kubectl with plugins?

Answer: E x t e n d   k u b e c t l   b y   c r e a t i n g   a n d   i n s t a l l i n g   k u b e c t l   p l u g i n s .


Question: What is Manage HugePages?

Answer: C o n f i g u r e   a n d   m a n a g e   h u g e   p a g e s   a s   a   s c h e d u l a b l e   r e s o u r c e   i n   a   c l u s t e r .


Question: What is Schedule GPUs?

Answer: C o n f i g u r e   a n d   s c h e d u l e   G P U s   f o r   u s e   a s   a   r e s o u r c e   b y   n o d e s   i n   a   c l u s t e r .


Question: What is kubectl kustomize?

Answer: kubectl kustomizeSynopsisBuild a set of KRM resources using a 'kustomization.yaml' file. The DIR argument must be a path to a directory containing 'kustomization.yaml', or a git repository URL with a path suffix specifying same with respect to the repository root. If DIR is omitted, '.' is assumed.kubectl kustomize DIR [flags] Examples # Build the current working directory kubectl kustomize # Build some shared configuration directory kubectl kustomize /home/config/production # Build from github kubectl kustomize https://github.com/kubernetes-sigs/kustomize.git/examples/helloWorld?ref=v1.0.6 Options--as-current-useruse the uid and gid of the command executor to run the function in the container--enable-alpha-pluginsenable kustomize plugins--enable-helmEnable use of the Helm chart inflator generator.-e, --env stringsa list of environment variables to be used by functions--helm-api-versions stringsKubernetes api versions used by Helm for Capabilities.APIVersions--helm-command string Default: "helm"helm command (path to executable)--helm-debugEnable debug output from the Helm chart inflator generator.--helm-kube-version stringKubernetes version used by Helm for Capabilities.KubeVersion-h, --helphelp for kustomize--load-restrictor string Default: "LoadRestrictionsRootOnly"if set to 'LoadRestrictionsNone', local kustomizations may load files from outside their root. This does, however, break the relocatability of the kustomization.--mount stringsa list of storage options read from the filesystem--networkenable network access for functions that declare it--network-name string Default: "bridge"the docker network to run the container in-o, --output stringIf specified, write output to this path.Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringPath to the kubeconfig file to use for CLI requests.--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for


Question: How does kubectl kustomize work?

Answer: kubectl kustomizeSynopsisBuild a set of KRM resources using a 'kustomization.yaml' file. The DIR argument must be a path to a directory containing 'kustomization.yaml', or a git repository URL with a path suffix specifying same with respect to the repository root. If DIR is omitted, '.' is assumed.kubectl kustomize DIR [flags] Examples # Build the current working directory kubectl kustomize # Build some shared configuration directory kubectl kustomize /home/config/production # Build from github kubectl kustomize https://github.com/kubernetes-sigs/kustomize.git/examples/helloWorld?ref=v1.0.6 Options--as-current-useruse the uid and gid of the command executor to run the function in the container--enable-alpha-pluginsenable kustomize plugins--enable-helmEnable use of the Helm chart inflator generator.-e, --env stringsa list of environment variables to be used by functions--helm-api-versions stringsKubernetes api versions used by Helm for Capabilities.APIVersions--helm-command string Default: "helm"helm command (path to executable)--helm-debugEnable debug output from the Helm chart inflator generator.--helm-kube-version stringKubernetes version used by Helm for Capabilities.KubeVersion-h, --helphelp for kustomize--load-restrictor string Default: "LoadRestrictionsRootOnly"if set to 'LoadRestrictionsNone', local kustomizations may load files from outside their root. This does, however, break the relocatability of the kustomization.--mount stringsa list of storage options read from the filesystem--networkenable network access for functions that declare it--network-name string Default: "bridge"the docker network to run the container in-o, --output stringIf specified, write output to this path.Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringPath to the kubeconfig file to use for CLI requests.--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for


Question: When would you use kubectl kustomize?

Answer: kubectl kustomizeSynopsisBuild a set of KRM resources using a 'kustomization.yaml' file. The DIR argument must be a path to a directory containing 'kustomization.yaml', or a git repository URL with a path suffix specifying same with respect to the repository root. If DIR is omitted, '.' is assumed.kubectl kustomize DIR [flags] Examples # Build the current working directory kubectl kustomize # Build some shared configuration directory kubectl kustomize /home/config/production # Build from github kubectl kustomize https://github.com/kubernetes-sigs/kustomize.git/examples/helloWorld?ref=v1.0.6 Options--as-current-useruse the uid and gid of the command executor to run the function in the container--enable-alpha-pluginsenable kustomize plugins--enable-helmEnable use of the Helm chart inflator generator.-e, --env stringsa list of environment variables to be used by functions--helm-api-versions stringsKubernetes api versions used by Helm for Capabilities.APIVersions--helm-command string Default: "helm"helm command (path to executable)--helm-debugEnable debug output from the Helm chart inflator generator.--helm-kube-version stringKubernetes version used by Helm for Capabilities.KubeVersion-h, --helphelp for kustomize--load-restrictor string Default: "LoadRestrictionsRootOnly"if set to 'LoadRestrictionsNone', local kustomizations may load files from outside their root. This does, however, break the relocatability of the kustomization.--mount stringsa list of storage options read from the filesystem--networkenable network access for functions that declare it--network-name string Default: "bridge"the docker network to run the container in-o, --output stringIf specified, write output to this path.Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringPath to the kubeconfig file to use for CLI requests.--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for


Question: What are the benefits of kubectl kustomize?

Answer: kubectl kustomizeSynopsisBuild a set of KRM resources using a 'kustomization.yaml' file. The DIR argument must be a path to a directory containing 'kustomization.yaml', or a git repository URL with a path suffix specifying same with respect to the repository root. If DIR is omitted, '.' is assumed.kubectl kustomize DIR [flags] Examples # Build the current working directory kubectl kustomize # Build some shared configuration directory kubectl kustomize /home/config/production # Build from github kubectl kustomize https://github.com/kubernetes-sigs/kustomize.git/examples/helloWorld?ref=v1.0.6 Options--as-current-useruse the uid and gid of the command executor to run the function in the container--enable-alpha-pluginsenable kustomize plugins--enable-helmEnable use of the Helm chart inflator generator.-e, --env stringsa list of environment variables to be used by functions--helm-api-versions stringsKubernetes api versions used by Helm for Capabilities.APIVersions--helm-command string Default: "helm"helm command (path to executable)--helm-debugEnable debug output from the Helm chart inflator generator.--helm-kube-version stringKubernetes version used by Helm for Capabilities.KubeVersion-h, --helphelp for kustomize--load-restrictor string Default: "LoadRestrictionsRootOnly"if set to 'LoadRestrictionsNone', local kustomizations may load files from outside their root. This does, however, break the relocatability of the kustomization.--mount stringsa list of storage options read from the filesystem--networkenable network access for functions that declare it--network-name string Default: "bridge"the docker network to run the container in-o, --output stringIf specified, write output to this path.Parent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringPath to the kubeconfig file to use for CLI requests.--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for


Question: What is Synopsis?

Answer: B u i l d   a   s e t   o f   K R M   r e s o u r c e s   u s i n g   a   ' k u s t o m i z a t i o n . y a m l '   f i l e .   T h e   D I R   a r g u m e n t   m u s t   b e   a   p a t h   t o   a   d i r e c t o r y   c o n t a i n i n g   ' k u s t o m i z a t i o n . y a m l ' ,   o r   a   g i t   r e p o s i t o r y   U R L   w i t h   a   p a t h   s u f f i x   s p e c i f y i n g   s a m e   w i t h   r e s p e c t   t o   t h e   r e p o s i t o r y   r o o t .   I f   D I R   i s   o m i t t e d ,   ' . '   i s   a s s u m e d .   k u b e c t l   k u s t o m i z e   D I R   [ f l a g s ]


Question: What is Examples?

Answer: #   B u i l d   t h e   c u r r e n t   w o r k i n g   d i r e c t o r y   k u b e c t l   k u s t o m i z e   #   B u i l d   s o m e   s h a r e d   c o n f i g u r a t i o n   d i r e c t o r y   k u b e c t l   k u s t o m i z e   / h o m e / c o n f i g / p r o d u c t i o n   #   B u i l d   f r o m   g i t h u b   k u b e c t l   k u s t o m i z e   h t t p s : / / g i t h u b . c o m / k u b e r n e t e s - s i g s / k u s t o m i z e . g i t / e x a m p l e s / h e l l o W o r l d ? r e f = v 1 . 0 . 6


Question: What is Options?

Answer: u s e   t h e   u i d   a n d   g i d   o f   t h e   c o m m a n d   e x e c u t o r   t o   r u n   t h e   f u n c t i o n   i n   t h e   c o n t a i n e r   e n a b l e   k u s t o m i z e   p l u g i n s   E n a b l e   u s e   o f   t h e   H e l m   c h a r t   i n f l a t o r   g e n e r a t o r .   a   l i s t   o f   e n v i r o n m e n t   v a r i a b l e s   t o   b e   u s e d   b y   f u n c t i o n s   K u b e r n e t e s   a p i   v e r s i o n s   u s e d   b y   H e l m   f o r   C a p a b i l i t i e s . A P I V e r s i o n s   h e l m   c o m m a n d   ( p a t h   t o   e x e c u t a b l e )   E n a b l e   d e b u g   o u t p u t   f r o m   t h e   H e l m   c h a r t   i n f l a t o r   g e n e r a t o r .   K u b e r n e t e s   v e r s i o n   u s e d   b y   H e l m   f o r   C a p a b i l i t i e s . K u b e V e r s i o n   h e l p   f o r   k u s t o m i z e   i f   s e t   t o   ' L o a d R e s t r i c t i o n s N o n e ' ,   l o c a l   k u s t o m i z a t i o n s   m a y   l o a d   f i l e s   f r o m   o u t s i d e   t h e i r   r o o t .   T h i s   d o e s ,   h o w e v e r ,   b r e a k   t h e   r e l o c a t a b i l i t y   o f   t h e   k u s t o m i z a t i o n .   a   l i s t   o f   s t o r a g e   o p t i o n s   r e a d   f r o m   t h e   f i l e s y s t e m   e n a b l e   n e t w o r k   a c c e s s   f o r   f u n c t i o n s   t h a t   d e c l a r e   i t   t h e   d o c k e r   n e t w o r k   t o   r u n   t h e   c o n t a i n e r   i n   I f   s p e c i f i e d ,   w r i t e   o u t p u t   t o   t h i s   p a t h .


Question: What is Parent Options Inherited?

Answer: U s e r n a m e   t o   i m p e r s o n a t e   f o r   t h e   o p e r a t i o n .   U s e r   c o u l d   b e   a   r e g u l a r   u s e r   o r   a   s e r v i c e   a c c o u n t   i n   a   n a m e s p a c e .   G r o u p   t o   i m p e r s o n a t e   f o r   t h e   o p e r a t i o n ,   t h i s   f l a g   c a n   b e   r e p e a t e d   t o   s p e c i f y   m u l t i p l e   g r o u p s .   U I D   t o   i m p e r s o n a t e   f o r   t h e   o p e r a t i o n .   D e f a u l t   c a c h e   d i r e c t o r y   P a t h   t o   a   c e r t   f i l e   f o r   t h e   c e r t i f i c a t e   a u t h o r i t y   P a t h   t o   a   c l i e n t   c e r t i f i c a t e   f i l e   f o r   T L S   P a t h   t o   a   c l i e n t   k e y   f i l e   f o r   T L S   T h e   n a m e   o f   t h e   k u b e c o n f i g   c l u s t e r   t o   u s e   T h e   n a m e   o f   t h e   k u b e c o n f i g   c o n t e x t   t o   u s e   I f   t r u e ,   o p t - o u t   o f   r e s p o n s e   c o m p r e s s i o n   f o r   a l l   r e q u e s t s   t o   t h e   s e r v e r   I f   t r u e ,   t h e   s e r v e r ' s   c e r t i f i c a t e   w i l l   n o t   b e   c h e c k e d   f o r   v a l i d i t y .   T h i s   w i l l   m a k e   y o u r   H T T P S   c o n n e c t i o n s   i n s e c u r e   P a t h   t o   t h e   k u b e c o n f i g   f i l e   t o   u s e   f o r   C L I   r e q u e s t s .   P a t h   t o   t h e   k u b e r c   f i l e   t o   u s e   f o r   p r e f e r e n c e s .   T h i s   c a n   b e   d i s a b l e d   b y   e x p o r t i n g   K U B E C T L _ K U B E R C = f a l s e   f e a t u r e   g a t e   o r   t u r n i n g   o f f   t h e   f e a t u r e   K U B E R C = o f f .   R e q u i r e   s e r v e r   v e r s i o n   t o   m a t c h   c l i e n t   v e r s i o n   I f   p r e s e n t ,   t h e   n a m e s p a c e   s c o p e   f o r   t h i s   C L I   r e q u e s t   P a s s w o r d   f o r   b a s i c   a u t h e n t i c a t


Question: What is See Also?

Answer: k u b e c t l   -   k u b e c t l   c o n t r o l s   t h e   K u b e r n e t e s   c l u s t e r   m a n a g e r   T h i s   p a g e   i s   a u t o m a t i c a l l y   g e n e r a t e d .   I f   y o u   p l a n   t o   r e p o r t   a n   i s s u e   w i t h   t h i s   p a g e ,   m e n t i o n   t h a t   t h e   p a g e   i s   a u t o - g e n e r a t e d   i n   y o u r   i s s u e   d e s c r i p t i o n .   T h e   f i x   m a y   n e e d   t o   h a p p e n   e l s e w h e r e   i n   t h e   K u b e r n e t e s   p r o j e c t .