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   S e r v i c 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   S e r v i c 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   ( S e r v i c 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 } / s e r v i c 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   ( S e r v i c 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 / s e r v i c 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   ( S e r v i c 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 } / s e r v i c 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 :   S e r v i c 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 :   S e r v i c 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   ( S e r v i c e ) :   O K   2 0 1   ( S e r v i c e ) :   C r e a t e d   2 0 2   ( S e r v i c 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 } / s e r v i c 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   S e r v i c 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 :   S e r v i c 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   S e r v i c 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 :   S e r v i c 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   ( S e r v i c e ) :   O K   2 0 1   ( S e r v i c 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 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 } / s e r v i c e s / { n a m e } / s t a t u s


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   S e r v i c 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 :   S e r v i c 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   S e r v i c 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 :   S e r v i c 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   ( S e r v i c e ) :   O K   2 0 1   ( S e r v i c 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 } / s e r v i c 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   S e r v i c 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   S e r v i c 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   ( S e r v i c e ) :   O K   2 0 1   ( S e r v i c 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 } / s e r v i c e s / { n a m e } / s t a t u s


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   S e r v i c 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   S e r v i c 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   ( S e r v i c e ) :   O K   2 0 1   ( S e r v i c 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 } / s e r v i c 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   S e r v i c 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   S e r v i c 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 e r v i c e ) :   O K   2 0 2   ( S e r v i c 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: 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 } / s e r v i c 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 Contribute to Kubernetes?

Answer: There are lots of ways to contribute to Kubernetes. You can work on designs for new features, you can document the code we already have, you can write for our blogs. There's more: you can implement those new features or fix bugs. You can help people join our contributor community, or support existing contributors.With all these different ways to make a difference to the project, we - Kubernetes - have made a dedicated website: https://k8s.dev/. You can go there to learn more about contributing to Kubernetes.If you specifically want to learn about contributing to the documentation or other parts of this website, read Contribute to Kubernetes documentation. If you specifically want to help with the official Kubernetes blogs, read Contributing to Kubernetes blogs.You can also read the CNCF page about contributing to Kubernetes.


Question: How does Contribute to Kubernetes work?

Answer: There are lots of ways to contribute to Kubernetes. You can work on designs for new features, you can document the code we already have, you can write for our blogs. There's more: you can implement those new features or fix bugs. You can help people join our contributor community, or support existing contributors.With all these different ways to make a difference to the project, we - Kubernetes - have made a dedicated website: https://k8s.dev/. You can go there to learn more about contributing to Kubernetes.If you specifically want to learn about contributing to the documentation or other parts of this website, read Contribute to Kubernetes documentation. If you specifically want to help with the official Kubernetes blogs, read Contributing to Kubernetes blogs.You can also read the CNCF page about contributing to Kubernetes.


Question: When would you use Contribute to Kubernetes?

Answer: There are lots of ways to contribute to Kubernetes. You can work on designs for new features, you can document the code we already have, you can write for our blogs. There's more: you can implement those new features or fix bugs. You can help people join our contributor community, or support existing contributors.With all these different ways to make a difference to the project, we - Kubernetes - have made a dedicated website: https://k8s.dev/. You can go there to learn more about contributing to Kubernetes.If you specifically want to learn about contributing to the documentation or other parts of this website, read Contribute to Kubernetes documentation. If you specifically want to help with the official Kubernetes blogs, read Contributing to Kubernetes blogs.You can also read the CNCF page about contributing to Kubernetes.


Question: What are the benefits of Contribute to Kubernetes?

Answer: There are lots of ways to contribute to Kubernetes. You can work on designs for new features, you can document the code we already have, you can write for our blogs. There's more: you can implement those new features or fix bugs. You can help people join our contributor community, or support existing contributors.With all these different ways to make a difference to the project, we - Kubernetes - have made a dedicated website: https://k8s.dev/. You can go there to learn more about contributing to Kubernetes.If you specifically want to learn about contributing to the documentation or other parts of this website, read Contribute to Kubernetes documentation. If you specifically want to help with the official Kubernetes blogs, read Contributing to Kubernetes blogs.You can also read the CNCF page about contributing to Kubernetes.


Question: What is Contribute to Kubernetes?

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


Question: What is TokenRequest?

Answer: TokenRequestTokenRequest requests a token for a given service account.apiVersion: authentication.k8s.io/v1import "k8s.io/api/authentication/v1"TokenRequestTokenRequest requests a token for a given service account.apiVersion: authentication.k8s.io/v1kind: TokenRequestmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (TokenRequestSpec), requiredSpec holds information about the request being evaluatedstatus (TokenRequestStatus)Status is filled in by the server and indicates whether the token can be authenticated.TokenRequestSpecTokenRequestSpec contains client provided parameters of a token request.audiences ([]string), requiredAtomic: will be replaced during a mergeAudiences are the intended audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.boundObjectRef (BoundObjectReference)BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation.BoundObjectReference is a reference to an object that a token is bound to.boundObjectRef.apiVersion (string)API version of the referent.boundObjectRef.kind (string)Kind of the referent. Valid kinds are 'Pod' and 'Secret'.boundObjectRef.name (string)Name of the referent.boundObjectRef.uid (string)UID of the referent.expirationSeconds (int64)ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.TokenRequestStatusTokenRequestStatus is the result of a token request.expirationTimestamp (Time), requiredExpirationTimestamp is the time of expiration of the returned token.Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.token (string), requiredToken is the opaque bearer token.Operationscreate create token of a ServiceAccountHTTP RequestPOST /api/v1/namespaces/{namespace}/serviceaccounts/{name}/tokenParametersname (in path): string, requiredname of the TokenRequestnamespace (in path): string, requirednamespacebody: TokenRequest, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (TokenRequest): OK201 (TokenRequest): Created202 (TokenRequest): Accepted401: UnauthorizedThis page is automatically generated.If yo


Question: How does TokenRequest work?

Answer: TokenRequestTokenRequest requests a token for a given service account.apiVersion: authentication.k8s.io/v1import "k8s.io/api/authentication/v1"TokenRequestTokenRequest requests a token for a given service account.apiVersion: authentication.k8s.io/v1kind: TokenRequestmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (TokenRequestSpec), requiredSpec holds information about the request being evaluatedstatus (TokenRequestStatus)Status is filled in by the server and indicates whether the token can be authenticated.TokenRequestSpecTokenRequestSpec contains client provided parameters of a token request.audiences ([]string), requiredAtomic: will be replaced during a mergeAudiences are the intended audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.boundObjectRef (BoundObjectReference)BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation.BoundObjectReference is a reference to an object that a token is bound to.boundObjectRef.apiVersion (string)API version of the referent.boundObjectRef.kind (string)Kind of the referent. Valid kinds are 'Pod' and 'Secret'.boundObjectRef.name (string)Name of the referent.boundObjectRef.uid (string)UID of the referent.expirationSeconds (int64)ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.TokenRequestStatusTokenRequestStatus is the result of a token request.expirationTimestamp (Time), requiredExpirationTimestamp is the time of expiration of the returned token.Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.token (string), requiredToken is the opaque bearer token.Operationscreate create token of a ServiceAccountHTTP RequestPOST /api/v1/namespaces/{namespace}/serviceaccounts/{name}/tokenParametersname (in path): string, requiredname of the TokenRequestnamespace (in path): string, requirednamespacebody: TokenRequest, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (TokenRequest): OK201 (TokenRequest): Created202 (TokenRequest): Accepted401: UnauthorizedThis page is automatically generated.If yo


