Question: What is Note:?

Answer: I f   y o u r   s t o r a g e   p l u g i n   s u p p o r t s   D y n a m i c   p r o v i s i o n i n g ,   t h e   " c a t - p i c u t r e s - p v "   w i l l   b e   c r e a t e d   f o r   y o u ,   b u t   i t s   n a m e   m a y   d i f f e r .   T o   g e t   y o u r   P e r s i s t e n t V o l u m e ' s   n a m e   r u n :   k u b e c t l   g e t   p v c   c a t - p i c t u r e s - p v c   - o   j s o n p a t h = ' { . s p e c . v o l u m e N a m e } '   A n d   y o u   c a n   v i e w   t h e   P V C   b e f o r e   y o u   m a k e   c h a n g e s .   E i t h e r   v i e w   t h e   m a n i f e s t   l o c a l l y ,   o r   r u n   k u b e c t l   g e t   p v c   < n a m e - o f - p v c >   - o   y a m l .   T h e   o u t p u t   i s   s i m i l a r   t o :   #   c a t - p i c t u r e s - p v c . y a m l   k i n d :   P e r s i s t e n t V o l u m e C l a i m   a p i V e r s i o n :   v 1   m e t a d a t a :   n a m e :   c a t - p i c t u r e s - p v c   s p e c :   a c c e s s M o d e s :   -   R e a d W r i t e O n c e   r e s o u r c e s :   r e q u e s t s :   s t o r a g e :   1 G i   H e r e ' s   a n   e x a m p l e   D e p l o y m e n t   t h a t   r e l i e s   o n   t h a t   P e r s i s t e n t V o l u m e C l a i m :   #   c a t - p i c t u r e s - w r i t e r - d e p l o y m e n t . y a m l   a p i V e r s i o n :   a p p s / v 1   k i n d :   D e p l o y m e n t   m e t a d a t a :   n a m e :   c a t - p i c t u r e s - w r i t e r   s p e c :   r e p l i c a s :   3   s e l e c t o r :   m a t c h L a b e l s :   a p p :   c a t - p i c t u r e s - w r i t e r   t e m p l a t e :   m e t a d a t a :   l a b e l s :   a p p :   c a t - p i c t u r e s - w r i t e r   s p e c :   c o n t a i n e r s :   -   n a m e :   n g i n x   i m a g e :   n g i n x : 1 . 1 4 . 2   p o r t s :   -   c o n t a i n e r P o r t :   8 0   v o l u m e M o u n t s :   -   n a m e :   c a t - p i c t u r e s   m o u n t P a t h :   / m n t   v o l u m e s :   -


Question: What is What's next?

Answer: L e a r n   m o r e   a b o u t   P e r s i s t e n t V o l u m e s . L e a r n   m o r e   a b o u t   P e r s i s t e n t V o l u m e C l a i m s . L e a r n   m o r e   a b o u t   C o n f i g u r i n g   a   P o d   t o   U s e   a   P e r s i s t e n t V o l u m e   f o r   S t o r a g e


Question: What is Resize CPU and Memory Resources assigned to Containers?

Answer: Resize CPU and Memory Resources assigned to ContainersFEATURE STATE: Kubernetes v1.33 [beta] (enabled by default: true)This page explains how to change the CPU and memory resource requests and limits assigned to a container without recreating the Pod.Traditionally, changing a Pod's resource requirements necessitated deleting the existing Pod and creating a replacement, often managed by a workload controller. In-place Pod Resize allows changing the CPU/memory allocation of container(s) within a running Pod while potentially avoiding application disruption.Key Concepts:Desired Resources: A container's spec.containers[*].resources represent the desired resources for the container, and are mutable for CPU and memory.Actual Resources: The status.containerStatuses[*].resources field reflects the resources currently configured for a running container. For containers that haven't started or were restarted, it reflects the resources allocated upon their


Question: How does Resize CPU and Memory Resources assigned to Containers work?

Answer: Resize CPU and Memory Resources assigned to ContainersFEATURE STATE: Kubernetes v1.33 [beta] (enabled by default: true)This page explains how to change the CPU and memory resource requests and limits assigned to a container without recreating the Pod.Traditionally, changing a Pod's resource requirements necessitated deleting the existing Pod and creating a replacement, often managed by a workload controller. In-place Pod Resize allows changing the CPU/memory allocation of container(s) within a running Pod while potentially avoiding application disruption.Key Concepts:Desired Resources: A container's spec.containers[*].resources represent the desired resources for the container, and are mutable for CPU and memory.Actual Resources: The status.containerStatuses[*].resources field reflects the resources currently configured for a running container. For containers that haven't started or were restarted, it reflects the resources allocated upon their


Question: When would you use Resize CPU and Memory Resources assigned to Containers?

Answer: Resize CPU and Memory Resources assigned to ContainersFEATURE STATE: Kubernetes v1.33 [beta] (enabled by default: true)This page explains how to change the CPU and memory resource requests and limits assigned to a container without recreating the Pod.Traditionally, changing a Pod's resource requirements necessitated deleting the existing Pod and creating a replacement, often managed by a workload controller. In-place Pod Resize allows changing the CPU/memory allocation of container(s) within a running Pod while potentially avoiding application disruption.Key Concepts:Desired Resources: A container's spec.containers[*].resources represent the desired resources for the container, and are mutable for CPU and memory.Actual Resources: The status.containerStatuses[*].resources field reflects the resources currently configured for a running container. For containers that haven't started or were restarted, it reflects the resources allocated upon their


Question: What are the benefits of Resize CPU and Memory Resources assigned to Containers?

Answer: Resize CPU and Memory Resources assigned to ContainersFEATURE STATE: Kubernetes v1.33 [beta] (enabled by default: true)This page explains how to change the CPU and memory resource requests and limits assigned to a container without recreating the Pod.Traditionally, changing a Pod's resource requirements necessitated deleting the existing Pod and creating a replacement, often managed by a workload controller. In-place Pod Resize allows changing the CPU/memory allocation of container(s) within a running Pod while potentially avoiding application disruption.Key Concepts:Desired Resources: A container's spec.containers[*].resources represent the desired resources for the container, and are mutable for CPU and memory.Actual Resources: The status.containerStatuses[*].resources field reflects the resources currently configured for a running container. For containers that haven't started or were restarted, it reflects the resources allocated upon their


Question: What is Resize CPU and Memory Resources assigned to Containers?

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


Question: What is Before you begin?

Answer: Y o u   n e e d   t o   h a v e   a   K u b e r n e t e s   c l u s t e r ,   a n d   t h e   k u b e c t l   c o m m a n d - l i n e   t o o l   m u s t   b e   c o n f i g u r e d   t o   c o m m u n i c a t e   w i t h   y o u r   c l u s t e r .   I t   i s   r e c o m m e n d e d   t o   r u n   t h i s   t u t o r i a l   o n   a   c l u s t e r   w i t h   a t   l e a s t   t w o   n o d e s   t h a t   a r e   n o t   a c t i n g   a s   c o n t r o l   p l a n e   h o s t s .   I f   y o u   d o   n o t   a l r e a d y   h a v e   a   c l u s t e r ,   y o u   c a n   c r e a t e   o n e   b y   u s i n g   m i n i k u b e   o r   y o u   c a n   u s e   o n e   o f   t h e s e   K u b e r n e t e s   p l a y g r o u n d s : i x i m i u z   L a b s K i l l e r c o d a K o d e K l o u d P l a y   w i t h   K u b e r n e t e s Y o u r   K u b e r n e t e s   s e r v e r   m u s t   b e   a t   o r   l a t e r   t h a n   v e r s i o n   1 . 3 3 . T o   c h e c k   t h e   v e r s i o n ,   e n t e r   k u b e c t l   v e r s i o n .   Y o u   n e e d   t o   h a v e   a   K u b e r n e t e s   c l u s t e r ,   a n d   t h e   k u b e c t l   c o m m a n d - l i n e   t o o l   m u s t   b e   c o n f i g u r e d   t o   c o m m u n i c a t e   w i t h   y o u r   c l u s t e r .   I t   i s   r e c o m m e n d e d   t o   r u n   t h i s   t u t o r i a l   o n   a   c l u s t e r   w i t h   a t   l e a s t   t w o   n o d e s   t h a t   a r e   n o t   a c t i n g   a s   c o n t r o l   p l a n e   h o s t s .   I f   y o u   d o   n o t   a l r e a d y   h a v e   a   c l u s t e r ,   y o u   c a n   c r e a t e   o n e   b y   u s i n g   m i n i k u b e   o r   y o u   c a n   u s e   o n e   o f   t h e s e   K u b e r n e t e s   p l a y g r o u n d s :   i x i m i u z   L a b s K i l l e r c o d a K o d e K l o u d P l a y   w i t h   K u b e r n e t e s   T o   c h e c k   t h e   v e r s i o n ,   e n t e r   k u b e c t l   v e r s i o n .   T


Question: What is Pod resize status?

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


Question: What is How kubelet retries Deferred resizes?

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


Question: What is Leveraging observedGeneration Fields?