Question: When would you use TokenRequest?

Answer: TokenRequestTokenRequest requests a token for a given service account.apiVersion: authentication.k8s.io/v1import "k8s.io/api/authentication/v1"TokenRequestTokenRequest requests a token for a given service account.apiVersion: authentication.k8s.io/v1kind: TokenRequestmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (TokenRequestSpec), requiredSpec holds information about the request being evaluatedstatus (TokenRequestStatus)Status is filled in by the server and indicates whether the token can be authenticated.TokenRequestSpecTokenRequestSpec contains client provided parameters of a token request.audiences ([]string), requiredAtomic: will be replaced during a mergeAudiences are the intended audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.boundObjectRef (BoundObjectReference)BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation.BoundObjectReference is a reference to an object that a token is bound to.boundObjectRef.apiVersion (string)API version of the referent.boundObjectRef.kind (string)Kind of the referent. Valid kinds are 'Pod' and 'Secret'.boundObjectRef.name (string)Name of the referent.boundObjectRef.uid (string)UID of the referent.expirationSeconds (int64)ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.TokenRequestStatusTokenRequestStatus is the result of a token request.expirationTimestamp (Time), requiredExpirationTimestamp is the time of expiration of the returned token.Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.token (string), requiredToken is the opaque bearer token.Operationscreate create token of a ServiceAccountHTTP RequestPOST /api/v1/namespaces/{namespace}/serviceaccounts/{name}/tokenParametersname (in path): string, requiredname of the TokenRequestnamespace (in path): string, requirednamespacebody: TokenRequest, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (TokenRequest): OK201 (TokenRequest): Created202 (TokenRequest): Accepted401: UnauthorizedThis page is automatically generated.If yo


Question: What are the benefits of TokenRequest?

Answer: TokenRequestTokenRequest requests a token for a given service account.apiVersion: authentication.k8s.io/v1import "k8s.io/api/authentication/v1"TokenRequestTokenRequest requests a token for a given service account.apiVersion: authentication.k8s.io/v1kind: TokenRequestmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (TokenRequestSpec), requiredSpec holds information about the request being evaluatedstatus (TokenRequestStatus)Status is filled in by the server and indicates whether the token can be authenticated.TokenRequestSpecTokenRequestSpec contains client provided parameters of a token request.audiences ([]string), requiredAtomic: will be replaced during a mergeAudiences are the intended audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.boundObjectRef (BoundObjectReference)BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation.BoundObjectReference is a reference to an object that a token is bound to.boundObjectRef.apiVersion (string)API version of the referent.boundObjectRef.kind (string)Kind of the referent. Valid kinds are 'Pod' and 'Secret'.boundObjectRef.name (string)Name of the referent.boundObjectRef.uid (string)UID of the referent.expirationSeconds (int64)ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.TokenRequestStatusTokenRequestStatus is the result of a token request.expirationTimestamp (Time), requiredExpirationTimestamp is the time of expiration of the returned token.Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.token (string), requiredToken is the opaque bearer token.Operationscreate create token of a ServiceAccountHTTP RequestPOST /api/v1/namespaces/{namespace}/serviceaccounts/{name}/tokenParametersname (in path): string, requiredname of the TokenRequestnamespace (in path): string, requirednamespacebody: TokenRequest, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (TokenRequest): OK201 (TokenRequest): Created202 (TokenRequest): Accepted401: UnauthorizedThis page is automatically generated.If yo


Question: What is TokenRequest?

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 TokenRequest?

Answer: T o k e n R e q u e s t   r e q u e s t s   a   t o k e n   f o r   a   g i v e n   s e r v i c e   a c c o u n t .   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 q u e s t 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 q u e s t 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 q u e s t 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   t o k e n   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 q u e s t   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 q u e s t 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 q u e s t 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   t o k e n   c a n   b e   a u t h e n t i c a t e d .


Question: What is TokenRequestSpec?

Answer: T o k e n R e q u e s t S p e c   c o n t a i n s   c l i e n t   p r o v i d e d   p a r a m e t e r s   o f   a   t o k e n   r e q u e s t .   a u d i e n c e s   ( [ ] s t r i n g ) ,   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 A u d i e n c e s   a r e   t h e   i n t e n d e d   a u d i e n c e s   o f   t h e   t o k e n .   A   r e c i p i e n t   o f   a   t o k e n   m u s t   i d e n t i f y   t h e m s e l f   w i t h   a n   i d e n t i f i e r   i n   t h e   l i s t   o f   a u d i e n c e s   o f   t h e   t o k e n ,   a n d   o t h e r w i s e   s h o u l d   r e j e c t   t h e   t o k e n .   A   t o k e n   i s s u e d   f o r   m u l t i p l e   a u d i e n c e s   m a y   b e   u s e d   t o   a u t h e n t i c a t e   a g a i n s t   a n y   o f   t h e   a u d i e n c e s   l i s t e d   b u t   i m p l i e s   a   h i g h   d e g r e e   o f   t r u s t   b e t w e e n   t h e   t a r g e t   a u d i e n c e s . b o u n d O b j e c t R e f   ( B o u n d O b j e c t R e f e r e n c e ) B o u n d O b j e c t R e f   i s   a   r e f e r e n c e   t o   a n   o b j e c t   t h a t   t h e   t o k e n   w i l l   b e   b o u n d   t o .   T h e   t o k e n   w i l l   o n l y   b e   v a l i d   f o r   a s   l o n g   a s   t h e   b o u n d   o b j e c t   e x i s t s .   N O T E :   T h e   A P I   s e r v e r ' s   T o k e n R e v i e w   e n d p o i n t   w i l l   v a l i d a t e   t h e   B o u n d O b j e c t R e f ,   b u t   o t h e r   a u d i e n c e s   m a y   n o t .   K e e p   E x p i r a t i o n S e c o n d s   s m a l l   i f   y o u   w a n t   p r o m p t   r e v o c a t i o n . B o u n d O b j e c t R e f e r e n c e   i s   a   r e f e r e n c e   t o   a n   o b j e c t   t h a t   a   t o k e n   i s   b o u n d   t o . b o u n d O b j e c t R e f . a p i V e r s i o n   ( s t r i n g ) A P I   v e r s i o n   o f   t h e   r e f e r e n t . b o u n d O b j e c t R e f


Question: What is TokenRequestStatus?

Answer: T o k e n R e q u e s t S t a t u s   i s   t h e   r e s u l t   o f   a   t o k e n   r e q u e s t .   e x p i r a t i o n T i m e s t a m p   ( T i m e ) ,   r e q u i r e d E x p i r a t i o n T i m e s t a m p   i s   t h e   t i m e   o f   e x p i r a t i o n   o f   t h e   r e t u r n e d   t o k e n . T i m e   i s   a   w r a p p e r   a r o u n d   t i m e . T i m e   w h i c h   s u p p o r t s   c o r r e c t   m a r s h a l i n g   t o   Y A M L   a n d   J S O N .   W r a p p e r s   a r e   p r o v i d e d   f o r   m a n y   o f   t h e   f a c t o r y   m e t h o d s   t h a t   t h e   t i m e   p a c k a g e   o f f e r s . t o k e n   ( s t r i n g ) ,   r e q u i r e d 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 .   e x p i r a t i o n T i m e s t a m p   ( T i m e ) ,   r e q u i r e d   E x p i r a t i o n T i m e s t a m p   i s   t h e   t i m e   o f   e x p i r a t i o n   o f   t h e   r e t u r n e d   t o k e n .   T i m e   i s   a   w r a p p e r   a r o u n d   t i m e . T i m e   w h i c h   s u p p o r t s   c o r r e c t   m a r s h a l i n g   t o   Y A M L   a n d   J S O N .   W r a p p e r s   a r e   p r o v i d e d   f o r   m a n y   o f   t h e   f a c t o r y   m e t h o d s   t h a t   t h e   t i m e   p a c k a g e   o f f e r s .   t o k e n   ( s t r i n g ) ,   r e q u i r e d   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 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 } / s e r v i c e a c c o u n t s / { n a m e } / t o k e n


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   T o k e n R e q u e s t 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 :   T o k e n R e q u e s t ,   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   T o k e n R e q u e s t   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 :   T o k e n R e q u e s t ,   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 q u e s t ) :   O K   2 0 1   ( T o k e n R e q u e s t ) :   C r e a t e d   2 0 2   ( T o k e n R e q u e s t ) :   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 kubectl config delete-user?

Answer: kubectl config delete-userSynopsisDelete the specified user from the kubeconfig.kubectl config delete-user NAME Examples # Delete the minikube user kubectl config delete-user minikube Options-h, --helphelp for delete-userParent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringuse a particular kubeconfig file--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default: "profile.pprof"Name of the file to write the profile to--request-timeout string Default: "0"The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.-s, --server stringThe address and port of the Kubernetes API server--storage-driver-buffer-duration duration Default: 1m0sWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction--storage-driver-db string Default: "cadvisor"database name--storage-driver-host string Default: "localhost:8086"database host:port--storage-driver-password string Default: "root"database password--storage-driver-secureuse secure connection with database--storage-driver-table string Default: "stats"table name--storage-driver-user string Default: "root"database username--tls-server-name stringServer name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used--token stringBearer token for authentication to the API server--user stringThe name of the kubeconfig user to use--username stringUsername for basic authentication to the API server--version version[=true]--version, --ver


Question: How does kubectl config delete-user work?

Answer: kubectl config delete-userSynopsisDelete the specified user from the kubeconfig.kubectl config delete-user NAME Examples # Delete the minikube user kubectl config delete-user minikube Options-h, --helphelp for delete-userParent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringuse a particular kubeconfig file--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default: "profile.pprof"Name of the file to write the profile to--request-timeout string Default: "0"The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.-s, --server stringThe address and port of the Kubernetes API server--storage-driver-buffer-duration duration Default: 1m0sWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction--storage-driver-db string Default: "cadvisor"database name--storage-driver-host string Default: "localhost:8086"database host:port--storage-driver-password string Default: "root"database password--storage-driver-secureuse secure connection with database--storage-driver-table string Default: "stats"table name--storage-driver-user string Default: "root"database username--tls-server-name stringServer name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used--token stringBearer token for authentication to the API server--user stringThe name of the kubeconfig user to use--username stringUsername for basic authentication to the API server--version version[=true]--version, --ver


Question: When would you use kubectl config delete-user?

Answer: kubectl config delete-userSynopsisDelete the specified user from the kubeconfig.kubectl config delete-user NAME Examples # Delete the minikube user kubectl config delete-user minikube Options-h, --helphelp for delete-userParent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringuse a particular kubeconfig file--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default: "profile.pprof"Name of the file to write the profile to--request-timeout string Default: "0"The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.-s, --server stringThe address and port of the Kubernetes API server--storage-driver-buffer-duration duration Default: 1m0sWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction--storage-driver-db string Default: "cadvisor"database name--storage-driver-host string Default: "localhost:8086"database host:port--storage-driver-password string Default: "root"database password--storage-driver-secureuse secure connection with database--storage-driver-table string Default: "stats"table name--storage-driver-user string Default: "root"database username--tls-server-name stringServer name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used--token stringBearer token for authentication to the API server--user stringThe name of the kubeconfig user to use--username stringUsername for basic authentication to the API server--version version[=true]--version, --ver


Question: What are the benefits of kubectl config delete-user?

Answer: kubectl config delete-userSynopsisDelete the specified user from the kubeconfig.kubectl config delete-user NAME Examples # Delete the minikube user kubectl config delete-user minikube Options-h, --helphelp for delete-userParent Options Inherited--as stringUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.--as-group stringsGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.--as-uid stringUID to impersonate for the operation.--cache-dir string Default: "$HOME/.kube/cache"Default cache directory--certificate-authority stringPath to a cert file for the certificate authority--client-certificate stringPath to a client certificate file for TLS--client-key stringPath to a client key file for TLS--cluster stringThe name of the kubeconfig cluster to use--context stringThe name of the kubeconfig context to use--disable-compressionIf true, opt-out of response compression for all requests to the server--insecure-skip-tls-verifyIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure--kubeconfig stringuse a particular kubeconfig file--kuberc stringPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.--match-server-versionRequire server version to match client version-n, --namespace stringIf present, the namespace scope for this CLI request--password stringPassword for basic authentication to the API server--profile string Default: "none"Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)--profile-output string Default: "profile.pprof"Name of the file to write the profile to--request-timeout string Default: "0"The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.-s, --server stringThe address and port of the Kubernetes API server--storage-driver-buffer-duration duration Default: 1m0sWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction--storage-driver-db string Default: "cadvisor"database name--storage-driver-host string Default: "localhost:8086"database host:port--storage-driver-password string Default: "root"database password--storage-driver-secureuse secure connection with database--storage-driver-table string Default: "stats"table name--storage-driver-user string Default: "root"database username--tls-server-name stringServer name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used--token stringBearer token for authentication to the API server--user stringThe name of the kubeconfig user to use--username stringUsername for basic authentication to the API server--version version[=true]--version, --ver


Question: What is Synopsis?

Answer: D e l e t e   t h e   s p e c i f i e d   u s e r   f r o m   t h e   k u b e c o n f i g .   k u b e c t l   c o n f i g   d e l e t e - u s e r   N A M E


Question: What is Examples?

Answer: #   D e l e t e   t h e   m i n i k u b e   u s e r   k u b e c t l   c o n f i g   d e l e t e - u s e r   m i n i k u b e


Question: What is Options?

Answer: h e l p   f o r   d e l e t e - u s e r


Question: What is Parent Options Inherited?

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


Question: What is See Also?

Answer: k u b e c t l   c o n f i g   -   M o d i f y   k u b e c o n f i g   f i l e s   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 Kubernetes Deprecation Policy?