Answer: T h e   t o p - l e v e l   s t a t u s . o b s e r v e d G e n e r a t i o n   f i e l d   s h o w s   t h e   m e t a d a t a . g e n e r a t i o n   c o r r e s p o n d i n g   t o   t h e   l a t e s t   p o d   s p e c i f i c a t i o n   t h a t   t h e   k u b e l e t   h a s   a c k n o w l e d g e d .   Y o u   c a n   u s e   t h i s   t o   d e t e r m i n e   t h e   m o s t   r e c e n t   r e s i z e   r e q u e s t   t h e   k u b e l e t   h a s   p r o c e s s e d . I n   t h e   P o d R e s i z e I n P r o g r e s s   c o n d i t i o n ,   t h e   c o n d i t i o n s [ ] . o b s e r v e d G e n e r a t i o n   f i e l d   i n d i c a t e s   t h e   m e t a d a t a . g e n e r a t i o n   o f   t h e   p o d S p e c   w h e n   t h e   c u r r e n t   i n - p r o g r e s s   r e s i z e   w a s   i n i t i a t e d . I n   t h e   P o d R e s i z e P e n d i n g   c o n d i t i o n ,   t h e   c o n d i t i o n s [ ] . o b s e r v e d G e n e r a t i o n   f i e l d   i n d i c a t e s   t h e   m e t a d a t a . g e n e r a t i o n   o f   t h e   p o d S p e c   w h e n   t h e   p e n d i n g   r e s i z e ' s   a l l o c a t i o n   w a s   l a s t   a t t e m p t e d .


Question: What is Container resize policies?

Answer: Y o u   c a n   c o n t r o l   w h e t h e r   a   c o n t a i n e r   s h o u l d   b e   r e s t a r t e d   w h e n   r e s i z i n g   b y   s e t t i n g   r e s i z e P o l i c y   i n   t h e   c o n t a i n e r   s p e c i f i c a t i o n .   T h i s   a l l o w s   f i n e - g r a i n e d   c o n t r o l   b a s e d   o n   r e s o u r c e   t y p e   ( C P U   o r   m e m o r y ) .   r e s i z e P o l i c y :   -   r e s o u r c e N a m e :   c p u   r e s t a r t P o l i c y :   N o t R e q u i r e d   -   r e s o u r c e N a m e :   m e m o r y   r e s t a r t P o l i c y :   R e s t a r t C o n t a i n e r   N o t R e q u i r e d :   ( D e f a u l t )   A p p l y   t h e   r e s o u r c e   c h a n g e   t o   t h e   r u n n i n g   c o n t a i n e r   w i t h o u t   r e s t a r t i n g   i t . R e s t a r t C o n t a i n e r :   R e s t a r t   t h e   c o n t a i n e r   t o   a p p l y   t h e   n e w   r e s o u r c e   v a l u e s .   T h i s   i s   o f t e n   n e c e s s a r y   f o r   m e m o r y   c h a n g e s   b e c a u s e   m a n y   a p p l i c a t i o n s   a n d   r u n t i m e s   c a n n o t   a d j u s t   t h e i r   m e m o r y   a l l o c a t i o n   d y n a m i c a l l y .   I f   r e s i z e P o l i c y [ * ] . r e s t a r t P o l i c y   i s   n o t   s p e c i f i e d   f o r   a   r e s o u r c e ,   i t   d e f a u l t s   t o   N o t R e q u i r e d .


Question: What is Note:?

Answer: E x a m p l e   S c e n a r i o :   C o n s i d e r   a   c o n t a i n e r   c o n f i g u r e d   w i t h   r e s t a r t P o l i c y :   N o t R e q u i r e d   f o r   C P U   a n d   r e s t a r t P o l i c y :   R e s t a r t C o n t a i n e r   f o r   m e m o r y .   I f   o n l y   C P U   r e s o u r c e s   a r e   c h a n g e d ,   t h e   c o n t a i n e r   i s   r e s i z e d   i n - p l a c e . I f   o n l y   m e m o r y   r e s o u r c e s   a r e   c h a n g e d ,   t h e   c o n t a i n e r   i s   r e s t a r t e d . I f   b o t h   C P U   a n d   m e m o r y   r e s o u r c e s   a r e   c h a n g e d   s i m u l t a n e o u s l y ,   t h e   c o n t a i n e r   i s   r e s t a r t e d   ( d u e   t o   t h e   m e m o r y   p o l i c y ) .


Question: What is Limitations?

Answer: F o r   K u b e r n e t e s   1 . 3 4 ,   r e s i z i n g   p o d   r e s o u r c e s   i n - p l a c e   h a s   t h e   f o l l o w i n g   l i m i t a t i o n s :   R e s o u r c e   T y p e s :   O n l y   C P U   a n d   m e m o r y   r e s o u r c e s   c a n   b e   r e s i z e d . M e m o r y   D e c r e a s e :   I f   t h e   m e m o r y   r e s i z e   r e s t a r t   p o l i c y   i s   N o t R e q u i r e d   ( o r   u n s p e c i f i e d ) ,   t h e   k u b e l e t   w i l l   m a k e   a   b e s t - e f f o r t   a t t e m p t   t o   p r e v e n t   o o m - k i l l s   w h e n   d e c r e a s i n g   m e m o r y   l i m i t s ,   b u t   d o e s n ' t   p r o v i d e   a n y   g u a r a n t e e s .   B e f o r e   d e c r e a s i n g   c o n t a i n e r   m e m o r y   l i m i t s ,   i f   m e m o r y   u s a g e   e x c e e d s   t h e   r e q u e s t e d   l i m i t ,   t h e   r e s i z e   w i l l   b e   s k i p p e d   a n d   t h e   s t a t u s   w i l l   r e m a i n   i n   a n   " I n   P r o g r e s s "   s t a t e .   T h i s   i s   c o n s i d e r e d   b e s t - e f f o r t   b e c a u s e   i t   i s   s t i l l   s u b j e c t   t o   a   r a c e   c o n d i t i o n   w h e r e   m e m o r y   u s a g e   m a y   s p i k e   r i g h t   a f t e r   t h e   c h e c k   i s   p e r f o r m e d . Q o S   C l a s s :   T h e   P o d ' s   o r i g i n a l   Q u a l i t y   o f   S e r v i c e   ( Q o S )   c l a s s   ( G u a r a n t e e d ,   B u r s t a b l e ,   o r   B e s t E f f o r t )   i s   d e t e r m i n e d   a t   c r e a t i o n   a n d   c a n n o t   b e   c h a n g e d   b y   a   r e s i z e .   T h e   r e s i z e d   r e s o u r c e   v a l u e s   m u s t   s t i l l   a d h e r e   t o   t h e   r u l e s   o f   t h e   o r i g i n a l   Q o S   c l a s s : G u a r a n t e e d :   R e q u e s t s   m u s t   c o n t i n u e   t o   e q u a l   l i m i t s   f o r   b o t h   C P U   a n d   m e m o r y   a f t e


Question: What is Example 1: Resizing CPU without restart?

Answer: F i r s t ,   c r e a t e   a   P o d   d e s i g n e d   f o r   i n - p l a c e   C P U   r e s i z e   a n d   r e s t a r t - r e q u i r e d   m e m o r y   r e s i z e .   a p i V e r s i o n :   v 1   k i n d :   P o d   m e t a d a t a :   n a m e :   r e s i z e - d e m o   s p e c :   c o n t a i n e r s :   -   n a m e :   p a u s e   i m a g e :   r e g i s t r y . k 8 s . i o / p a u s e : 3 . 8   r e s i z e P o l i c y :   -   r e s o u r c e N a m e :   c p u   r e s t a r t P o l i c y :   N o t R e q u i r e d   #   D e f a u l t ,   b u t   e x p l i c i t   h e r e   -   r e s o u r c e N a m e :   m e m o r y   r e s t a r t P o l i c y :   R e s t a r t C o n t a i n e r   r e s o u r c e s :   l i m i t s :   m e m o r y :   " 2 0 0 M i "   c p u :   " 7 0 0 m "   r e q u e s t s :   m e m o r y :   " 2 0 0 M i "   c p u :   " 7 0 0 m "   C r e a t e   t h e   p o d :   k u b e c t l   c r e a t e   - f   p o d - r e s i z e . y a m l   T h i s   p o d   s t a r t s   i n   t h e   G u a r a n t e e d   Q o S   c l a s s .   V e r i f y   i t s   i n i t i a l   s t a t e :   #   W a i t   a   m o m e n t   f o r   t h e   p o d   t o   b e   r u n n i n g   k u b e c t l   g e t   p o d   r e s i z e - d e m o   - - o u t p u t = y a m l   O b s e r v e   t h e   s p e c . c o n t a i n e r s [ 0 ] . r e s o u r c e s   a n d   s t a t u s . c o n t a i n e r S t a t u s e s [ 0 ] . r e s o u r c e s .   T h e y   s h o u l d   m a t c h   t h e   m a n i f e s t   ( 7 0 0 m   C P U ,   2 0 0 M i   m e m o r y ) .   N o t e   t h e   s t a t u s . c o n t a i n e r S t a t u s e s [ 0 ] . r e s t a r t C o u n t   ( s h o u l d   b e   0 ) .   N o w ,   i n c r e a s e   t h e   C P U   r e q u e s t   a n d   l i m i t   t o   8 0 0 m .   Y o u   u s e   k u b e c t l   p a t c h   w i t h   t h e   - - s u b r e s o u r c e   r e s i z e   c o m m a n d   l i n e   a r g u m e n t .   k u b e c t l   p a t c h   p o d   r e s i z e - d e m