Answer: Kubernetes Deprecation PolicyThis document details the deprecation policy for various facets of the system.Kubernetes is a large system with many components and many contributors. As with any such software, the feature set naturally evolves over time, and sometimes a feature may need to be removed. This could include an API, a flag, or even an entire feature. To avoid breaking existing users, Kubernetes follows a deprecation policy for aspects of the system that are slated to be removed.Deprecating parts of the APISince Kubernetes is an API-driven system, the API has evolved over time to reflect the evolving understanding of the problem space. The Kubernetes API is actually a set of APIs, called "API groups", and each API group is independently versioned. API versions fall into 3 main tracks, each of which has different policies for deprecation:ExampleTrackv1GA (generally available, stable)v1beta1Beta (pre-release)v1alpha1Alpha (experimental)A given release of Kubernetes can support any number of API groups and any number of versions of each.The following rules govern the deprecation of elements of the API. This includes:REST resources (aka API objects)Fields of REST resourcesAnnotations on REST resources, including "beta" annotations but not including "alpha" annotations.Enumerated or constant valuesComponent config structuresThese rules are enforced between official releases, not between arbitrary commits to master or release branches.Rule #1: API elements may only be removed by incrementing the version of the API group.Once an API element has been added to an API group at a particular version, it can not be removed from that version or have its behavior significantly changed, regardless of track.Note:For historical reasons, there are 2 "monolithic" API groups - "core" (no group name) and "extensions". Resources will incrementally be moved from these legacy API groups into more domain-specific API groups.Rule #2: API objects must be able to round-trip between API versions in a given release without information loss, with the exception of whole REST resources that do not exist in some versions.For example, an object can be written as v1 and then read back as v2 and converted to v1, and the resulting v1 resource will be identical to the original. The representation in v2 might be different from v1, but the system knows how to convert between them in both directions. Additionally, any new field added in v2 must be able to round-trip to v1 and back, which means v1 might have to add an equivalent field or represent it as an annotation.Rule #3: An API version in a given track may not be deprecated in favor of a less stable API version.GA API versions can replace beta and alpha API versions.Beta API versions can replace earlier beta and alpha API versions, but may not replace GA API versions.Alpha API versions can replace earlier alpha API versions, but may not replace GA or beta API versions.Rule #4a: API lifetime is determined by the API stability l


Question: How does Kubernetes Deprecation Policy work?

Answer: Kubernetes Deprecation PolicyThis document details the deprecation policy for various facets of the system.Kubernetes is a large system with many components and many contributors. As with any such software, the feature set naturally evolves over time, and sometimes a feature may need to be removed. This could include an API, a flag, or even an entire feature. To avoid breaking existing users, Kubernetes follows a deprecation policy for aspects of the system that are slated to be removed.Deprecating parts of the APISince Kubernetes is an API-driven system, the API has evolved over time to reflect the evolving understanding of the problem space. The Kubernetes API is actually a set of APIs, called "API groups", and each API group is independently versioned. API versions fall into 3 main tracks, each of which has different policies for deprecation:ExampleTrackv1GA (generally available, stable)v1beta1Beta (pre-release)v1alpha1Alpha (experimental)A given release of Kubernetes can support any number of API groups and any number of versions of each.The following rules govern the deprecation of elements of the API. This includes:REST resources (aka API objects)Fields of REST resourcesAnnotations on REST resources, including "beta" annotations but not including "alpha" annotations.Enumerated or constant valuesComponent config structuresThese rules are enforced between official releases, not between arbitrary commits to master or release branches.Rule #1: API elements may only be removed by incrementing the version of the API group.Once an API element has been added to an API group at a particular version, it can not be removed from that version or have its behavior significantly changed, regardless of track.Note:For historical reasons, there are 2 "monolithic" API groups - "core" (no group name) and "extensions". Resources will incrementally be moved from these legacy API groups into more domain-specific API groups.Rule #2: API objects must be able to round-trip between API versions in a given release without information loss, with the exception of whole REST resources that do not exist in some versions.For example, an object can be written as v1 and then read back as v2 and converted to v1, and the resulting v1 resource will be identical to the original. The representation in v2 might be different from v1, but the system knows how to convert between them in both directions. Additionally, any new field added in v2 must be able to round-trip to v1 and back, which means v1 might have to add an equivalent field or represent it as an annotation.Rule #3: An API version in a given track may not be deprecated in favor of a less stable API version.GA API versions can replace beta and alpha API versions.Beta API versions can replace earlier beta and alpha API versions, but may not replace GA API versions.Alpha API versions can replace earlier alpha API versions, but may not replace GA or beta API versions.Rule #4a: API lifetime is determined by the API stability l


Question: When would you use Kubernetes Deprecation Policy?

Answer: Kubernetes Deprecation PolicyThis document details the deprecation policy for various facets of the system.Kubernetes is a large system with many components and many contributors. As with any such software, the feature set naturally evolves over time, and sometimes a feature may need to be removed. This could include an API, a flag, or even an entire feature. To avoid breaking existing users, Kubernetes follows a deprecation policy for aspects of the system that are slated to be removed.Deprecating parts of the APISince Kubernetes is an API-driven system, the API has evolved over time to reflect the evolving understanding of the problem space. The Kubernetes API is actually a set of APIs, called "API groups", and each API group is independently versioned. API versions fall into 3 main tracks, each of which has different policies for deprecation:ExampleTrackv1GA (generally available, stable)v1beta1Beta (pre-release)v1alpha1Alpha (experimental)A given release of Kubernetes can support any number of API groups and any number of versions of each.The following rules govern the deprecation of elements of the API. This includes:REST resources (aka API objects)Fields of REST resourcesAnnotations on REST resources, including "beta" annotations but not including "alpha" annotations.Enumerated or constant valuesComponent config structuresThese rules are enforced between official releases, not between arbitrary commits to master or release branches.Rule #1: API elements may only be removed by incrementing the version of the API group.Once an API element has been added to an API group at a particular version, it can not be removed from that version or have its behavior significantly changed, regardless of track.Note:For historical reasons, there are 2 "monolithic" API groups - "core" (no group name) and "extensions". Resources will incrementally be moved from these legacy API groups into more domain-specific API groups.Rule #2: API objects must be able to round-trip between API versions in a given release without information loss, with the exception of whole REST resources that do not exist in some versions.For example, an object can be written as v1 and then read back as v2 and converted to v1, and the resulting v1 resource will be identical to the original. The representation in v2 might be different from v1, but the system knows how to convert between them in both directions. Additionally, any new field added in v2 must be able to round-trip to v1 and back, which means v1 might have to add an equivalent field or represent it as an annotation.Rule #3: An API version in a given track may not be deprecated in favor of a less stable API version.GA API versions can replace beta and alpha API versions.Beta API versions can replace earlier beta and alpha API versions, but may not replace GA API versions.Alpha API versions can replace earlier alpha API versions, but may not replace GA or beta API versions.Rule #4a: API lifetime is determined by the API stability l


Question: What are the benefits of Kubernetes Deprecation Policy?

Answer: Kubernetes Deprecation PolicyThis document details the deprecation policy for various facets of the system.Kubernetes is a large system with many components and many contributors. As with any such software, the feature set naturally evolves over time, and sometimes a feature may need to be removed. This could include an API, a flag, or even an entire feature. To avoid breaking existing users, Kubernetes follows a deprecation policy for aspects of the system that are slated to be removed.Deprecating parts of the APISince Kubernetes is an API-driven system, the API has evolved over time to reflect the evolving understanding of the problem space. The Kubernetes API is actually a set of APIs, called "API groups", and each API group is independently versioned. API versions fall into 3 main tracks, each of which has different policies for deprecation:ExampleTrackv1GA (generally available, stable)v1beta1Beta (pre-release)v1alpha1Alpha (experimental)A given release of Kubernetes can support any number of API groups and any number of versions of each.The following rules govern the deprecation of elements of the API. This includes:REST resources (aka API objects)Fields of REST resourcesAnnotations on REST resources, including "beta" annotations but not including "alpha" annotations.Enumerated or constant valuesComponent config structuresThese rules are enforced between official releases, not between arbitrary commits to master or release branches.Rule #1: API elements may only be removed by incrementing the version of the API group.Once an API element has been added to an API group at a particular version, it can not be removed from that version or have its behavior significantly changed, regardless of track.Note:For historical reasons, there are 2 "monolithic" API groups - "core" (no group name) and "extensions". Resources will incrementally be moved from these legacy API groups into more domain-specific API groups.Rule #2: API objects must be able to round-trip between API versions in a given release without information loss, with the exception of whole REST resources that do not exist in some versions.For example, an object can be written as v1 and then read back as v2 and converted to v1, and the resulting v1 resource will be identical to the original. The representation in v2 might be different from v1, but the system knows how to convert between them in both directions. Additionally, any new field added in v2 must be able to round-trip to v1 and back, which means v1 might have to add an equivalent field or represent it as an annotation.Rule #3: An API version in a given track may not be deprecated in favor of a less stable API version.GA API versions can replace beta and alpha API versions.Beta API versions can replace earlier beta and alpha API versions, but may not replace GA API versions.Alpha API versions can replace earlier alpha API versions, but may not replace GA or beta API versions.Rule #4a: API lifetime is determined by the API stability l


Question: What is Kubernetes Deprecation Policy?

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


Question: What is Deprecating parts of the API?

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


Question: What is Note:?

Answer: R u l e   # 2 :   A P I   o b j e c t s   m u s t   b e   a b l e   t o   r o u n d - t r i p   b e t w e e n   A P I   v e r s i o n s   i n   a   g i v e n   r e l e a s e   w i t h o u t   i n f o r m a t i o n   l o s s ,   w i t h   t h e   e x c e p t i o n   o f   w h o l e   R E S T   r e s o u r c e s   t h a t   d o   n o t   e x i s t   i n   s o m e   v e r s i o n s .   F o r   e x a m p l e ,   a n   o b j e c t   c a n   b e   w r i t t e n   a s   v 1   a n d   t h e n   r e a d   b a c k   a s   v 2   a n d   c o n v e r t e d   t o   v 1 ,   a n d   t h e   r e s u l t i n g   v 1   r e s o u r c e   w i l l   b e   i d e n t i c a l   t o   t h e   o r i g i n a l .   T h e   r e p r e s e n t a t i o n   i n   v 2   m i g h t   b e   d i f f e r e n t   f r o m   v 1 ,   b u t   t h e   s y s t e m   k n o w s   h o w   t o   c o n v e r t   b e t w e e n   t h e m   i n   b o t h   d i r e c t i o n s .   A d d i t i o n a l l y ,   a n y   n e w   f i e l d   a d d e d   i n   v 2   m u s t   b e   a b l e   t o   r o u n d - t r i p   t o   v 1   a n d   b a c k ,   w h i c h   m e a n s   v 1   m i g h t   h a v e   t o   a d d   a n   e q u i v a l e n t   f i e l d   o r   r e p r e s e n t   i t   a s   a n   a n n o t a t i o n .   R u l e   # 3 :   A n   A P I   v e r s i o n   i n   a   g i v e n   t r a c k   m a y   n o t   b e   d e p r e c a t e d   i n   f a v o r   o f   a   l e s s   s t a b l e   A P I   v e r s i o n .   G A   A P I   v e r s i o n s   c a n   r e p l a c e   b e t a   a n d   a l p h a   A P I   v e r s i o n s . B e t a   A P I   v e r s i o n s   c a n   r e p l a c e   e a r l i e r   b e t a   a n d   a l p h a   A P I   v e r s i o n s ,   b u t   m a y   n o t   r e p l a c e   G A   A P I   v e r s i o n s . A l p h a   A P I   v e r s i o n s   c a n   r e p l a c e   e a r l i e r   a l p h a   A P I   v e r s i o n s ,   b u t   m a y   n o t   r e p l a c e   G A   o r   b e t a   A P I   v e r s i


Question: What is Note:?

Answer: R u l e   # 4 b :   T h e   " p r e f e r r e d "   A P I   v e r s i o n   a n d   t h e   " s t o r a g e   v e r s i o n "   f o r   a   g i v e n   g r o u p   m a y   n o t   a d v a n c e   u n t i l   a f t e r   a   r e l e a s e   h a s   b e e n   m a d e   t h a t   s u p p o r t s   b o t h   t h e   n e w   v e r s i o n   a n d   t h e   p r e v i o u s   v e r s i o n   U s e r s   m u s t   b e   a b l e   t o   u p g r a d e   t o   a   n e w   r e l e a s e   o f   K u b e r n e t e s   a n d   t h e n   r o l l   b a c k   t o   a   p r e v i o u s   r e l e a s e ,   w i t h o u t   c o n v e r t i n g   a n y t h i n g   t o   t h e   n e w   A P I   v e r s i o n   o r   s u f f e r i n g   b r e a k a g e s   ( u n l e s s   t h e y   e x p l i c i t l y   u s e d   f e a t u r e s   o n l y   a v a i l a b l e   i n   t h e   n e w e r   v e r s i o n ) .   T h i s   i s   p a r t i c u l a r l y   e v i d e n t   i n   t h e   s t o r e d   r e p r e s e n t a t i o n   o f   o b j e c t s .   A l l   o f   t h i s   i s   b e s t   i l l u s t r a t e d   b y   e x a m p l e s .   I m a g i n e   a   K u b e r n e t e s   r e l e a s e ,   v e r s i o n   X ,   w h i c h   i n t r o d u c e s   a   n e w   A P I   g r o u p .   A   n e w   K u b e r n e t e s   r e l e a s e   i s   m a d e   e v e r y   a p p r o x i m a t e l y   4   m o n t h s   ( 3   p e r   y e a r ) .   T h e   f o l l o w i n g   t a b l e   d e s c r i b e s   w h i c h   A P I   v e r s i o n s   a r e   s u p p o r t e d   i n   a   s e r i e s   o f   s u b s e q u e n t   r e l e a s e s .   v 1 a l p h a 1   i s   r e m o v e d .   S e e   r e l e a s e   n o t e s   f o r   r e q u i r e d   a c t i o n s .   v 1 a l p h a 2   i s   r e m o v e d .   S e e   r e l e a s e   n o t e s   f o r   r e q u i r e d   a c t i o n s .   v 1 b e t a 1   i s   d e p r e c a t e d .   S e e   r e l e a s e   n o t e s   f o r   r e q u i r e d   a c t i o n s .   v 1 b