Question: What is Note:?

Answer: C h e c k   t h e   p o d   s t a t u s   a g a i n   a f t e r   p a t c h i n g :   k u b e c t l   g e t   p o d   r e s i z e - d e m o   - - o u t p u t = y a m l   - - n a m e s p a c e = q o s - e x a m p l e   Y o u   s h o u l d   s e e :   s p e c . c o n t a i n e r s [ 0 ] . r e s o u r c e s   n o w   s h o w s   c p u :   8 0 0 m . s t a t u s . c o n t a i n e r S t a t u s e s [ 0 ] . r e s o u r c e s   a l s o   s h o w s   c p u :   8 0 0 m ,   i n d i c a t i n g   t h e   r e s i z e   w a s   s u c c e s s f u l   o n   t h e   n o d e . s t a t u s . c o n t a i n e r S t a t u s e s [ 0 ] . r e s t a r t C o u n t   r e m a i n s   0 ,   b e c a u s e   t h e   C P U   r e s i z e P o l i c y   w a s   N o t R e q u i r e d .


Question: What is Example 2: Resizing memory with restart?

Answer: N o w ,   r e s i z e   t h e   m e m o r y   f o r   t h e   s a m e   p o d   b y   i n c r e a s i n g   i t   t o   3 0 0 M i .   S i n c e   t h e   m e m o r y   r e s i z e P o l i c y   i s   R e s t a r t C o n t a i n e r ,   t h e   c o n t a i n e r   i s   e x p e c t e d   t o   r e s t a r t .   k u b e c t l   p a t c h   p o d   r e s i z e - d e m o   - - s u b r e s o u r c e   r e s i z e   - - p a t c h   \   ' { " s p e c " : { " c o n t a i n e r s " : [ { " n a m e " : " p a u s e " ,   " r e s o u r c e s " : { " r e q u e s t s " : { " m e m o r y " : " 3 0 0 M i " } ,   " l i m i t s " : { " m e m o r y " : " 3 0 0 M i " } } } ] } } '   C h e c k   t h e   p o d   s t a t u s   s h o r t l y   a f t e r   p a t c h i n g :   k u b e c t l   g e t   p o d   r e s i z e - d e m o   - - o u t p u t = y a m l   Y o u   s h o u l d   n o w   o b s e r v e :   s p e c . c o n t a i n e r s [ 0 ] . r e s o u r c e s   s h o w s   m e m o r y :   3 0 0 M i . s t a t u s . c o n t a i n e r S t a t u s e s [ 0 ] . r e s o u r c e s   a l s o   s h o w s   m e m o r y :   3 0 0 M i . s t a t u s . c o n t a i n e r S t a t u s e s [ 0 ] . r e s t a r t C o u n t   h a s   i n c r e a s e d   t o   1   ( o r   m o r e ,   i f   r e s t a r t s   h a p p e n e d   p r e v i o u s l y ) ,   i n d i c a t i n g   t h e   c o n t a i n e r   w a s   r e s t a r t e d   t o   a p p l y   t h e   m e m o r y   c h a n g e .


Question: What is Clean up?

Answer: D e l e t e   t h e   p o d :   k u b e c t l   d e l e t e   p o d   r e s i z e - d e m o


Question: What is For application developers?

Answer: A s s i g n   M e m o r y   R e s o u r c e s   t o   C o n t a i n e r s   a n d   P o d s A s s i g n   C P U   R e s o u r c e s   t o   C o n t a i n e r s   a n d   P o d s A s s i g n   P o d - l e v e l   C P U   a n d   m e m o r y   r e s o u r c e s   A s s i g n   M e m o r y   R e s o u r c e s   t o   C o n t a i n e r s   a n d   P o d s   A s s i g n   C P U   R e s o u r c e s   t o   C o n t a i n e r s   a n d   P o d s   A s s i g n   P o d - l e v e l   C P U   a n d   m e m o r y   r e s o u r c e s


Question: What is For cluster administrators?

Answer: C o n f i g u r e   D e f a u l t   M e m o r y   R e q u e s t s   a n d   L i m i t s   f o r   a   N a m e s p a c e C o n f i g u r e   D e f a u l t   C P U   R e q u e s t s   a n d   L i m i t s   f o r   a   N a m e s p a c e C o n f i g u r e   M i n i m u m   a n d   M a x i m u m   M e m o r y   C o n s t r a i n t s   f o r   a   N a m e s p a c e C o n f i g u r e   M i n i m u m   a n d   M a x i m u m   C P U   C o n s t r a i n t s   f o r   a   N a m e s p a c e C o n f i g u r e   M e m o r y   a n d   C P U   Q u o t a s   f o r   a   N a m e s p a c e   C o n f i g u r e   D e f a u l t   M e m o r y   R e q u e s t s   a n d   L i m i t s   f o r   a   N a m e s p a c e   C o n f i g u r e   D e f a u l t   C P U   R e q u e s t s   a n d   L i m i t s   f o r   a   N a m e s p a c e   C o n f i g u r e   M i n i m u m   a n d   M a x i m u m   M e m o r y   C o n s t r a i n t s   f o r   a   N a m e s p a c e   C o n f i g u r e   M i n i m u m   a n d   M a x i m u m   C P U   C o n s t r a i n t s   f o r   a   N a m e s p a c e   C o n f i g u r e   M e m o r y   a n d   C P U   Q u o t a s   f o r   a   N a m e s p a c e


Question: What is LimitRange?