Question: What is REST resources (aka API objects)?

Answer: C o n s i d e r   a   h y p o t h e t i c a l   R E S T   r e s o u r c e   n a m e d   W i d g e t ,   w h i c h   w a s   p r e s e n t   i n   A P I   v 1   i n   t h e   a b o v e   t i m e l i n e ,   a n d   w h i c h   n e e d s   t o   b e   d e p r e c a t e d .   W e   d o c u m e n t   a n d   a n n o u n c e   t h e   d e p r e c a t i o n   i n   s y n c   w i t h   r e l e a s e   X + 1 .   T h e   W i d g e t   r e s o u r c e   s t i l l   e x i s t s   i n   A P I   v e r s i o n   v 1   ( d e p r e c a t e d )   b u t   n o t   i n   v 2 a l p h a 1 .   T h e   W i d g e t   r e s o u r c e   c o n t i n u e s   t o   e x i s t   a n d   f u n c t i o n   i n   r e l e a s e s   u p   t o   a n d   i n c l u d i n g   X + 8 .   O n l y   i n   r e l e a s e   X + 9 ,   w h e n   A P I   v 1   h a s   a g e d   o u t ,   d o e s   t h e   W i d g e t   r e s o u r c e   c e a s e   t o   e x i s t ,   a n d   t h e   b e h a v i o r   g e t   r e m o v e d .   S t a r t i n g   i n   K u b e r n e t e s   v 1 . 1 9 ,   m a k i n g   a n   A P I   r e q u e s t   t o   a   d e p r e c a t e d   R E S T   A P I   e n d p o i n t :   R e t u r n s   a   W a r n i n g   h e a d e r   ( a s   d e f i n e d   i n   R F C 7 2 3 4 ,   S e c t i o n   5 . 5 )   i n   t h e   A P I   r e s p o n s e . A d d s   a   " k 8 s . i o / d e p r e c a t e d " : " t r u e "   a n n o t a t i o n   t o   t h e   a u d i t   e v e n t   r e c o r d e d   f o r   t h e   r e q u e s t . S e t s   a n   a p i s e r v e r _ r e q u e s t e d _ d e p r e c a t e d _ a p i s   g a u g e   m e t r i c   t o   1   i n   t h e   k u b e - a p i s e r v e r   p r o c e s s .   T h e   m e t r i c   h a s   l a b e l s   f o r   g r o u p ,   v e r s i o n ,   r e s o u r c e ,   s u b r e s o u r c e   t h a t   c a n   b e   j o i n e d   t o   t h e   a p i s e r v e r _ r e q u e s t _ t o t a l   m e t r i c ,   a n d   a   r e m o v e d _ r e l e a s e   l a b e l   t h a


Question: What is Fields of REST resources?

Answer: A s   w i t h   w h o l e   R E S T   r e s o u r c e s ,   a n   i n d i v i d u a l   f i e l d   w h i c h   w a s   p r e s e n t   i n   A P I   v 1   m u s t   e x i s t   a n d   f u n c t i o n   u n t i l   A P I   v 1   i s   r e m o v e d .   U n l i k e   w h o l e   r e s o u r c e s ,   t h e   v 2   A P I s   m a y   c h o o s e   a   d i f f e r e n t   r e p r e s e n t a t i o n   f o r   t h e   f i e l d ,   a s   l o n g   a s   i t   c a n   b e   r o u n d - t r i p p e d .   F o r   e x a m p l e   a   v 1   f i e l d   n a m e d   " m a g n i t u d e "   w h i c h   w a s   d e p r e c a t e d   m i g h t   b e   n a m e d   " d e p r e c a t e d M a g n i t u d e "   i n   A P I   v 2 .   W h e n   v 1   i s   e v e n t u a l l y   r e m o v e d ,   t h e   d e p r e c a t e d   f i e l d   c a n   b e   r e m o v e d   f r o m   v 2 .


Question: What is Enumerated or constant values?

Answer: A s   w i t h   w h o l e   R E S T   r e s o u r c e s   a n d   f i e l d s   t h e r e o f ,   a   c o n s t a n t   v a l u e   w h i c h   w a s   s u p p o r t e d   i n   A P I   v 1   m u s t   e x i s t   a n d   f u n c t i o n   u n t i l   A P I   v 1   i s   r e m o v e d .


Question: What is Component config structures?

Answer: C o m p o n e n t   c o n f i g s   a r e   v e r s i o n e d   a n d   m a n a g e d   s i m i l a r   t o   R E S T   r e s o u r c e s .


Question: What is Future work?

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


Question: What is Deprecating a flag or CLI?

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


Question: What is Deprecating a feature or behavior?

Answer: O c c a s i o n a l l y   a   K u b e r n e t e s   r e l e a s e   n e e d s   t o   d e p r e c a t e   s o m e   f e a t u r e   o r   b e h a v i o r   o f   t h e   s y s t e m   t h a t   i s   n o t   c o n t r o l l e d   b y   t h e   A P I   o r   C L I .   I n   t h i s   c a s e ,   t h e   r u l e s   f o r   d e p r e c a t i o n   a r e   a s   f o l l o w s :   R u l e   # 7 :   D e p r e c a t e d   b e h a v i o r s   m u s t   f u n c t i o n   f o r   n o   l e s s   t h a n   1   y e a r   a f t e r   t h e i r   a n n o u n c e d   d e p r e c a t i o n .   I f   t h e   f e a t u r e   o r   b e h a v i o r   i s   b e i n g   r e p l a c e d   w i t h   a n   a l t e r n a t i v e   i m p l e m e n t a t i o n   t h a t   r e q u i r e s   w o r k   t o   a d o p t   t h e   c h a n g e ,   t h e r e   s h o u l d   b e   a n   e f f o r t   t o   s i m p l i f y   t h e   t r a n s i t i o n   w h e n e v e r   p o s s i b l e .   I f   a n   a l t e r n a t i v e   i m p l e m e n t a t i o n   i s   u n d e r   K u b e r n e t e s   o r g a n i z a t i o n   c o n t r o l ,   t h e   f o l l o w i n g   r u l e s   a p p l y :   R u l e   # 8 :   T h e   f e a t u r e   o f   b e h a v i o r   m u s t   n o t   b e   d e p r e c a t e d   i n   f a v o r   o f   a n   a l t e r n a t i v e   i m p l e m e n t a t i o n   t h a t   i s   l e s s   s t a b l e   F o r   e x a m p l e ,   a   g e n e r a l l y   a v a i l a b l e   f e a t u r e   c a n n o t   b e   d e p r e c a t e d   i n   f a v o r   o f   a   B e t a   r e p l a c e m e n t .   T h e   K u b e r n e t e s   p r o j e c t   d o e s ,   h o w e v e r ,   e n c o u r a g e   u s e r s   t o   a d o p t   a n d   t r a n s i t i o n s   t o   a l t e r n a t i v e   i m p l e m e n t a t i o n s   e v e n   b e f o r e   t h e y   r e a c h   t h e   s a m e   m a t u r i t y   l e v e l .   T h i s   i s   p a r t i c u l a r l y   i m p o r t a n t   f o r   e x p l o r


Question: What is Deprecation?

Answer: F e a t u r e s   c a n   b e   r e m o v e d   a t   a n y   p o i n t   i n   t h e   l i f e   c y c l e   p r i o r   t o   G A .   W h e n   f e a t u r e s   a r e   r e m o v e d   p r i o r   t o   G A ,   t h e i r   a s s o c i a t e d   f e a t u r e   g a t e s   a r e   a l s o   d e p r e c a t e d .   W h e n   a n   i n v o c a t i o n   t r i e s   t o   d i s a b l e   a   n o n - o p e r a t i o n a l   f e a t u r e   g a t e ,   t h e   c a l l   f a i l s   i n   o r d e r   t o   a v o i d   u n s u p p o r t e d   s c e n a r i o s   t h a t   m i g h t   o t h e r w i s e   r u n   s i l e n t l y .   I n   s o m e   c a s e s ,   r e m o v i n g   p r e - G A   f e a t u r e s   r e q u i r e s   c o n s i d e r a b l e   t i m e .   F e a t u r e   g a t e s   c a n   r e m a i n   o p e r a t i o n a l   u n t i l   t h e i r   a s s o c i a t e d   f e a t u r e   i s   f u l l y   r e m o v e d ,   a t   w h i c h   p o i n t   t h e   f e a t u r e   g a t e   i t s e l f   c a n   b e   d e p r e c a t e d .   W h e n   r e m o v i n g   a   f e a t u r e   g a t e   f o r   a   G A   f e a t u r e   a l s o   r e q u i r e s   c o n s i d e r a b l e   t i m e ,   c a l l s   t o   f e a t u r e   g a t e s   m a y   r e m a i n   o p e r a t i o n a l   i f   t h e   f e a t u r e   g a t e   h a s   n o   e f f e c t   o n   t h e   f e a t u r e ,   a n d   i f   t h e   f e a t u r e   g a t e   c a u s e s   n o   e r r o r s .   F e a t u r e s   i n t e n d e d   t o   b e   d i s a b l e d   b y   u s e r s   s h o u l d   i n c l u d e   a   m e c h a n i s m   f o r   d i s a b l i n g   t h e   f e a t u r e   i n   t h e   a s s o c i a t e d   f e a t u r e   g a t e .   V e r s i o n i n g   f o r   f e a t u r e   g a t e s   i s   d i f f e r e n t   f r o m   t h e   p r e v i o u s l y   d i s c u s s e d   c o m p o n e n t s ,   t h e r e f o r e   t h e   r u l e s   f o r   d e p r e c a t i o n   a r e   a s


Question: What is Deprecating a metric?

Answer: E a c h   c o m p o n e n t   o f   t h e   K u b e r n e t e s   c o n t r o l - p l a n e   e x p o s e s   m e t r i c s   ( u s u a l l y   t h e   / m e t r i c s   e n d p o i n t ) ,   w h i c h   a r e   t y p i c a l l y   i n g e s t e d   b y   c l u s t e r   a d m i n i s t r a t o r s .   N o t   a l l   m e t r i c s   a r e   t h e   s a m e :   s o m e   m e t r i c s   a r e   c o m m o n l y   u s e d   a s   S L I s   o r   u s e d   t o   d e t e r m i n e   S L O s ,   t h e s e   t e n d   t o   h a v e   g r e a t e r   i m p o r t .   O t h e r   m e t r i c s   a r e   m o r e   e x p e r i m e n t a l   i n   n a t u r e   o r   a r e   u s e d   p r i m a r i l y   i n   t h e   K u b e r n e t e s   d e v e l o p m e n t   p r o c e s s .   A c c o r d i n g l y ,   m e t r i c s   f a l l   u n d e r   t h r e e   s t a b i l i t y   c l a s s e s   ( A L P H A ,   B E T A   S T A B L E ) ;   t h i s   i m p a c t s   r e m o v a l   o f   a   m e t r i c   d u r i n g   a   K u b e r n e t e s   r e l e a s e .   T h e s e   c l a s s e s   a r e   d e t e r m i n e d   b y   t h e   p e r c e i v e d   i m p o r t a n c e   o f   t h e   m e t r i c .   T h e   r u l e s   f o r   d e p r e c a t i n g   a n d   r e m o v i n g   a   m e t r i c   a r e   a s   f o l l o w s :   R u l e   # 1 1 a :   M e t r i c s ,   f o r   t h e   c o r r e s p o n d i n g   s t a b i l i t y   c l a s s ,   m u s t   f u n c t i o n   f o r   n o   l e s s   t h a n :   S T A B L E :   4   r e l e a s e s   o r   1 2   m o n t h s   ( w h i c h e v e r   i s   l o n g e r ) B E T A :   2   r e l e a s e s   o r   8   m o n t h s   ( w h i c h e v e r   i s   l o n g e r ) A L P H A :   0   r e l e a s e s   R u l e   # 1 1 b :   M e t r i c s ,   a f t e r   t h e i r   a n n o u n c e d   d e p r e c a t i o n ,   m u s t   f u n c t i o n   f o r   n o   l e s s   t h a n :   S T A B L E :   3   r e l e a s e s   o r   9   m o n t h s   ( w h i


Question: What is Exceptions?

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


Question: What is Configure Memory and CPU Quotas for a Namespace?

Answer: Configure Memory and CPU Quotas for a NamespaceDefine overall memory and CPU resource limits for a namespace.This page shows how to set quotas for the total amount memory and CPU that can be used by all Pods running in a namespace. You specify quotas in a ResourceQuota object.Before you beginYou need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on a cluster with at least two nodes that are not acting as control plane hosts. If you do not already have a cluster, you can create one by using minikube or you can use one of these Kubernetes playgrounds:iximiuz LabsKillercodaKodeKloudPlay with KubernetesYou must have access to create namespaces in your cluster.Each node in your cluster must have at least 1 GiB of memory.Create a namespaceCreate a namespace so that the resources you create in this exercise are isolated from the rest of your cluster.kubectl create namespace quota-mem-cpu-example Create a ResourceQuotaHere is a manifest for an example ResourceQuota:admin/resource/quota-mem-cpu.yaml apiVersion: v1 kind: ResourceQuota metadata: name: mem-cpu-demo spec: hard: requests.cpu: "1" requests.memory: 1Gi limits.cpu: "2" limits.memory: 2Gi Create the ResourceQuota:kubectl apply -f https://k8s.io/examples/admin/resource/quota-mem-cpu.yaml --namespace=quota-mem-cpu-example View detailed information about the ResourceQuota:kubectl get resourcequota mem-cpu-demo --namespace=quota-mem-cpu-example --output=yaml The ResourceQuota places these requirements on the quota-mem-cpu-example namespace:For every Pod in the namespace, each container must have a memory request, memory limit, cpu request, and cpu limit.The memory request total for all Pods in that namespace must not exceed 1 GiB.The memory limit total for all Pods in that namespace must not exceed 2 GiB.The CPU request total for all Pods in that namespace must not exceed 1 cpu.The CPU limit total for all Pods in that namespace must not exceed 2 cpu.See meaning of CPU to learn what Kubernetes means by “1 CPU”.Create a PodHere is a manifest for an example Pod:admin/resource/quota-mem-cpu-pod.yaml apiVersion: v1 kind: Pod metadata: name: quota-mem-cpu-demo spec: containers: - name: quota-mem-cpu-demo-ctr image: nginx resources: limits: memory: "800Mi" cpu: "800m" requests: memory: "600Mi" cpu: "400m" Create the Pod:kubectl apply -f https://k8s.io/examples/admin/resource/quota-mem-cpu-pod.yaml --namespace=quota-mem-cpu-example Verify that the Pod is running and that its (only) container is healthy:kubectl get pod quota-mem-cpu-demo --namespace=quota-mem-cpu-example Once again, view detailed information about the ResourceQuota:kubectl get resourcequota mem-cpu-demo --namespace=quota-mem-cpu-example --output=yaml The output shows the quota along with how much of the quota has been used. You can see that the memory and CPU requests and limits for your Pod do not exceed the quota.status: hard: limits