Answer: LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.apiVersion: v1import "k8s.io/api/core/v1"LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.apiVersion: v1kind: LimitRangemetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (LimitRangeSpec)Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusLimitRangeSpecLimitRangeSpec defines a min/max usage limit for resources that match on kind.limits ([]LimitRangeItem), requiredAtomic: will be replaced during a mergeLimits is the list of LimitRangeItem objects that are enforced.LimitRangeItem defines a min/max usage limit for any resource that matches on kind.limits.type (string), requiredType of resource that this limit applies to.limits.default (map[string]Quantity)Default resource requirement limit value by resource name if resource limit is omitted.limits.defaultRequest (map[string]Quantity)DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.limits.max (map[string]Quantity)Max usage constraints on this kind by resource name.limits.maxLimitRequestRatio (map[string]Quantity)MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.limits.min (map[string]Quantity)Min usage constraints on this kind by resource name.LimitRangeListLimitRangeList is a list of LimitRange items.apiVersion: v1kind: LimitRangeListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsitems ([]LimitRange), requiredItems is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/Operationsget read the specified LimitRangeHTTP RequestGET /api/v1/namespaces/{namespace}/limitranges/{name}Parametersname (in path): string, requiredname of the LimitRangenamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (LimitRange): OK401: Unauthorizedlist list or watch objects of kind LimitRangeHTTP RequestGET /api/v1/namespaces/{namespace}/limitrangesParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (


Question: How does LimitRange work?

Answer: LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.apiVersion: v1import "k8s.io/api/core/v1"LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.apiVersion: v1kind: LimitRangemetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (LimitRangeSpec)Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusLimitRangeSpecLimitRangeSpec defines a min/max usage limit for resources that match on kind.limits ([]LimitRangeItem), requiredAtomic: will be replaced during a mergeLimits is the list of LimitRangeItem objects that are enforced.LimitRangeItem defines a min/max usage limit for any resource that matches on kind.limits.type (string), requiredType of resource that this limit applies to.limits.default (map[string]Quantity)Default resource requirement limit value by resource name if resource limit is omitted.limits.defaultRequest (map[string]Quantity)DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.limits.max (map[string]Quantity)Max usage constraints on this kind by resource name.limits.maxLimitRequestRatio (map[string]Quantity)MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.limits.min (map[string]Quantity)Min usage constraints on this kind by resource name.LimitRangeListLimitRangeList is a list of LimitRange items.apiVersion: v1kind: LimitRangeListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsitems ([]LimitRange), requiredItems is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/Operationsget read the specified LimitRangeHTTP RequestGET /api/v1/namespaces/{namespace}/limitranges/{name}Parametersname (in path): string, requiredname of the LimitRangenamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (LimitRange): OK401: Unauthorizedlist list or watch objects of kind LimitRangeHTTP RequestGET /api/v1/namespaces/{namespace}/limitrangesParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (


Question: When would you use LimitRange?

Answer: LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.apiVersion: v1import "k8s.io/api/core/v1"LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.apiVersion: v1kind: LimitRangemetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (LimitRangeSpec)Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusLimitRangeSpecLimitRangeSpec defines a min/max usage limit for resources that match on kind.limits ([]LimitRangeItem), requiredAtomic: will be replaced during a mergeLimits is the list of LimitRangeItem objects that are enforced.LimitRangeItem defines a min/max usage limit for any resource that matches on kind.limits.type (string), requiredType of resource that this limit applies to.limits.default (map[string]Quantity)Default resource requirement limit value by resource name if resource limit is omitted.limits.defaultRequest (map[string]Quantity)DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.limits.max (map[string]Quantity)Max usage constraints on this kind by resource name.limits.maxLimitRequestRatio (map[string]Quantity)MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.limits.min (map[string]Quantity)Min usage constraints on this kind by resource name.LimitRangeListLimitRangeList is a list of LimitRange items.apiVersion: v1kind: LimitRangeListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsitems ([]LimitRange), requiredItems is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/Operationsget read the specified LimitRangeHTTP RequestGET /api/v1/namespaces/{namespace}/limitranges/{name}Parametersname (in path): string, requiredname of the LimitRangenamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (LimitRange): OK401: Unauthorizedlist list or watch objects of kind LimitRangeHTTP RequestGET /api/v1/namespaces/{namespace}/limitrangesParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (


Question: What are the benefits of LimitRange?

Answer: LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.apiVersion: v1import "k8s.io/api/core/v1"LimitRangeLimitRange sets resource usage limits for each kind of resource in a Namespace.apiVersion: v1kind: LimitRangemetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (LimitRangeSpec)Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-statusLimitRangeSpecLimitRangeSpec defines a min/max usage limit for resources that match on kind.limits ([]LimitRangeItem), requiredAtomic: will be replaced during a mergeLimits is the list of LimitRangeItem objects that are enforced.LimitRangeItem defines a min/max usage limit for any resource that matches on kind.limits.type (string), requiredType of resource that this limit applies to.limits.default (map[string]Quantity)Default resource requirement limit value by resource name if resource limit is omitted.limits.defaultRequest (map[string]Quantity)DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.limits.max (map[string]Quantity)Max usage constraints on this kind by resource name.limits.maxLimitRequestRatio (map[string]Quantity)MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.limits.min (map[string]Quantity)Min usage constraints on this kind by resource name.LimitRangeListLimitRangeList is a list of LimitRange items.apiVersion: v1kind: LimitRangeListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsitems ([]LimitRange), requiredItems is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/Operationsget read the specified LimitRangeHTTP RequestGET /api/v1/namespaces/{namespace}/limitranges/{name}Parametersname (in path): string, requiredname of the LimitRangenamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (LimitRange): OK401: Unauthorizedlist list or watch objects of kind LimitRangeHTTP RequestGET /api/v1/namespaces/{namespace}/limitrangesParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (


Question: What is LimitRange?

Answer: a p i V e r s i o n :   v 1   i m p o r t   " k 8 s . i o / a p i / c o r e / v 1 "


Question: What is LimitRange?

Answer: L i m i t R a n g e   s e t s   r e s o u r c e   u s a g e   l i m i t s   f o r   e a c h   k i n d   o f   r e s o u r c e   i n   a   N a m e s p a c e .   a p i V e r s i o n :   v 1 k i n d :   L i m i t R a n g e m e t a d a t a   ( O b j e c t M e t a ) S t a n d a r d   o b j e c t ' s   m e t a d a t a .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # m e t a d a t a s p e c   ( L i m i t R a n g e S p e c ) S p e c   d e f i n e s   t h e   l i m i t s   e n f o r c e d .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # s p e c - a n d - s t a t u s   a p i V e r s i o n :   v 1   k i n d :   L i m i t R a n g e   m e t a d a t a   ( O b j e c t M e t a )   S t a n d a r d   o b j e c t ' s   m e t a d a t a .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # m e t a d a t a   s p e c   ( L i m i t R a n g e S p e c )   S p e c   d e f i n e s   t h e   l i m i t s   e n f o r c e d .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # s p e c - a n d - s t a t u s


Question: What is LimitRangeSpec?

Answer: L i m i t R a n g e S p e c   d e f i n e s   a   m i n / m a x   u s a g e   l i m i t   f o r   r e s o u r c e s   t h a t   m a t c h   o n   k i n d .   l i m i t s   ( [ ] L i m i t R a n g e I t e m ) ,   r e q u i r e d A t o m i c :   w i l l   b e   r e p l a c e d   d u r i n g   a   m e r g e L i m i t s   i s   t h e   l i s t   o f   L i m i t R a n g e I t e m   o b j e c t s   t h a t   a r e   e n f o r c e d . L i m i t R a n g e I t e m   d e f i n e s   a   m i n / m a x   u s a g e   l i m i t   f o r   a n y   r e s o u r c e   t h a t   m a t c h e s   o n   k i n d . l i m i t s . t y p e   ( s t r i n g ) ,   r e q u i r e d T y p e   o f   r e s o u r c e   t h a t   t h i s   l i m i t   a p p l i e s   t o . l i m i t s . d e f a u l t   ( m a p [ s t r i n g ] Q u a n t i t y ) D e f a u l t   r e s o u r c e   r e q u i r e m e n t   l i m i t   v a l u e   b y   r e s o u r c e   n a m e   i f   r e s o u r c e   l i m i t   i s   o m i t t e d . l i m i t s . d e f a u l t R e q u e s t   ( m a p [ s t r i n g ] Q u a n t i t y ) D e f a u l t R e q u e s t   i s   t h e   d e f a u l t   r e s o u r c e   r e q u i r e m e n t   r e q u e s t   v a l u e   b y   r e s o u r c e   n a m e   i f   r e s o u r c e   r e q u e s t   i s   o m i t t e d . l i m i t s . m a x   ( m a p [ s t r i n g ] Q u a n t i t y ) M a x   u s a g e   c o n s t r a i n t s   o n   t h i s   k i n d   b y   r e s o u r c e   n a m e . l i m i t s . m a x L i m i t R e q u e s t R a t i o   ( m a p [ s t r i n g ] Q u a n t i t y ) M a x L i m i t R e q u e s t R a t i o   i f   s p e c i f i e d ,   t h e   n a m e d   r e s o u r c e   m u s t   h a v e   a   r e q u e s t   a n d   l i m i t   t h a t   a r e   b o t h   n o n - z e r o   w h e r e   l i m i t   d i v i d e d   b y   r e q u e s t   i s   l e s s   t h a n   o r   e q u a l   t o   t h e   e n u m e r a t e d   v a l u e ;   t h i s   r e p r e s e n t s   t h e   m a x   b u r s t


Question: What is LimitRangeList?

Answer: L i m i t R a n g e L i s t   i s   a   l i s t   o f   L i m i t R a n g e   i t e m s .   a p i V e r s i o n :   v 1 k i n d :   L i m i t R a n g e L i s t m e t a d a t a   ( L i s t M e t a ) S t a n d a r d   l i s t   m e t a d a t a .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # t y p e s - k i n d s i t e m s   ( [ ] L i m i t R a n g e ) ,   r e q u i r e d I t e m s   i s   a   l i s t   o f   L i m i t R a n g e   o b j e c t s .   M o r e   i n f o :   h t t p s : / / k u b e r n e t e s . i o / d o c s / c o n c e p t s / c o n f i g u r a t i o n / m a n a g e - r e s o u r c e s - c o n t a i n e r s /   a p i V e r s i o n :   v 1   k i n d :   L i m i t R a n g e L i s t   m e t a d a t a   ( L i s t M e t a )   S t a n d a r d   l i s t   m e t a d a t a .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # t y p e s - k i n d s   i t e m s   ( [ ] L i m i t R a n g e ) ,   r e q u i r e d   I t e m s   i s   a   l i s t   o f   L i m i t R a n g e   o b j e c t s .   M o r e   i n f o :   h t t p s : / / k u b e r n e t e s . i o / d o c s / c o n c e p t s / c o n f i g u r a t i o n / m a n a g e - r e s o u r c e s - c o n t a i n e r s /


Question: What is HTTP Request?

Answer: G E T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / l i m i t r a n g e s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   L i m i t R a n g e n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y   n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e   o f   t h e   L i m i t R a n g e   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y


Question: What is Response?

Answer: 2 0 0   ( L i m i t R a n g e ) :   O K   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: G E T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / l i m i t r a n g e s


Question: What is Parameters?

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


Question: What is Response?

Answer: 2 0 0   ( L i m i t R a n g e L i s t ) :   O K   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: G E T   / a p i / v 1 / l i m i t r a n g e s


Question: What is Parameters?

Answer: a l l o w W a t c h B o o k m a r k s   ( i n   q u e r y ) :   b o o l e a n a l l o w W a t c h B o o k m a r k s c o n t i n u e   ( i n   q u e r y ) :   s t r i n g c o n t i n u e f i e l d S e l e c t o r   ( i n   q u e r y ) :   s t r i n g f i e l d S e l e c t o r l a b e l S e l e c t o r   ( i n   q u e r y ) :   s t r i n g l a b e l S e l e c t o r l i m i t   ( i n   q u e r y ) :   i n t e g e r l i m i t p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y r e s o u r c e V e r s i o n   ( i n   q u e r y ) :   s t r i n g r e s o u r c e V e r s i o n r e s o u r c e V e r s i o n M a t c h   ( i n   q u e r y ) :   s t r i n g r e s o u r c e V e r s i o n M a t c h s e n d I n i t i a l E v e n t s   ( i n   q u e r y ) :   b o o l e a n s e n d I n i t i a l E v e n t s t i m e o u t S e c o n d s   ( i n   q u e r y ) :   i n t e g e r t i m e o u t S e c o n d s w a t c h   ( i n   q u e r y ) :   b o o l e a n w a t c h   a l l o w W a t c h B o o k m a r k s   ( i n   q u e r y ) :   b o o l e a n   a l l o w W a t c h B o o k m a r k s   c o n t i n u e   ( i n   q u e r y ) :   s t r i n g   c o n t i n u e   f i e l d S e l e c t o r   ( i n   q u e r y ) :   s t r i n g   f i e l d S e l e c t o r   l a b e l S e l e c t o r   ( i n   q u e r y ) :   s t r i n g   l a b e l S e l e c t o r   l i m i t   ( i n   q u e r y ) :   i n t e g e r   l i m i t   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y   r e s o u r c e V e r s i o n   ( i n   q u e r y ) :   s t r i n g   r e s o u r c e V e r s i o n   r e s o u r c e V e r s i o n M a t c h   ( i n   q u e r y ) :   s t r i n g   r e s o u r c e V e r s i o n M a t c h   s e n d I n i t i a l E v e n t s   ( i n   q u e r y ) :   b o o l e a n   s e n d I n i t i a l E v e n t s   t i m e o u t S e c o n d s   ( i n   q u e r y ) :   i n t e g e r   t i m e o u t S e c o n d s   w a t c h   ( i n   q u e r y ) :   b o o l e a n   w a t c h


Question: What is Response?

Answer: 2 0 0   ( L i m i t R a n g e L i s t ) :   O K   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: P O S T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / l i m i t r a n g e s


Question: What is Parameters?

Answer: n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e b o d y :   L i m i t R a n g e ,   r e q u i r e d d r y R u n   ( i n   q u e r y ) :   s t r i n g d r y R u n f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g f i e l d M a n a g e r f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g f i e l d V a l i d a t i o n p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   b o d y :   L i m i t R a n g e ,   r e q u i r e d   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g   f i e l d M a n a g e r   f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g   f i e l d V a l i d a t i o n   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y


Question: What is Response?

Answer: 2 0 0   ( L i m i t R a n g e ) :   O K   2 0 1   ( L i m i t R a n g e ) :   C r e a t e d   2 0 2   ( L i m i t R a n g e ) :   A c c e p t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: P U T   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / l i m i t r a n g e s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   L i m i t R a n g e n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e b o d y :   L i m i t R a n g e ,   r e q u i r e d d r y R u n   ( i n   q u e r y ) :   s t r i n g d r y R u n f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g f i e l d M a n a g e r f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g f i e l d V a l i d a t i o n p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y   n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e   o f   t h e   L i m i t R a n g e   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   b o d y :   L i m i t R a n g e ,   r e q u i r e d   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g   f i e l d M a n a g e r   f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g   f i e l d V a l i d a t i o n   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y


Question: What is Response?

Answer: 2 0 0   ( L i m i t R a n g e ) :   O K   2 0 1   ( L i m i t R a n g e ) :   C r e a t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: P A T C H   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / l i m i t r a n g e s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   L i m i t R a n g e n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e b o d y :   P a t c h ,   r e q u i r e d d r y R u n   ( i n   q u e r y ) :   s t r i n g d r y R u n f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g f i e l d M a n a g e r f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g f i e l d V a l i d a t i o n f o r c e   ( i n   q u e r y ) :   b o o l e a n f o r c e p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y   n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e   o f   t h e   L i m i t R a n g e   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   b o d y :   P a t c h ,   r e q u i r e d   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g   f i e l d M a n a g e r   f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g   f i e l d V a l i d a t i o n   f o r c e   ( i n   q u e r y ) :   b o o l e a n   f o r c e   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y


Question: What is Response?

Answer: 2 0 0   ( L i m i t R a n g e ) :   O K   2 0 1   ( L i m i t R a n g e ) :   C r e a t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: D E L E T E   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / l i m i t r a n g e s / { n a m e }


Question: What is Parameters?

Answer: n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e   o f   t h e   L i m i t R a n g e n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e b o d y :   D e l e t e O p t i o n s d r y R u n   ( i n   q u e r y ) :   s t r i n g d r y R u n g r a c e P e r i o d S e c o n d s   ( i n   q u e r y ) :   i n t e g e r g r a c e P e r i o d S e c o n d s i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l   ( i n   q u e r y ) :   b o o l e a n i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y p r o p a g a t i o n P o l i c y   ( i n   q u e r y ) :   s t r i n g p r o p a g a t i o n P o l i c y   n a m e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e   o f   t h e   L i m i t R a n g e   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   b o d y :   D e l e t e O p t i o n s   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   g r a c e P e r i o d S e c o n d s   ( i n   q u e r y ) :   i n t e g e r   g r a c e P e r i o d S e c o n d s   i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l   ( i n   q u e r y ) :   b o o l e a n   i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y   p r o p a g a t i o n P o l i c y   ( i n   q u e r y ) :   s t r i n g   p r o p a g a t i o n P o l i c y


Question: What is Response?

Answer: 2 0 0   ( S t a t u s ) :   O K   2 0 2   ( S t a t u s ) :   A c c e p t e d   4 0 1 :   U n a u t h o r i z e d


Question: What is HTTP Request?

Answer: D E L E T E   / a p i / v 1 / n a m e s p a c e s / { n a m e s p a c e } / l i m i t r a n g e s


Question: What is Parameters?

Answer: n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d n a m e s p a c e b o d y :   D e l e t e O p t i o n s c o n t i n u e   ( i n   q u e r y ) :   s t r i n g c o n t i n u e d r y R u n   ( i n   q u e r y ) :   s t r i n g d r y R u n f i e l d S e l e c t o r   ( i n   q u e r y ) :   s t r i n g f i e l d S e l e c t o r g r a c e P e r i o d S e c o n d s   ( i n   q u e r y ) :   i n t e g e r g r a c e P e r i o d S e c o n d s i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l   ( i n   q u e r y ) :   b o o l e a n i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g P o t e n t i a l l a b e l S e l e c t o r   ( i n   q u e r y ) :   s t r i n g l a b e l S e l e c t o r l i m i t   ( i n   q u e r y ) :   i n t e g e r l i m i t p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y p r o p a g a t i o n P o l i c y   ( i n   q u e r y ) :   s t r i n g p r o p a g a t i o n P o l i c y r e s o u r c e V e r s i o n   ( i n   q u e r y ) :   s t r i n g r e s o u r c e V e r s i o n r e s o u r c e V e r s i o n M a t c h   ( i n   q u e r y ) :   s t r i n g r e s o u r c e V e r s i o n M a t c h s e n d I n i t i a l E v e n t s   ( i n   q u e r y ) :   b o o l e a n s e n d I n i t i a l E v e n t s t i m e o u t S e c o n d s   ( i n   q u e r y ) :   i n t e g e r t i m e o u t S e c o n d s   n a m e s p a c e   ( i n   p a t h ) :   s t r i n g ,   r e q u i r e d   n a m e s p a c e   b o d y :   D e l e t e O p t i o n s   c o n t i n u e   ( i n   q u e r y ) :   s t r i n g   c o n t i n u e   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   f i e l d S e l e c t o r   ( i n   q u e r y ) :   s t r i n g   f i e l d S e l e c t o r   g r a c e P e r i o d S e c o n d s   ( i n   q u e r y ) :   i n t e g e r   g r a c e P e r i o d S e c o n d s   i g n o r e S t o r e R e a d E r r o r W i t h C l u s t e r B r e a k i n g


Question: What is Response?

Answer: 2 0 0   ( S t a t u s ) :   O K   4 0 1 :   U n a u t h o r i z e d   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 .


Question: What is TokenReview?

Answer: TokenReviewTokenReview attempts to authenticate a token to a known user.apiVersion: authentication.k8s.io/v1import "k8s.io/api/authentication/v1"TokenReviewTokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.apiVersion: authentication.k8s.io/v1kind: TokenReviewmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (TokenReviewSpec), requiredSpec holds information about the request being evaluatedstatus (TokenReviewStatus)Status is filled in by the server and indicates whether the request can be authenticated.TokenReviewSpecTokenReviewSpec is a description of the token authentication request.audiences ([]string)Atomic: will be replaced during a mergeAudiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.token (string)Token is the opaque bearer token.TokenReviewStatusTokenReviewStatus is the result of the token authentication request.audiences ([]string)Atomic: will be replaced during a mergeAudiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.authenticated (boolean)Authenticated indicates that the token was associated with a known user.error (string)Error indicates that the token couldn't be checkeduser (UserInfo)User is the UserInfo associated with the provided token.UserInfo holds the information about the user needed to implement the user.Info interface.user.extra (map[string][]string)Any additional information provided by the authenticator.user.groups ([]string)Atomic: will be replaced during a mergeThe names of groups this user is a part of.user.uid (string)A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.user.username (string)The name that uniquely identifies this user among all active users.Operationscreate create a TokenReviewHTTP RequestPOST /apis/authentication.k8s.io/v1/tokenreviewsParametersbody: TokenReview, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidati


Question: How does TokenReview work?

Answer: TokenReviewTokenReview attempts to authenticate a token to a known user.apiVersion: authentication.k8s.io/v1import "k8s.io/api/authentication/v1"TokenReviewTokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.apiVersion: authentication.k8s.io/v1kind: TokenReviewmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (TokenReviewSpec), requiredSpec holds information about the request being evaluatedstatus (TokenReviewStatus)Status is filled in by the server and indicates whether the request can be authenticated.TokenReviewSpecTokenReviewSpec is a description of the token authentication request.audiences ([]string)Atomic: will be replaced during a mergeAudiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.token (string)Token is the opaque bearer token.TokenReviewStatusTokenReviewStatus is the result of the token authentication request.audiences ([]string)Atomic: will be replaced during a mergeAudiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.authenticated (boolean)Authenticated indicates that the token was associated with a known user.error (string)Error indicates that the token couldn't be checkeduser (UserInfo)User is the UserInfo associated with the provided token.UserInfo holds the information about the user needed to implement the user.Info interface.user.extra (map[string][]string)Any additional information provided by the authenticator.user.groups ([]string)Atomic: will be replaced during a mergeThe names of groups this user is a part of.user.uid (string)A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.user.username (string)The name that uniquely identifies this user among all active users.Operationscreate create a TokenReviewHTTP RequestPOST /apis/authentication.k8s.io/v1/tokenreviewsParametersbody: TokenReview, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidati


Question: When would you use TokenReview?

Answer: TokenReviewTokenReview attempts to authenticate a token to a known user.apiVersion: authentication.k8s.io/v1import "k8s.io/api/authentication/v1"TokenReviewTokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.apiVersion: authentication.k8s.io/v1kind: TokenReviewmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (TokenReviewSpec), requiredSpec holds information about the request being evaluatedstatus (TokenReviewStatus)Status is filled in by the server and indicates whether the request can be authenticated.TokenReviewSpecTokenReviewSpec is a description of the token authentication request.audiences ([]string)Atomic: will be replaced during a mergeAudiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.token (string)Token is the opaque bearer token.TokenReviewStatusTokenReviewStatus is the result of the token authentication request.audiences ([]string)Atomic: will be replaced during a mergeAudiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.authenticated (boolean)Authenticated indicates that the token was associated with a known user.error (string)Error indicates that the token couldn't be checkeduser (UserInfo)User is the UserInfo associated with the provided token.UserInfo holds the information about the user needed to implement the user.Info interface.user.extra (map[string][]string)Any additional information provided by the authenticator.user.groups ([]string)Atomic: will be replaced during a mergeThe names of groups this user is a part of.user.uid (string)A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.user.username (string)The name that uniquely identifies this user among all active users.Operationscreate create a TokenReviewHTTP RequestPOST /apis/authentication.k8s.io/v1/tokenreviewsParametersbody: TokenReview, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidati


Question: What are the benefits of TokenReview?

Answer: TokenReviewTokenReview attempts to authenticate a token to a known user.apiVersion: authentication.k8s.io/v1import "k8s.io/api/authentication/v1"TokenReviewTokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.apiVersion: authentication.k8s.io/v1kind: TokenReviewmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (TokenReviewSpec), requiredSpec holds information about the request being evaluatedstatus (TokenReviewStatus)Status is filled in by the server and indicates whether the request can be authenticated.TokenReviewSpecTokenReviewSpec is a description of the token authentication request.audiences ([]string)Atomic: will be replaced during a mergeAudiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.token (string)Token is the opaque bearer token.TokenReviewStatusTokenReviewStatus is the result of the token authentication request.audiences ([]string)Atomic: will be replaced during a mergeAudiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.authenticated (boolean)Authenticated indicates that the token was associated with a known user.error (string)Error indicates that the token couldn't be checkeduser (UserInfo)User is the UserInfo associated with the provided token.UserInfo holds the information about the user needed to implement the user.Info interface.user.extra (map[string][]string)Any additional information provided by the authenticator.user.groups ([]string)Atomic: will be replaced during a mergeThe names of groups this user is a part of.user.uid (string)A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.user.username (string)The name that uniquely identifies this user among all active users.Operationscreate create a TokenReviewHTTP RequestPOST /apis/authentication.k8s.io/v1/tokenreviewsParametersbody: TokenReview, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidati


Question: What is TokenReview?

Answer: a p i V e r s i o n :   a u t h e n t i c a t i o n . k 8 s . i o / v 1   i m p o r t   " k 8 s . i o / a p i / a u t h e n t i c a t i o n / v 1 "


Question: What is TokenReview?

Answer: T o k e n R e v i e w   a t t e m p t s   t o   a u t h e n t i c a t e   a   t o k e n   t o   a   k n o w n   u s e r .   N o t e :   T o k e n R e v i e w   r e q u e s t s   m a y   b e   c a c h e d   b y   t h e   w e b h o o k   t o k e n   a u t h e n t i c a t o r   p l u g i n   i n   t h e   k u b e - a p i s e r v e r .   a p i V e r s i o n :   a u t h e n t i c a t i o n . k 8 s . i o / v 1 k i n d :   T o k e n R e v i e w m e t a d a t a   ( O b j e c t M e t a ) S t a n d a r d   o b j e c t ' s   m e t a d a t a .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # m e t a d a t a s p e c   ( T o k e n R e v i e w S p e c ) ,   r e q u i r e d S p e c   h o l d s   i n f o r m a t i o n   a b o u t   t h e   r e q u e s t   b e i n g   e v a l u a t e d s t a t u s   ( T o k e n R e v i e w S t a t u s ) S t a t u s   i s   f i l l e d   i n   b y   t h e   s e r v e r   a n d   i n d i c a t e s   w h e t h e r   t h e   r e q u e s t   c a n   b e   a u t h e n t i c a t e d .   a p i V e r s i o n :   a u t h e n t i c a t i o n . k 8 s . i o / v 1   k i n d :   T o k e n R e v i e w   m e t a d a t a   ( O b j e c t M e t a )   S t a n d a r d   o b j e c t ' s   m e t a d a t a .   M o r e   i n f o :   h t t p s : / / g i t . k 8 s . i o / c o m m u n i t y / c o n t r i b u t o r s / d e v e l / s i g - a r c h i t e c t u r e / a p i - c o n v e n t i o n s . m d # m e t a d a t a   s p e c   ( T o k e n R e v i e w S p e c ) ,   r e q u i r e d   S p e c   h o l d s   i n f o r m a t i o n   a b o u t   t h e   r e q u e s t   b e i n g   e v a l u a t e d   s t a t u s   ( T o k e n R e v i e w S t a t u s )   S t a t u s   i s   f i l l e d   i n   b y   t h e   s e r v e r   a n d   i n d i c a t e s   w h e t h e r   t h e   r e q u e s t   c a n   b e   a u t h e n t i c a t e d .


Question: What is TokenReviewSpec?

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


Question: What is TokenReviewStatus?

Answer: T o k e n R e v i e w S t a t u s   i s   t h e   r e s u l t   o f   t h e   t o k e n   a u t h e n t i c a t i o n   r e q u e s t .   a u d i e n c e s   ( [ ] s t r i n g ) A t o m i c :   w i l l   b e   r e p l a c e d   d u r i n g   a   m e r g e A u d i e n c e s   a r e   a u d i e n c e   i d e n t i f i e r s   c h o s e n   b y   t h e   a u t h e n t i c a t o r   t h a t   a r e   c o m p a t i b l e   w i t h   b o t h   t h e   T o k e n R e v i e w   a n d   t o k e n .   A n   i d e n t i f i e r   i s   a n y   i d e n t i f i e r   i n   t h e   i n t e r s e c t i o n   o f   t h e   T o k e n R e v i e w S p e c   a u d i e n c e s   a n d   t h e   t o k e n ' s   a u d i e n c e s .   A   c l i e n t   o f   t h e   T o k e n R e v i e w   A P I   t h a t   s e t s   t h e   s p e c . a u d i e n c e s   f i e l d   s h o u l d   v a l i d a t e   t h a t   a   c o m p a t i b l e   a u d i e n c e   i d e n t i f i e r   i s   r e t u r n e d   i n   t h e   s t a t u s . a u d i e n c e s   f i e l d   t o   e n s u r e   t h a t   t h e   T o k e n R e v i e w   s e r v e r   i s   a u d i e n c e   a w a r e .   I f   a   T o k e n R e v i e w   r e t u r n s   a n   e m p t y   s t a t u s . a u d i e n c e   f i e l d   w h e r e   s t a t u s . a u t h e n t i c a t e d   i s   " t r u e " ,   t h e   t o k e n   i s   v a l i d   a g a i n s t   t h e   a u d i e n c e   o f   t h e   K u b e r n e t e s   A P I   s e r v e r . a u t h e n t i c a t e d   ( b o o l e a n ) A u t h e n t i c a t e d   i n d i c a t e s   t h a t   t h e   t o k e n   w a s   a s s o c i a t e d   w i t h   a   k n o w n   u s e r . e r r o r   ( s t r i n g ) E r r o r   i n d i c a t e s   t h a t   t h e   t o k e n   c o u l d n ' t   b e   c h e c k e d u s e r   ( U s e r I n f o ) U s e r   i s   t h e   U s e r I n f o   a s s o c i a t e d   w i t h   t h e   p r o v i d e d   t o k e n . U s e r I n f o   h o l d s   t h e   i n f o r m a t


Question: What is HTTP Request?

Answer: P O S T   / a p i s / a u t h e n t i c a t i o n . k 8 s . i o / v 1 / t o k e n r e v i e w s


Question: What is Parameters?

Answer: b o d y :   T o k e n R e v i e w ,   r e q u i r e d d r y R u n   ( i n   q u e r y ) :   s t r i n g d r y R u n f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g f i e l d M a n a g e r f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g f i e l d V a l i d a t i o n p r e t t y   ( i n   q u e r y ) :   s t r i n g p r e t t y   b o d y :   T o k e n R e v i e w ,   r e q u i r e d   d r y R u n   ( i n   q u e r y ) :   s t r i n g   d r y R u n   f i e l d M a n a g e r   ( i n   q u e r y ) :   s t r i n g   f i e l d M a n a g e r   f i e l d V a l i d a t i o n   ( i n   q u e r y ) :   s t r i n g   f i e l d V a l i d a t i o n   p r e t t y   ( i n   q u e r y ) :   s t r i n g   p r e t t y


Question: What is Response?

Answer: 2 0 0   ( T o k e n R e v i e w ) :   O K   2 0 1   ( T o k e n R e v i e w ) :   C r e a t e d   2 0 2   ( T o k e n R e v i e w ) :   A c c e p t e d   4 0 1 :   U n a u t h o r i z e d   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 .


Question: What is kube-scheduler Configuration (v1)?

Answer: kube-scheduler Configuration (v1)Resource TypesDefaultPreemptionArgsInterPodAffinityArgsKubeSchedulerConfigurationNodeAffinityArgsNodeResourcesBalancedAllocationArgsNodeResourcesFitArgsPodTopologySpreadArgsVolumeBindingArgsClientConnectionConfigurationAppears in:KubeSchedulerConfigurationClientConnectionConfiguration contains details for constructing a client.FieldDescriptionkubeconfig [Required]stringkubeconfig is the path to a KubeConfig file.acceptContentTypes [Required]stringacceptContentTypes defines the Accept header sent by clients when connecting to a server, overriding the default value of 'application/json'. This field will control all connections to the server used by a particular client.contentType [Required]stringcontentType is the content type used when sending data to the server from this client.qps [Required]float32qps controls the number of queries per second allowed for this connection.burst [Required]int32burst allows extra queries to accumulate when a client is exceeding its rate.DebuggingConfigurationAppears in:KubeSchedulerConfigurationDebuggingConfiguration holds configuration for Debugging related features.FieldDescriptionenableProfiling [Required]boolenableProfiling enables profiling via web interface host:port/debug/pprof/enableContentionProfiling [Required]boolenableContentionProfiling enables block profiling, if enableProfiling is true.LeaderElectionConfigurationAppears in:KubeSchedulerConfigurationLeaderElectionConfiguration defines the configuration of leader election clients for components that can run with leader election enabled.FieldDescriptionleaderElect [Required]boolleaderElect enables a leader election client to gain leadership before executing the main loop. Enable this when running replicated components for high availability.leaseDuration [Required]meta/v1.DurationleaseDuration is the duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled.renewDeadline [Required]meta/v1.DurationrenewDeadline is the interval between attempts by the acting master to renew a leadership slot before it stops leading. This must be less than or equal to the lease duration. This is only applicable if leader election is enabled.retryPeriod [Required]meta/v1.DurationretryPeriod is the duration the clients should wait between attempting acquisition and renewal of a leadership. This is only applicable if leader election is enabled.resourceLock [Required]stringresourceLock indicates the resource object type that will be used to lock during leader election cycles.resourceName [Required]stringresourceName indicates the name of resource object that will be used to lock during leader election cycles.resourceNamespace [Required]stringresourceName indicates the namespace of re


Question: How does kube-scheduler Configuration (v1) work?

Answer: kube-scheduler Configuration (v1)Resource TypesDefaultPreemptionArgsInterPodAffinityArgsKubeSchedulerConfigurationNodeAffinityArgsNodeResourcesBalancedAllocationArgsNodeResourcesFitArgsPodTopologySpreadArgsVolumeBindingArgsClientConnectionConfigurationAppears in:KubeSchedulerConfigurationClientConnectionConfiguration contains details for constructing a client.FieldDescriptionkubeconfig [Required]stringkubeconfig is the path to a KubeConfig file.acceptContentTypes [Required]stringacceptContentTypes defines the Accept header sent by clients when connecting to a server, overriding the default value of 'application/json'. This field will control all connections to the server used by a particular client.contentType [Required]stringcontentType is the content type used when sending data to the server from this client.qps [Required]float32qps controls the number of queries per second allowed for this connection.burst [Required]int32burst allows extra queries to accumulate when a client is exceeding its rate.DebuggingConfigurationAppears in:KubeSchedulerConfigurationDebuggingConfiguration holds configuration for Debugging related features.FieldDescriptionenableProfiling [Required]boolenableProfiling enables profiling via web interface host:port/debug/pprof/enableContentionProfiling [Required]boolenableContentionProfiling enables block profiling, if enableProfiling is true.LeaderElectionConfigurationAppears in:KubeSchedulerConfigurationLeaderElectionConfiguration defines the configuration of leader election clients for components that can run with leader election enabled.FieldDescriptionleaderElect [Required]boolleaderElect enables a leader election client to gain leadership before executing the main loop. Enable this when running replicated components for high availability.leaseDuration [Required]meta/v1.DurationleaseDuration is the duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled.renewDeadline [Required]meta/v1.DurationrenewDeadline is the interval between attempts by the acting master to renew a leadership slot before it stops leading. This must be less than or equal to the lease duration. This is only applicable if leader election is enabled.retryPeriod [Required]meta/v1.DurationretryPeriod is the duration the clients should wait between attempting acquisition and renewal of a leadership. This is only applicable if leader election is enabled.resourceLock [Required]stringresourceLock indicates the resource object type that will be used to lock during leader election cycles.resourceName [Required]stringresourceName indicates the name of resource object that will be used to lock during leader election cycles.resourceNamespace [Required]stringresourceName indicates the namespace of re


Question: When would you use kube-scheduler Configuration (v1)?

Answer: kube-scheduler Configuration (v1)Resource TypesDefaultPreemptionArgsInterPodAffinityArgsKubeSchedulerConfigurationNodeAffinityArgsNodeResourcesBalancedAllocationArgsNodeResourcesFitArgsPodTopologySpreadArgsVolumeBindingArgsClientConnectionConfigurationAppears in:KubeSchedulerConfigurationClientConnectionConfiguration contains details for constructing a client.FieldDescriptionkubeconfig [Required]stringkubeconfig is the path to a KubeConfig file.acceptContentTypes [Required]stringacceptContentTypes defines the Accept header sent by clients when connecting to a server, overriding the default value of 'application/json'. This field will control all connections to the server used by a particular client.contentType [Required]stringcontentType is the content type used when sending data to the server from this client.qps [Required]float32qps controls the number of queries per second allowed for this connection.burst [Required]int32burst allows extra queries to accumulate when a client is exceeding its rate.DebuggingConfigurationAppears in:KubeSchedulerConfigurationDebuggingConfiguration holds configuration for Debugging related features.FieldDescriptionenableProfiling [Required]boolenableProfiling enables profiling via web interface host:port/debug/pprof/enableContentionProfiling [Required]boolenableContentionProfiling enables block profiling, if enableProfiling is true.LeaderElectionConfigurationAppears in:KubeSchedulerConfigurationLeaderElectionConfiguration defines the configuration of leader election clients for components that can run with leader election enabled.FieldDescriptionleaderElect [Required]boolleaderElect enables a leader election client to gain leadership before executing the main loop. Enable this when running replicated components for high availability.leaseDuration [Required]meta/v1.DurationleaseDuration is the duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled.renewDeadline [Required]meta/v1.DurationrenewDeadline is the interval between attempts by the acting master to renew a leadership slot before it stops leading. This must be less than or equal to the lease duration. This is only applicable if leader election is enabled.retryPeriod [Required]meta/v1.DurationretryPeriod is the duration the clients should wait between attempting acquisition and renewal of a leadership. This is only applicable if leader election is enabled.resourceLock [Required]stringresourceLock indicates the resource object type that will be used to lock during leader election cycles.resourceName [Required]stringresourceName indicates the name of resource object that will be used to lock during leader election cycles.resourceNamespace [Required]stringresourceName indicates the namespace of re


Question: What are the benefits of kube-scheduler Configuration (v1)?

Answer: kube-scheduler Configuration (v1)Resource TypesDefaultPreemptionArgsInterPodAffinityArgsKubeSchedulerConfigurationNodeAffinityArgsNodeResourcesBalancedAllocationArgsNodeResourcesFitArgsPodTopologySpreadArgsVolumeBindingArgsClientConnectionConfigurationAppears in:KubeSchedulerConfigurationClientConnectionConfiguration contains details for constructing a client.FieldDescriptionkubeconfig [Required]stringkubeconfig is the path to a KubeConfig file.acceptContentTypes [Required]stringacceptContentTypes defines the Accept header sent by clients when connecting to a server, overriding the default value of 'application/json'. This field will control all connections to the server used by a particular client.contentType [Required]stringcontentType is the content type used when sending data to the server from this client.qps [Required]float32qps controls the number of queries per second allowed for this connection.burst [Required]int32burst allows extra queries to accumulate when a client is exceeding its rate.DebuggingConfigurationAppears in:KubeSchedulerConfigurationDebuggingConfiguration holds configuration for Debugging related features.FieldDescriptionenableProfiling [Required]boolenableProfiling enables profiling via web interface host:port/debug/pprof/enableContentionProfiling [Required]boolenableContentionProfiling enables block profiling, if enableProfiling is true.LeaderElectionConfigurationAppears in:KubeSchedulerConfigurationLeaderElectionConfiguration defines the configuration of leader election clients for components that can run with leader election enabled.FieldDescriptionleaderElect [Required]boolleaderElect enables a leader election client to gain leadership before executing the main loop. Enable this when running replicated components for high availability.leaseDuration [Required]meta/v1.DurationleaseDuration is the duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled.renewDeadline [Required]meta/v1.DurationrenewDeadline is the interval between attempts by the acting master to renew a leadership slot before it stops leading. This must be less than or equal to the lease duration. This is only applicable if leader election is enabled.retryPeriod [Required]meta/v1.DurationretryPeriod is the duration the clients should wait between attempting acquisition and renewal of a leadership. This is only applicable if leader election is enabled.resourceLock [Required]stringresourceLock indicates the resource object type that will be used to lock during leader election cycles.resourceName [Required]stringresourceName indicates the name of resource object that will be used to lock during leader election cycles.resourceNamespace [Required]stringresourceName indicates the namespace of re


Question: What is Resource Types?

Answer: D e f a u l t P r e e m p t i o n A r g s I n t e r P o d A f f i n i t y A r g s K u b e S c h e d u l e r C o n f i g u r a t i o n N o d e A f f i n i t y A r g s N o d e R e s o u r c e s B a l a n c e d A l l o c a t i o n A r g s N o d e R e s o u r c e s F i t A r g s P o d T o p o l o g y S p r e a d A r g s V o l u m e B i n d i n g A r g s


Question: What is ClientConnectionConfiguration?

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


Question: What is DebuggingConfiguration?

Answer: A p p e a r s   i n :   K u b e S c h e d u l e r C o n f i g u r a t i o n   D e b u g g i n g C o n f i g u r a t i o n   h o l d s   c o n f i g u r a t i o n   f o r   D e b u g g i n g   r e l a t e d   f e a t u r e s .   e n a b l e P r o f i l i n g   e n a b l e s   p r o f i l i n g   v i a   w e b   i n t e r f a c e   h o s t : p o r t / d e b u g / p p r o f /   e n a b l e C o n t e n t i o n P r o f i l i n g   e n a b l e s   b l o c k   p r o f i l i n g ,   i f   e n a b l e P r o f i l i n g   i s   t r u e .


Question: What is LeaderElectionConfiguration?

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


Question: What is DefaultPreemptionArgs?

Answer: D e f a u l t P r e e m p t i o n A r g s   h o l d s   a r g u m e n t s   u s e d   t o   c o n f i g u r e   t h e   D e f a u l t P r e e m p t i o n   p l u g i n .   M i n C a n d i d a t e N o d e s P e r c e n t a g e   i s   t h e   m i n i m u m   n u m b e r   o f   c a n d i d a t e s   t o   s h o r t l i s t   w h e n   d r y   r u n n i n g   p r e e m p t i o n   a s   a   p e r c e n t a g e   o f   n u m b e r   o f   n o d e s .   M u s t   b e   i n   t h e   r a n g e   [ 0 ,   1 0 0 ] .   D e f a u l t s   t o   1 0 %   o f   t h e   c l u s t e r   s i z e   i f   u n s p e c i f i e d .   M i n C a n d i d a t e N o d e s A b s o l u t e   i s   t h e   a b s o l u t e   m i n i m u m   n u m b e r   o f   c a n d i d a t e s   t o   s h o r t l i s t .   T h e   l i k e l y   n u m b e r   o f   c a n d i d a t e s   e n u m e r a t e d   f o r   d r y   r u n n i n g   p r e e m p t i o n   i s   g i v e n   b y   t h e   f o r m u l a :   n u m C a n d i d a t e s   =   m a x ( n u m N o d e s   *   m i n C a n d i d a t e N o d e s P e r c e n t a g e ,   m i n C a n d i d a t e N o d e s A b s o l u t e )   W e   s a y   " l i k e l y "   b e c a u s e   t h e r e   a r e   o t h e r   f a c t o r s   s u c h   a s   P D B   v i o l a t i o n s   t h a t   p l a y   a   r o l e   i n   t h e   n u m b e r   o f   c a n d i d a t e s   s h o r t l i s t e d .   M u s t   b e   a t   l e a s t   0   n o d e s .   D e f a u l t s   t o   1 0 0   n o d e s   i f   u n s p e c i f i e d .


Question: What is InterPodAffinityArgs?

Answer: I n t e r P o d A f f i n i t y A r g s   h o l d s   a r g u m e n t s   u s e d   t o   c o n f i g u r e   t h e   I n t e r P o d A f f i n i t y   p l u g i n .   H a r d P o d A f f i n i t y W e i g h t   i s   t h e   s c o r i n g   w e i g h t   f o r   e x i s t i n g   p o d s   w i t h   a   m a t c h i n g   h a r d   a f f i n i t y   t o   t h e   i n c o m i n g   p o d .   I g n o r e P r e f e r r e d T e r m s O f E x i s t i n g P o d s   c o n f i g u r e s   t h e   s c h e d u l e r   t o   i g n o r e   e x i s t i n g   p o d s '   p r e f e r r e d   a f f i n i t y   r u l e s   w h e n   s c o r i n g   c a n d i d a t e   n o d e s ,   u n l e s s   t h e   i n c o m i n g   p o d   h a s   i n t e r - p o d   a f f i n i t i e s .


Question: What is KubeSchedulerConfiguration?

Answer: K u b e S c h e d u l e r C o n f i g u r a t i o n   c o n f i g u r e s   a   s c h e d u l e r   P a r a l l e l i s m   d e f i n e s   t h e   a m o u n t   o f   p a r a l l e l i s m   i n   a l g o r i t h m s   f o r   s c h e d u l i n g   a   P o d s .   M u s t   b e   g r e a t e r   t h a n   0 .   D e f a u l t s   t o   1 6   L e a d e r E l e c t i o n   d e f i n e s   t h e   c o n f i g u r a t i o n   o f   l e a d e r   e l e c t i o n   c l i e n t .   C l i e n t C o n n e c t i o n   s p e c i f i e s   t h e   k u b e c o n f i g   f i l e   a n d   c l i e n t   c o n n e c t i o n   s e t t i n g s   f o r   t h e   p r o x y   s e r v e r   t o   u s e   w h e n   c o m m u n i c a t i n g   w i t h   t h e   a p i s e r v e r .   D e b u g g i n g C o n f i g u r a t i o n   h o l d s   c o n f i g u r a t i o n   f o r   D e b u g g i n g   r e l a t e d   f e a t u r e s   T O D O :   W e   m i g h t   w a n n a   m a k e   t h i s   a   s u b s t r u c t   l i k e   D e b u g g i n g   c o m p o n e n t b a s e c o n f i g v 1 a l p h a 1 . D e b u g g i n g C o n f i g u r a t i o n   P e r c e n t a g e O f N o d e s T o S c o r e   i s   t h e   p e r c e n t a g e   o f   a l l   n o d e s   t h a t   o n c e   f o u n d   f e a s i b l e   f o r   r u n n i n g   a   p o d ,   t h e   s c h e d u l e r   s t o p s   i t s   s e a r c h   f o r   m o r e   f e a s i b l e   n o d e s   i n   t h e   c l u s t e r .   T h i s   h e l p s   i m p r o v e   s c h e d u l e r ' s   p e r f o r m a n c e .   S c h e d u l e r   a l w a y s   t r i e s   t o   f i n d   a t   l e a s t   " m i n F e a s i b l e N o d e s T o F i n d "   f e a s i b l e   n o d e s   n o   m a t t e r   w h a t   t h e   v a l u e   o f   t h i s   f l a g   i s .   E x a m p l e :   i f   t h e   c l u s t e r   s i z e   i s   5 0 0   n o d e s   a n d   t h e   v a l u e   o f   t h i s   f l a g   i s   3 0 ,   t h e n   s c h e d u l e r   s t o p