Question: How does Configure Memory and CPU Quotas for a Namespace work?

Answer: Configure Memory and CPU Quotas for a NamespaceDefine overall memory and CPU resource limits for a namespace.This page shows how to set quotas for the total amount memory and CPU that can be used by all Pods running in a namespace. You specify quotas in a ResourceQuota object.Before you beginYou need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on a cluster with at least two nodes that are not acting as control plane hosts. If you do not already have a cluster, you can create one by using minikube or you can use one of these Kubernetes playgrounds:iximiuz LabsKillercodaKodeKloudPlay with KubernetesYou must have access to create namespaces in your cluster.Each node in your cluster must have at least 1 GiB of memory.Create a namespaceCreate a namespace so that the resources you create in this exercise are isolated from the rest of your cluster.kubectl create namespace quota-mem-cpu-example Create a ResourceQuotaHere is a manifest for an example ResourceQuota:admin/resource/quota-mem-cpu.yaml apiVersion: v1 kind: ResourceQuota metadata: name: mem-cpu-demo spec: hard: requests.cpu: "1" requests.memory: 1Gi limits.cpu: "2" limits.memory: 2Gi Create the ResourceQuota:kubectl apply -f https://k8s.io/examples/admin/resource/quota-mem-cpu.yaml --namespace=quota-mem-cpu-example View detailed information about the ResourceQuota:kubectl get resourcequota mem-cpu-demo --namespace=quota-mem-cpu-example --output=yaml The ResourceQuota places these requirements on the quota-mem-cpu-example namespace:For every Pod in the namespace, each container must have a memory request, memory limit, cpu request, and cpu limit.The memory request total for all Pods in that namespace must not exceed 1 GiB.The memory limit total for all Pods in that namespace must not exceed 2 GiB.The CPU request total for all Pods in that namespace must not exceed 1 cpu.The CPU limit total for all Pods in that namespace must not exceed 2 cpu.See meaning of CPU to learn what Kubernetes means by “1 CPU”.Create a PodHere is a manifest for an example Pod:admin/resource/quota-mem-cpu-pod.yaml apiVersion: v1 kind: Pod metadata: name: quota-mem-cpu-demo spec: containers: - name: quota-mem-cpu-demo-ctr image: nginx resources: limits: memory: "800Mi" cpu: "800m" requests: memory: "600Mi" cpu: "400m" Create the Pod:kubectl apply -f https://k8s.io/examples/admin/resource/quota-mem-cpu-pod.yaml --namespace=quota-mem-cpu-example Verify that the Pod is running and that its (only) container is healthy:kubectl get pod quota-mem-cpu-demo --namespace=quota-mem-cpu-example Once again, view detailed information about the ResourceQuota:kubectl get resourcequota mem-cpu-demo --namespace=quota-mem-cpu-example --output=yaml The output shows the quota along with how much of the quota has been used. You can see that the memory and CPU requests and limits for your Pod do not exceed the quota.status: hard: limits


Question: When would you use Configure Memory and CPU Quotas for a Namespace?

Answer: Configure Memory and CPU Quotas for a NamespaceDefine overall memory and CPU resource limits for a namespace.This page shows how to set quotas for the total amount memory and CPU that can be used by all Pods running in a namespace. You specify quotas in a ResourceQuota object.Before you beginYou need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on a cluster with at least two nodes that are not acting as control plane hosts. If you do not already have a cluster, you can create one by using minikube or you can use one of these Kubernetes playgrounds:iximiuz LabsKillercodaKodeKloudPlay with KubernetesYou must have access to create namespaces in your cluster.Each node in your cluster must have at least 1 GiB of memory.Create a namespaceCreate a namespace so that the resources you create in this exercise are isolated from the rest of your cluster.kubectl create namespace quota-mem-cpu-example Create a ResourceQuotaHere is a manifest for an example ResourceQuota:admin/resource/quota-mem-cpu.yaml apiVersion: v1 kind: ResourceQuota metadata: name: mem-cpu-demo spec: hard: requests.cpu: "1" requests.memory: 1Gi limits.cpu: "2" limits.memory: 2Gi Create the ResourceQuota:kubectl apply -f https://k8s.io/examples/admin/resource/quota-mem-cpu.yaml --namespace=quota-mem-cpu-example View detailed information about the ResourceQuota:kubectl get resourcequota mem-cpu-demo --namespace=quota-mem-cpu-example --output=yaml The ResourceQuota places these requirements on the quota-mem-cpu-example namespace:For every Pod in the namespace, each container must have a memory request, memory limit, cpu request, and cpu limit.The memory request total for all Pods in that namespace must not exceed 1 GiB.The memory limit total for all Pods in that namespace must not exceed 2 GiB.The CPU request total for all Pods in that namespace must not exceed 1 cpu.The CPU limit total for all Pods in that namespace must not exceed 2 cpu.See meaning of CPU to learn what Kubernetes means by “1 CPU”.Create a PodHere is a manifest for an example Pod:admin/resource/quota-mem-cpu-pod.yaml apiVersion: v1 kind: Pod metadata: name: quota-mem-cpu-demo spec: containers: - name: quota-mem-cpu-demo-ctr image: nginx resources: limits: memory: "800Mi" cpu: "800m" requests: memory: "600Mi" cpu: "400m" Create the Pod:kubectl apply -f https://k8s.io/examples/admin/resource/quota-mem-cpu-pod.yaml --namespace=quota-mem-cpu-example Verify that the Pod is running and that its (only) container is healthy:kubectl get pod quota-mem-cpu-demo --namespace=quota-mem-cpu-example Once again, view detailed information about the ResourceQuota:kubectl get resourcequota mem-cpu-demo --namespace=quota-mem-cpu-example --output=yaml The output shows the quota along with how much of the quota has been used. You can see that the memory and CPU requests and limits for your Pod do not exceed the quota.status: hard: limits